/* Field Verification — styles (schema v2, consolidated). Scoped to .fv-* and reusing the Saudi Architecture / TIRAZ identity.
 * Calm system: white space, large images, few borders, one primary action per screen. Status = icon + text, never colour alone. */
:root {
  --fv-green: #14573A; --fv-green-d: #0F4630; --fv-green-l: #F3F9F5; --fv-green-m: #DCEFE3;
  --fv-gold: #B98A3E; --fv-gold-d: #7A5717; --fv-gold-l: #FBF5EA;
  --fv-ink: #161616; --fv-ink2: #1B1B18; --fv-muted: #5B5850; --fv-soft: #8C877C; --fv-line: #E9E6DF; --fv-line2: #F2F0EB; --fv-bg: #FAF9F6;
  --fv-ok: #14573A; --fv-ok-bg: #EEF7F1;
  --fv-warn: #7D5A16; --fv-warn-bg: #FBF3E4;
  --fv-bad: #8E3B2C; --fv-bad-bg: #F7EDE9;
  --fv-info: #4F4B43; --fv-info-bg: #F2F0EB;
  --fv-r: 12px; --fv-r-sm: 8px;
  --fv-shadow: 0 2px 10px rgba(27, 27, 24, .04);
  --fv-report-font: 'Alexandria', 'IBMPlexSansArabic', system-ui, sans-serif;
}
.fv-main { background: var(--fv-bg); min-height: 60vh; }
#fv-app { font-family: inherit; color: var(--fv-ink); }
#fv-app h1, #fv-app h2, #fv-app h3, #fv-app h4 { color: var(--fv-ink); }
.fv-page { padding: 28px 0 64px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fv-mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; direction: ltr; unicode-bidi: isolate; }
.fv-small { font-size: .82rem; line-height: 1.55; }
.fv-muted { color: var(--fv-muted); }
.fv-block { display: block; }
.fv-m0 { margin: 0 !important; }
.fv-mt { margin-top: 1rem; }
.fv-warn-text { color: var(--fv-warn); font-weight: 600; }
.fv-grow { flex: 1 1 auto; min-width: 0; }
.fv-eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--fv-gold); margin-bottom: .25rem; }
.fv-lead { color: var(--fv-muted); margin: .35rem 0 0; font-size: .98rem; line-height: 1.65; max-width: 760px; }
.fv-lead--sm { font-size: .9rem; margin-bottom: 1rem; }
.fv-hint { font-size: .78rem; color: var(--fv-muted); margin-top: .25rem; }
.fv-note { font-size: .82rem; color: var(--fv-muted); margin-top: 1.25rem; }
.fv-link { color: var(--fv-green); font-weight: 600; text-decoration: none; word-break: break-all; }
.fv-link:hover { text-decoration: underline; }

/* ---------- buttons */
.fv-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: 10px; border: 1.5px solid transparent; font-weight: 700; font-size: .9rem; line-height: 1.2; text-decoration: none; cursor: pointer; background: none; color: var(--fv-ink); transition: background .15s, border-color .15s, color .15s; font-family: inherit; white-space: nowrap; }
.fv-btn:focus-visible, .fv-tab:focus-visible, .fv-hs:focus-visible, .fv-acct:focus-visible, .fv-ulist__item:focus-visible, .fv-answer:focus-visible, .fv-cam button:focus-visible { outline: 3px solid var(--fv-gold); outline-offset: 2px; }
.fv-btn--primary { background: var(--fv-green); color: #fff; }
.fv-btn--primary:hover { background: var(--fv-green-d); color: #fff; }
.fv-btn--ghost { background: #fff; border-color: var(--fv-line); color: var(--fv-ink); }
.fv-btn--ghost:hover { border-color: var(--fv-green); color: var(--fv-green); }
.fv-btn--outline { background: #fff; border-color: var(--fv-green); color: var(--fv-green); }
.fv-btn--outline:hover { background: var(--fv-green-l); }
.fv-btn--danger { background: var(--fv-bad); color: #fff; }
.fv-btn--outline-danger { background: #fff; border-color: #DFC2B9; color: var(--fv-bad); }
.fv-btn--outline-danger:hover { background: var(--fv-bad-bg); }
.fv-btn--danger-ghost { background: none; color: var(--fv-bad); border-color: transparent; padding-inline: .5rem; }
.fv-btn--link { background: none; color: var(--fv-muted); text-decoration: underline; padding-inline: .4rem; font-weight: 600; }
.fv-btn--sm { min-height: 36px; padding: .35rem .8rem; font-size: .82rem; }
.fv-btn--lg { min-height: 52px; font-size: 1rem; }
.fv-btn--block { width: 100%; }
.fv-btn[disabled], .fv-btn.is-disabled, .fv-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.fv-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--fv-line); background: #fff; color: var(--fv-ink); font-size: 1.3rem; cursor: pointer; text-decoration: none; flex: 0 0 auto; }
.fv-iconbtn--sm { width: 40px; height: 40px; }
.fv-filebtn { position: relative; overflow: hidden; }
.fv-linkbtn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; color: var(--fv-muted); font: inherit; font-size: .84rem; font-weight: 600; padding: .6rem 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- chips */
.fv-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .62rem; border-radius: 100px; font-size: .78rem; font-weight: 700; line-height: 1.4; white-space: nowrap; border: 1px solid transparent; }
.fv-chip > span[aria-hidden] { font-weight: 800; }
.fv-chip--sm { font-size: .72rem; padding: .1rem .5rem; }
.fv-chip--ok { background: var(--fv-ok-bg); color: var(--fv-ok); border-color: #D3E6DA; }
.fv-chip--warn { background: var(--fv-warn-bg); color: var(--fv-warn); border-color: #EBD9B4; }
.fv-chip--bad { background: var(--fv-bad-bg); color: var(--fv-bad); border-color: #E8CFC7; }
.fv-chip--info { background: var(--fv-info-bg); color: var(--fv-info); border: 1px dashed #CFCAC0; }
.fv-chip--gold { background: var(--fv-gold-l); color: var(--fv-gold-d); border-color: #EEDCB9; }
.fv-chip--muted { background: #F4F3F0; color: var(--fv-muted); border-color: var(--fv-line); }
.fv-tag { display: inline-block; font-size: .7rem; font-weight: 700; color: var(--fv-gold-d); background: var(--fv-gold-l); border-radius: 100px; padding: .1rem .55rem; margin-top: .25rem; }
.fv-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 100px; background: var(--fv-gold); color: #fff; font-size: .72rem; font-weight: 700; margin-inline-start: .4rem; }
.fv-saved { font-size: .7rem; font-weight: 600; color: #8A6A2E; display: inline-flex; align-items: center; gap: .3rem; }
.fv-saved::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #C9A35E; }
.fv-saved--live { color: var(--fv-muted); }
.fv-saved--live::before { background: var(--fv-ok); }
.fv-saved--off { color: var(--fv-muted); }
.fv-saved--off::before { background: #B8B4AC; }
/* structured AI detail (reviewer) */
.fv-rp-src { margin-top: .3rem; }
.fv-rp-evq { margin: .9rem 0 0; font-size: .86rem; padding: .55rem .75rem; border-inline-start: 3px solid #D9A23B; background: #FBF6EA; border-radius: 4px; }
.fv-rp-evq a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fv-rp-sums__ai h3 .fv-muted { font-weight: 500; font-size: .8em; }
.fv-rp-src .fv-saved { display: inline; }
.fv-rp-src .fv-mono { white-space: nowrap; }
.fv-aid { margin-top: .5rem; border-top: 1px dashed var(--fv-line); padding-top: .4rem; font-size: .82rem; }
.fv-aid > summary { cursor: pointer; font-weight: 700; color: var(--fv-ink); font-size: .8rem; min-height: 32px; display: flex; align-items: center; }
.fv-aid h5 { margin: .55rem 0 .2rem; font-size: .76rem; color: var(--fv-muted); font-weight: 700; }
.fv-aid__view { margin: .35rem 0 .2rem; }
.fv-aid__list { margin: 0; padding-inline-start: 1.1rem; display: grid; gap: .2rem; }
.fv-aid__t { display: inline-block; font-size: .68rem; font-weight: 700; color: #8A6A2E; background: #F6EEDF; border-radius: 4px; padding: 0 .3rem; margin-inline-end: .35rem; }
.fv-aid__loc { font-size: .68rem; color: #9A6B12; white-space: nowrap; }
.fv-aid__loc::before { content: ''; display: inline-block; width: 9px; height: 7px; border: 2px solid #E2A33B; border-radius: 2px; margin-inline-end: .25rem; vertical-align: middle; }
.fv-aid__meta { margin: .5rem 0 0; font-size: .7rem; color: var(--fv-muted); }

/* ---- demo account switcher (demo tooling — not authentication) */
.fv-switch { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .8rem; font-weight: 700; color: var(--fv-gold-d); background: #FFFDF8; border: 1px dashed #C9A35E; border-radius: 100px; padding: .3rem .75rem; min-height: 36px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.fv-switch:hover { background: #FFF6E3; }
.fv-switch:focus-visible { outline: 3px solid var(--fv-gold); outline-offset: 2px; }
.fv-switch--subnav { margin-inline-start: auto; }
.fv-switch--field { margin-inline-start: auto; font-size: .74rem; padding: .25rem .6rem; min-height: 40px; }
.fv-swlist { display: flex; flex-direction: column; gap: .5rem; }
.fv-swopt { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: start; font: inherit; background: #fff; border: 1.5px solid var(--fv-line); border-radius: 12px; padding: .75rem .9rem; cursor: pointer; min-height: 56px; }
.fv-swopt:hover { border-color: var(--fv-green); }
.fv-swopt.is-current { border-color: var(--fv-green); background: var(--fv-green-l); }
.fv-swopt__chk { width: 22px; flex: 0 0 22px; color: var(--fv-green); font-weight: 700; text-align: center; }
.fv-swopt__txt { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.fv-swopt__txt span { font-size: .82rem; color: var(--fv-muted); }
.fv-swopt__cur { font-size: .72rem; font-weight: 700; color: var(--fv-green); }
.fv-acct.is-last { border-color: #C9A35E; }
.fv-acct__last { font-size: .74rem; font-weight: 700; color: var(--fv-gold-d); }

@media print { .fv-aid { display: none; } }

/* ---------- reviewer chrome */
.fv-subnav { background: #fff; border-bottom: 1px solid var(--fv-line); position: sticky; top: 0; z-index: 20; }
.fv-subnav__in { display: flex; align-items: center; gap: 1.5rem; min-height: 56px; overflow-x: auto; scrollbar-width: none; }
.fv-subnav__brand { display: flex; flex-direction: column; flex: 0 0 auto; padding-inline-end: 1.25rem; border-inline-end: 1px solid var(--fv-line); }
.fv-subnav__svc { font-weight: 700; color: var(--fv-green); font-size: .95rem; }
.fv-subnav__role { font-size: .72rem; color: var(--fv-muted); }
.fv-tabs { display: flex; gap: .25rem; }
.fv-tab { display: inline-flex; align-items: center; min-height: 56px; padding: 0 .85rem; color: var(--fv-muted); font-weight: 600; font-size: .9rem; text-decoration: none; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.fv-tab:hover { color: var(--fv-green); }
.fv-tab.is-active { color: var(--fv-green); border-bottom-color: var(--fv-green); }
.fv-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--fv-muted); margin-bottom: .9rem; }
.fv-crumbs a { color: var(--fv-muted); text-decoration: none; }
.fv-crumbs a:hover { color: var(--fv-green); text-decoration: underline; }
.fv-crumbs [aria-current] { color: var(--fv-ink); font-weight: 600; }
.fv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.fv-head h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.3; margin: 0; }
.fv-head--tight { margin-bottom: 1rem; }
.fv-section { margin-top: 2rem; }
.fv-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.fv-section__head h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.fv-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--fv-line); flex-wrap: wrap; }
/* calm section: white sheet, no shadow, one hairline */
.fv-sec { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: 1.25rem 1.35rem; }
.fv-sec__title { font-size: 1rem; font-weight: 700; margin: 0 0 .85rem; }
.fv-sec__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .3rem; }
.fv-stack { display: grid; gap: 1rem; align-content: start; }
.fv-grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.fv-grid-aside { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.fv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fv-stat { display: flex; flex-direction: column; gap: .2rem; background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: 1.1rem 1.25rem; text-decoration: none; color: var(--fv-ink); }
.fv-stat:hover { border-color: var(--fv-green); }
.fv-stat__n { font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--fv-green); font-variant-numeric: tabular-nums; }
.fv-stat__l { font-size: .85rem; color: var(--fv-muted); font-weight: 600; }
.fv-stat.is-hot { border-color: var(--fv-gold); background: var(--fv-gold-l); }
.fv-stat.is-hot .fv-stat__n { color: var(--fv-gold-d); }
.fv-tablewrap { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); overflow-x: auto; position: relative; }
.fv-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fv-table th { text-align: start; font-size: .76rem; color: var(--fv-muted); font-weight: 700; padding: .75rem 1rem; background: #FBFAF8; border-bottom: 1px solid var(--fv-line); white-space: nowrap; }
.fv-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--fv-line2); vertical-align: middle; }
.fv-table tr:last-child td { border-bottom: 0; }
.fv-table tr.is-demo td { background: #FDFBF5; }
.fv-table tr.is-demo td:first-child { box-shadow: inset -3px 0 0 var(--fv-gold); }
.fv-table tr.is-dim td { color: var(--fv-muted); }
.fv-sub { font-size: .74rem; color: var(--fv-muted); }
.fv-emptybox { background: #fff; border: 1px dashed var(--fv-line); border-radius: var(--fv-r); padding: 2.5rem 1.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.fv-emptybox__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--fv-green-l); color: var(--fv-green); display: flex; align-items: center; justify-content: center; margin-bottom: .4rem; }
.fv-emptybox h3 { font-size: 1.02rem; font-weight: 700; margin: 0; }
.fv-emptybox p { color: var(--fv-muted); font-size: .9rem; margin: 0 0 .6rem; max-width: 420px; }
.fv-empty { text-align: center; padding: 3rem 0; }
.fv-alert { border-radius: var(--fv-r-sm); padding: .75rem 1rem; font-size: .9rem; margin: 1rem 0; display: flex; gap: .5rem; align-items: center; }
.fv-alert--warn { background: var(--fv-warn-bg); color: var(--fv-warn); }
.fv-alert--bad { background: var(--fv-bad-bg); color: var(--fv-bad); }
.fv-alert--ok { background: var(--fv-ok-bg); color: var(--fv-ok); }
.fv-dl { margin: 0; display: grid; }
.fv-dl__row { display: grid; grid-template-columns: minmax(110px, 36%) 1fr; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--fv-line2); font-size: .88rem; }
.fv-dl__row:last-child { border-bottom: 0; }
.fv-dl dt { color: var(--fv-muted); font-weight: 600; }
.fv-dl dd { margin: 0; min-width: 0; }
.fv-dl--compact .fv-dl__row { padding: .4rem 0; font-size: .8rem; grid-template-columns: minmax(100px, 34%) 1fr; }
.fv-input { width: 100%; min-height: 44px; border: 1px solid #D9D5CC; border-radius: var(--fv-r-sm); padding: .5rem .7rem; font: inherit; font-size: .9rem; background: #fff; color: var(--fv-ink); }
.fv-input:focus { outline: none; border-color: var(--fv-green); box-shadow: 0 0 0 3px rgba(20, 87, 58, .15); }
textarea.fv-input { min-height: 0; resize: vertical; line-height: 1.5; }
.fv-input--sm { min-height: 36px; font-size: .8rem; padding: .25rem .5rem; width: auto; }
.fv-label { display: block; font-size: .8rem; font-weight: 700; color: var(--fv-ink); margin: .75rem 0 .35rem; }
.fv-fld { margin-bottom: .25rem; }
.fv-field2 { display: grid; grid-template-columns: 1fr 110px; gap: .75rem; }
.fv-req { color: var(--fv-bad); font-weight: 600; font-size: .75rem; }
.fv-err { color: var(--fv-bad); font-size: .8rem; margin: .3rem 0 0; }

/* ---------- entry */
.fv-entry { max-width: 820px; margin: 2rem auto 0; }
.fv-entry__intro { margin-bottom: 1.5rem; }
.fv-entry__intro h1 { font-size: 1.9rem; font-weight: 700; margin: 0 0 .5rem; }
.fv-entry__intro p { color: var(--fv-muted); margin: 0; line-height: 1.7; }
.fv-entry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fv-acct { display: flex; flex-direction: column; align-items: flex-start; text-align: start; gap: .3rem; background: #fff; border: 1.5px solid var(--fv-line); border-radius: 16px; padding: 1.25rem; cursor: pointer; font: inherit; color: var(--fv-ink); transition: border-color .15s, box-shadow .15s; }
.fv-acct:hover { border-color: var(--fv-green); box-shadow: 0 12px 28px rgba(20, 87, 58, .08); }
.fv-acct__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--fv-green-l); display: flex; align-items: center; justify-content: center; margin-bottom: .6rem; }
.fv-acct__title { font-weight: 700; font-size: 1.05rem; }
.fv-acct__name { font-size: .82rem; color: var(--fv-gold); font-weight: 700; }
.fv-acct__desc { font-size: .88rem; color: var(--fv-muted); line-height: 1.6; }
.fv-acct__cta { margin-top: .75rem; display: inline-flex; align-items: center; gap: .3rem; color: var(--fv-green); font-weight: 700; font-size: .9rem; }

/* ---------- transaction file */
.fv-figure { margin: 0; }
.fv-figure img { width: 100%; border-radius: var(--fv-r-sm); display: block; aspect-ratio: 25 / 16; object-fit: cover; background: #EEE; }
.fv-figure figcaption { font-size: .8rem; color: var(--fv-muted); margin-top: .5rem; }
.fv-pre { display: flex; gap: .75rem; padding: .75rem; border-radius: var(--fv-r-sm); background: #FBFAF8; }
.fv-pre.is-ok { background: var(--fv-ok-bg); }
.fv-pre__ic { width: 28px; height: 28px; border-radius: 50%; background: var(--fv-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.fv-pre p { margin: .2rem 0 0; color: var(--fv-muted); }
.fv-checklist, .fv-plain, .fv-docs, .fv-plainlist { list-style: none; padding: 0; margin: .75rem 0 0; }
.fv-checklist li { display: flex; gap: .5rem; font-size: .86rem; padding: .25rem 0; }
.fv-checklist li span { color: var(--fv-green); font-weight: 800; }
.fv-plain li { font-size: .88rem; padding: .25rem 0; position: relative; padding-inline-start: 1rem; line-height: 1.6; }
.fv-plain li::before { content: ''; position: absolute; inset-inline-start: 0; top: .8rem; width: 5px; height: 5px; border-radius: 50%; background: var(--fv-gold); }
.fv-docs li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--fv-line2); font-size: .88rem; }
.fv-docs li:last-child { border-bottom: 0; }
.fv-docs__ic { color: var(--fv-muted); display: flex; }
.fv-docs li > span:nth-child(2) { flex: 1; }
.fv-swatches { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.fv-swatch { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; }
.fv-swatch span { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .1); }
.fv-plainlist li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--fv-line2); font-size: .88rem; }
.fv-plainlist li:last-child { border-bottom: 0; }

/* ---------- builder */
.fv-stepper { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.5rem; }
.fv-stepper li { flex: 1; }
.fv-stepper li > a, .fv-stepper li > span { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border-radius: 10px; background: #fff; border: 1px solid var(--fv-line); font-size: .88rem; font-weight: 600; color: var(--fv-muted); text-decoration: none; }
.fv-stepper__n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F3F2EF; font-weight: 700; font-size: .8rem; flex: 0 0 auto; }
.fv-stepper__n svg { width: 13px; height: 13px; }
.fv-stepper li.is-current > span { border-color: var(--fv-green); color: var(--fv-green); box-shadow: inset 0 -2px 0 var(--fv-green); }
.fv-stepper li.is-current .fv-stepper__n { background: var(--fv-green); color: #fff; }
.fv-stepper li.is-done .fv-stepper__n { background: var(--fv-ok-bg); color: var(--fv-green); }
.fv-stepper li > a:hover { border-color: var(--fv-green); color: var(--fv-ink); }
.fv-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.fv-tpl { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .85rem; border: 1.5px solid var(--fv-line); border-radius: 10px; cursor: pointer; background: #fff; }
.fv-tpl input { accent-color: var(--fv-green); width: 18px; height: 18px; margin-top: .15rem; flex: 0 0 auto; }
.fv-tpl > span { display: flex; flex-direction: column; gap: .15rem; }
.fv-tpl.is-on { border-color: var(--fv-green); background: var(--fv-green-l); }
.fv-crows { display: grid; gap: 0; margin-top: .8rem; border-top: 1px solid var(--fv-line2); }
.fv-crow { display: grid; grid-template-columns: auto 30px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .65rem .2rem; border-bottom: 1px solid var(--fv-line2); cursor: pointer; position: relative; }
.fv-crow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fv-crow__box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #C9C5BB; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .8rem; }
.fv-crow input:checked + .fv-crow__box { background: var(--fv-green); border-color: var(--fv-green); }
.fv-crow input:checked + .fv-crow__box::after { content: '✓'; }
.fv-crow input:focus-visible + .fv-crow__box { outline: 3px solid var(--fv-gold); outline-offset: 2px; }
.fv-crow__no { font-size: .74rem; font-weight: 800; color: var(--fv-gold); direction: ltr; text-align: center; }
.fv-crow__txt { display: flex; flex-direction: column; min-width: 0; }
.fv-crow__txt strong { font-size: .92rem; }
.fv-crow__txt span { font-size: .8rem; color: var(--fv-muted); line-height: 1.5; }
.fv-crow__crit { font-size: .72rem; font-weight: 700; color: var(--fv-muted); direction: ltr; background: #F6F5F2; border-radius: 6px; padding: .12rem .45rem; white-space: nowrap; }
.fv-crow.is-off .fv-crow__txt { opacity: .55; }
.fv-editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.fv-editor__board { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: .75rem; }
.fv-editor__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .75rem 0 .25rem; }
.fv-editor__panel { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: 1rem 1.1rem; position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; }
.fv-hsedit__head { display: flex; gap: .75rem; align-items: flex-end; }
.fv-hsedit__head .fv-label { margin-top: 0; }
.fv-unitlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.fv-unitrow { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--fv-line); border-radius: 8px; font-size: .84rem; }
.fv-hslist { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .4rem; }
.fv-hslist__btn { width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; text-align: start; padding: .5rem .6rem; border: 1px solid var(--fv-line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; min-height: 44px; }
.fv-hslist__btn.is-current { border-color: var(--fv-green); background: var(--fv-green-l); }
.fv-hslist__no { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--fv-green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; direction: ltr; }
.fv-hslist__name { font-weight: 700; font-size: .85rem; }
.fv-hslist__units { font-size: .72rem; color: var(--fv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.fv-sumbox { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.fv-sumbox__n { font-size: 2rem; font-weight: 700; color: var(--fv-green); line-height: 1.1; }
.fv-sumbox__l { color: var(--fv-muted); font-weight: 600; font-size: .86rem; }
.fv-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.fv-filter { padding: .4rem .9rem; border-radius: 100px; border: 1px solid var(--fv-line); background: #fff; color: var(--fv-muted); font-weight: 600; font-size: .84rem; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.fv-filter.is-active { background: var(--fv-green); border-color: var(--fv-green); color: #fff; }
.fv-radios { border: 0; padding: 0; margin: 0; display: grid; gap: .4rem; }
.fv-radio { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border: 1px solid var(--fv-line); border-radius: 8px; cursor: pointer; }
.fv-radio input { width: 18px; height: 18px; accent-color: var(--fv-green); }

/* ---------- render board + hotspots */
.fv-board { position: relative; border-radius: var(--fv-r-sm); overflow: hidden; background: #E9E6E0; user-select: none; touch-action: manipulation; }
/* the board takes the image's own proportions (never cropped); --fv-ratio = height / width, --fv-bmax caps the height */
.fv-board { max-width: calc(var(--fv-bmax, 400vh) / var(--fv-ratio, .64)); margin-inline: auto; }
.fv-board img { width: 100%; height: auto; display: block; pointer-events: none; }
.fv-board--edit { --fv-bmax: 64vh; }
.fv-board--edit.is-dragging { cursor: grabbing; outline: 2px dashed var(--fv-gold); outline-offset: -2px; }
.fv-board__hint { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(255, 255, 255, .92); color: var(--fv-ink); font-size: .74rem; font-weight: 700; border-radius: 100px; padding: .2rem .65rem; pointer-events: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transition: opacity .15s; }
.fv-board.is-dragging .fv-board__hint { opacity: 0; }
.fv-hs.is-new { animation: fvPulse 1.4s ease-out 3; }
.fv-board--edit .fv-hs { cursor: grab; touch-action: none; }
.fv-hs { position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .84rem; border: 2.5px solid #fff; background: var(--fv-green); color: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); text-decoration: none; cursor: pointer; font-family: inherit; padding: 0; direction: ltr; }
.fv-hs:not(.fv-hs--static)::before { content: ''; position: absolute; width: 44px; height: 44px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; }
.fv-hs.is-current { background: var(--fv-gold); box-shadow: 0 0 0 4px rgba(185, 138, 62, .35), 0 3px 10px rgba(0, 0, 0, .3); }
.fv-hs.is-drag { cursor: grabbing; transform: translate(-50%, -50%) scale(1.3); z-index: 5; background: var(--fv-gold); box-shadow: 0 0 0 6px rgba(185, 138, 62, .3), 0 8px 18px rgba(0, 0, 0, .35); transition: none; }
.fv-hs--static { position: static; transform: none; flex: 0 0 auto; box-shadow: none; border-width: 0; }
.fv-hs--sm { width: 30px; height: 30px; font-size: .75rem; }
.fv-hs--todo { background: #fff; color: var(--fv-green); border: 2px solid var(--fv-green); }
.fv-hs--done { background: var(--fv-green); color: #fff; }
.fv-hs--current { background: var(--fv-gold); color: #fff; }
.fv-hs--recap { background: var(--fv-warn); color: #fff; }
/* field board: state decides size; a 44px invisible halo keeps every point tappable */
.fv-board--field .fv-hs { width: 26px; height: 26px; font-size: .68rem; border-width: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.fv-board--field .fv-hs--todo { background: rgba(255, 255, 255, .94); color: var(--fv-green); border: 2px solid var(--fv-green); }
.fv-board--field .fv-hs--done { width: 22px; height: 22px; font-size: .7rem; background: var(--fv-green); border-color: #fff; }
.fv-board--field .fv-hs--current { width: 28px; height: 28px; background: var(--fv-gold); }
.fv-board--field .fv-hs--recap { width: 36px; height: 36px; font-size: .95rem; background: var(--fv-warn); border: 2.5px solid #fff; box-shadow: 0 0 0 3px rgba(125, 90, 22, .35), 0 2px 6px rgba(0, 0, 0, .3); z-index: 2; }
.fv-board--field .fv-hs.is-next:not(.fv-hs--recap) { width: 36px; height: 36px; font-size: .82rem; background: var(--fv-gold); color: #fff; border: 2.5px solid #fff; z-index: 2; animation: fvPulse 2s ease-out infinite; }
.fv-board--field .fv-hs.is-locked { width: 18px; height: 18px; font-size: .6rem; opacity: .6; cursor: default; }
@keyframes fvPulse { 0% { box-shadow: 0 0 0 0 rgba(185, 138, 62, .55), 0 2px 6px rgba(0, 0, 0, .3); } 70% { box-shadow: 0 0 0 12px rgba(185, 138, 62, 0), 0 2px 6px rgba(0, 0, 0, .3); } 100% { box-shadow: 0 0 0 0 rgba(185, 138, 62, 0), 0 2px 6px rgba(0, 0, 0, .3); } }
@media (min-width: 768px) { .fv-board--field .fv-hs--todo { width: 30px; height: 30px; font-size: .74rem; } .fv-board--field .fv-hs.is-next:not(.fv-hs--recap) { width: 42px; height: 42px; } }

/* ---------- photos + difference highlight */
.fv-refcrop { width: 100%; aspect-ratio: 4 / 3; background-size: 260% auto; background-repeat: no-repeat; background-color: #E9E6E0; border-radius: var(--fv-r-sm); }
.fv-refcrop--hero { aspect-ratio: 4 / 3; border-radius: 12px; }
.fv-refcrop--wide { aspect-ratio: 4 / 3; background-size: 125% auto; }
.fv-photo { position: relative; border-radius: var(--fv-r-sm); overflow: hidden; background: #E9E6E0; aspect-ratio: 4 / 3; }
.fv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-photo__fit { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; display: block; }
.fv-photo--hero { aspect-ratio: 4 / 3; border-radius: 12px; }
.fv-photo--lg, .fv-photo--wide { aspect-ratio: 4 / 3; }
.fv-photo--thumb { width: 76px; flex: 0 0 auto; aspect-ratio: 1; }
.fv-photo--missing { display: flex; align-items: center; justify-content: center; color: var(--fv-muted); font-size: .8rem; }
.fv-mark { position: absolute; border: 2px solid #E2A33B; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 9999px rgba(0, 0, 0, .08); pointer-events: none; }
.fv-mark__lbl { position: absolute; top: -1px; inset-inline-start: -1px; transform: translateY(-100%); background: #E2A33B; color: #1B1408; font-size: .62rem; font-weight: 700; padding: .05rem .4rem; border-radius: 6px 6px 0 0; white-space: nowrap; }
.fv-markkey { display: inline-block; width: 12px; height: 10px; border: 2px solid #E2A33B; border-radius: 3px; vertical-align: middle; }

/* ---------- inbox */
.fv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }
.fv-inbox { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); overflow: hidden; display: grid; grid-template-columns: 140px minmax(0, 1fr); }
.fv-inbox.is-demo { border-color: #E3CFA6; }
.fv-inbox__img { aspect-ratio: auto; height: 100%; border-radius: 0; }
.fv-inbox__body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.fv-inbox__top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.fv-inbox h2 { font-size: 1.02rem; font-weight: 700; margin: .15rem 0 0; }
.fv-inbox__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 0; }
.fv-inbox__meta div { background: #FBFAF8; border-radius: 8px; padding: .4rem .5rem; }
.fv-inbox__meta dt { font-size: .68rem; color: var(--fv-muted); font-weight: 600; }
.fv-inbox__meta dd { margin: 0; font-weight: 700; font-size: .9rem; }
.fv-inbox .fv-btn { align-self: flex-start; }

/* ---------- detailed comparison */
.fv-rv--wide .container { max-width: 1560px; }
.fv-rv--review.fv-page { padding-top: 12px; }
.fv-reviewbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: .55rem .9rem; margin-bottom: .8rem; position: sticky; top: 57px; z-index: 10; flex-wrap: wrap; }
.fv-reviewbar__title { display: flex; flex-direction: column; min-width: 0; }
.fv-reviewbar__title h1 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.fv-progress { display: flex; align-items: center; gap: .75rem; font-size: .84rem; font-weight: 600; color: var(--fv-muted); flex: 1 1 260px; }
.fv-progress__bar { flex: 1; height: 8px; background: #EFEDE8; border-radius: 100px; overflow: hidden; max-width: 360px; }
.fv-progress__bar span { display: block; height: 100%; background: var(--fv-green); border-radius: 100px; transition: width .3s; }
.fv-review { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: .9rem; align-items: start; }
.fv-ulist { display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 128px; max-height: calc(100vh - 140px); overflow-y: auto; padding: .3rem; background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); }
.fv-ulist__item { display: flex; flex-direction: column; gap: .35rem; padding: .55rem .65rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; color: var(--fv-ink); }
.fv-ulist__item:hover { background: #FAF9F6; }
.fv-ulist__item.is-current { background: var(--fv-green-l); border-color: #D3E6DA; box-shadow: inset -3px 0 0 var(--fv-green); }
.fv-ulist__top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.fv-ulist__name { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fv-ulist__id { font-size: .68rem; color: var(--fv-muted); flex: 0 0 auto; }
.fv-ulist__meta { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.fv-cmp { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.fv-cmp__title { min-width: 0; }
.fv-cmp__meta { font-size: .72rem; color: var(--fv-muted); font-weight: 500; margin-inline-start: .4rem; }
.fv-cmp__st { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex: 0 0 auto; }
.fv-brief { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: .7rem .9rem; display: flex; flex-direction: column; gap: .4rem; }
.fv-brief__top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.fv-brief h2 { font-size: 1.1rem; font-weight: 700; margin: 0 0 .15rem; }
.fv-official summary { cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--fv-gold); min-height: 28px; display: flex; align-items: center; }
.fv-official .fv-plain li { font-size: .82rem; }
.fv-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); overflow: hidden; }
.fv-vs figure { margin: 0; padding: .75rem; display: flex; flex-direction: column; min-width: 0; }
.fv-vs figure + figure { border-inline-start: 1px solid var(--fv-line); }
.fv-vs figcaption { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; font-weight: 700; margin-bottom: .5rem; }
.fv-vs figcaption .fv-muted { font-weight: 500; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-vs__note { font-size: .74rem; color: var(--fv-muted); margin: -.3rem 0 0; display: flex; align-items: center; gap: .35rem; }
.fv-facts { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: .75rem; }
.fv-fact { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: .65rem .9rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.fv-fact__k { font-size: .7rem; font-weight: 700; color: var(--fv-gold); }
.fv-fact__row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fv-fact__obs { margin: 0; font-size: .86rem; line-height: 1.6; }
.fv-conf { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--fv-muted); font-weight: 600; }
.fv-conf__bar { width: 80px; height: 5px; border-radius: 100px; background: #EFEDE8; overflow: hidden; flex: 0 0 auto; }
.fv-conf__bar span { display: block; height: 100%; background: #8C877C; }
.fv-conf__why { display: block; font-size: .7rem; color: var(--fv-soft); font-weight: 500; }
.fv-human { display: inline-flex; gap: .35rem; align-items: flex-start; color: var(--fv-warn); font-weight: 600; font-size: .82rem; background: var(--fv-warn-bg); border-radius: 8px; padding: .35rem .55rem; margin: 0; }
.fv-human--inline { display: flex; margin-top: .35rem; width: fit-content; }
.fv-cmp__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1rem; }
.fv-panel { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: 1rem 1.1rem; }
.fv-panel h3 { font-size: .92rem; font-weight: 700; margin: 0 0 .7rem; }
.fv-notes { list-style: none; padding: 0; margin: .35rem 0 0; display: grid; gap: .3rem; }
.fv-notes li { display: flex; flex-direction: column; gap: .1rem; font-size: .84rem; background: #FBFAF8; border-radius: 8px; padding: .4rem .6rem; }
.fv-rvact { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem 0 0; }
.fv-attempts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .6rem; }
.fv-attempt { display: flex; gap: .65rem; align-items: flex-start; padding: .5rem; border: 1px solid var(--fv-line); border-radius: 10px; background: #fff; }
.fv-attempt.is-current { border-color: #CFE3D6; background: #FBFDFB; }
.fv-attempt > div { display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; min-width: 0; }
.fv-log { list-style: none; padding: 0; margin: 0; }
.fv-log li { display: flex; gap: .7rem; padding: .45rem 0; font-size: .86rem; position: relative; }
.fv-log li::before { content: ''; position: absolute; inset-inline-start: 5px; top: 1.3rem; bottom: -.45rem; width: 1px; background: var(--fv-line); }
.fv-log li:last-child::before { display: none; }
.fv-log__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--fv-green); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--fv-green); margin-top: .35rem; flex: 0 0 auto; }

/* ---------- outputs / evidence */
.fv-final { display: flex; align-items: center; gap: 1rem; border-radius: var(--fv-r); padding: 1rem 1.25rem; margin-bottom: 1rem; flex-wrap: wrap; }
.fv-final.is-ok { background: var(--fv-ok-bg); border: 1px solid #D3E6DA; }
.fv-final.is-bad { background: var(--fv-bad-bg); border: 1px solid #E8CFC7; }
.fv-final__ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; color: #fff; background: var(--fv-green); }
.fv-final.is-bad .fv-final__ic { background: var(--fv-bad); }
.fv-final > div { display: flex; flex-direction: column; }
.fv-final strong { font-size: 1.3rem; }
.fv-final__counts { margin-inline-start: auto; flex-direction: row !important; flex-wrap: wrap; gap: 1.25rem; font-size: .86rem; color: var(--fv-muted); }
.fv-final__counts b { color: var(--fv-ink); font-size: 1.1rem; }
.fv-outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.fv-out { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: 1.15rem; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.fv-out__ic { width: 44px; height: 44px; border-radius: 10px; background: var(--fv-green-l); color: var(--fv-green); display: flex; align-items: center; justify-content: center; }
.fv-out h2 { font-size: 1rem; font-weight: 700; margin: .3rem 0 0; }
.fv-out p { color: var(--fv-muted); font-size: .86rem; margin: 0 0 .5rem; flex: 1; }
.fv-tree { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fv-tree .fv-tree { margin-top: .5rem; padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--fv-line); }
.fv-tree__group { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: .9rem 1rem; }
.fv-tree__label { display: flex; align-items: center; gap: .6rem; color: var(--fv-green); }
.fv-tree__label strong { color: var(--fv-ink); }
.fv-folder { background: #fff; border: 1px solid var(--fv-line); border-radius: 10px; }
.fv-folder__row { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; text-decoration: none; color: var(--fv-ink); min-height: 52px; }
.fv-folder__row strong { display: block; font-size: .9rem; direction: ltr; text-align: end; unicode-bidi: plaintext; }
.fv-folder__row .fv-small { display: block; }
.fv-folder__ic { color: var(--fv-gold); display: flex; }
.fv-folder__chev { color: var(--fv-muted); display: flex; transition: transform .2s; }
.fv-folder.is-open { border-color: var(--fv-green); }
.fv-folder.is-open .fv-folder__chev { transform: rotate(-90deg); }
.fv-folder__body { padding: 0 .9rem .9rem; }
.fv-files { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.fv-file { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; border: 1px solid var(--fv-line); border-radius: 8px; padding: .4rem; }
.fv-file img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.fv-file__ic { height: 90px; display: flex; align-items: center; justify-content: center; background: #FBFAF8; border-radius: 6px; color: var(--fv-muted); }
.fv-file .fv-chip { align-self: flex-start; }

/* ---------- processing, toasts, modal, demo */
.fv-processing { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; padding: 2rem 1rem; background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); margin: 1rem 0; }
.fv-processing--page { margin: 4rem auto; max-width: 420px; }
.fv-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--fv-green-m); border-top-color: var(--fv-green); animation: fvSpin .8s linear infinite; display: inline-block; }
.fv-spin--sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255, 255, 255, .4); border-top-color: #fff; }
@keyframes fvSpin { to { transform: rotate(360deg); } }
.fv-toasts { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(50%); z-index: 1400; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.fv-toast { background: var(--fv-ink2); color: #fff; padding: .65rem 1.1rem; border-radius: 10px; font-size: .88rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: opacity .3s, transform .3s; }
.fv-toast--ok { background: var(--fv-green); }
.fv-toast--bad { background: var(--fv-bad); }
.fv-toast--info { background: #4A3A16; }
.fv-toast.is-out { opacity: 0; transform: translateY(8px); }
.fv-modal { position: fixed; inset: 0; z-index: 1350; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fv-modal[hidden] { display: none; }
.fv-modal__backdrop { position: absolute; inset: 0; background: rgba(22, 22, 22, .45); }
.fv-modal__box { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); text-align: start; }
.fv-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--fv-line); }
.fv-modal__head h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.fv-modal__body { padding: 1rem 1.25rem; font-size: .92rem; line-height: 1.65; }
.fv-modal__body p { margin: 0 0 .5rem; }
.fv-modal__foot { display: flex; gap: .5rem; justify-content: flex-start; padding: .9rem 1.25rem; border-top: 1px solid var(--fv-line); background: #FBFAF8; border-radius: 0 0 16px 16px; flex-wrap: wrap; }
#fv-demo { position: fixed; bottom: 16px; left: 16px; z-index: 1050; }
.fv-demo summary { list-style: none; cursor: pointer; background: #fff; border: 1px dashed #C9A35E; color: var(--fv-gold-d); font-weight: 700; font-size: .74rem; border-radius: 100px; padding: .35rem .8rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .1); min-height: 32px; display: flex; align-items: center; }
.fv-demo summary::-webkit-details-marker { display: none; }
.fv-demo__menu { position: absolute; bottom: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--fv-line); border-radius: 12px; padding: .6rem; width: 230px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; gap: .35rem; text-align: start; }
.fv-demo__menu button { font: inherit; font-size: .84rem; font-weight: 600; text-align: start; min-height: 40px; border-radius: 8px; border: 1px solid var(--fv-line); background: #fff; padding: .35rem .7rem; cursor: pointer; }
.fv-demo__menu button.is-on { border-color: var(--fv-green); color: var(--fv-green); background: var(--fv-green-l); }
.fv-demo__menu button.is-danger { color: var(--fv-bad); }

/* =================================================================== FIELD INSPECTOR (mobile-first, 390 × 844) */
.fv-field { max-width: 520px; margin: 0 auto; min-height: 70vh; display: flex; flex-direction: column; background: var(--fv-bg); }
.fv-page .container > .fv-field { margin-top: -28px; }
.fv-field__body { padding: 1rem 16px 1.5rem; flex: 1; }
.fv-field__foot { position: sticky; bottom: 0; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--fv-line); padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .45rem; z-index: 15; box-shadow: 0 -6px 20px rgba(0, 0, 0, .04); }
.fv-foot-meta { font-size: .8rem; color: var(--fv-muted); text-align: center; font-weight: 600; }
.fv-fhead { background: #fff; border-bottom: 1px solid var(--fv-line); position: sticky; top: 0; z-index: 16; }
.fv-fhead__in { display: flex; align-items: center; gap: .75rem; padding: .75rem 16px; }
.fv-fhead__in > div { display: flex; flex-direction: column; }
.fv-fhead__svc { font-size: .74rem; color: var(--fv-green); font-weight: 700; }
.fv-ftabs { display: flex; padding: 0 16px; gap: .25rem; }
.fv-ftabs a { flex: 1; text-align: center; padding: .7rem .5rem; font-weight: 700; font-size: .9rem; color: var(--fv-muted); text-decoration: none; border-bottom: 2.5px solid transparent; min-height: 44px; }
.fv-ftabs a.is-active { color: var(--fv-green); border-bottom-color: var(--fv-green); }
.fv-fhead--task .fv-fhead__in { gap: .6rem; padding: .5rem 12px .35rem; }
.fv-fhead__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.fv-fhead__title { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-fhead__sub { font-size: .74rem; color: var(--fv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-fhead__recap { color: var(--fv-warn); font-weight: 700; }
.fv-fsteps { display: flex; gap: .2rem; padding: 0 12px .45rem; margin: 0; list-style: none; }
.fv-fsteps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: .2rem; font-size: .74rem; font-weight: 600; color: #9A958A; padding: .25rem 0; border-radius: 100px; white-space: nowrap; }
.fv-fsteps li.is-done { color: var(--fv-green); }
.fv-fsteps li.is-current { color: #fff; background: var(--fv-green); font-weight: 700; }
.fv-fsteps__ok { font-weight: 800; font-size: .72rem; }
.fv-fhead__bar { height: 3px; background: #EFEDE8; }
.fv-fhead__bar span { display: block; height: 100%; background: var(--fv-gold); transition: width .3s; }
.fv-ftitle { font-size: 1.1rem; font-weight: 700; margin: .1rem 0 .5rem; line-height: 1.35; }
.fv-hintline { font-size: .86rem; color: var(--fv-muted); margin: 0 0 .65rem; }
.fv-progline { font-size: .86rem; color: var(--fv-muted); margin: .7rem 0 .5rem; }
.fv-progline b { color: var(--fv-green); }
.fv-bigline { font-size: 1rem; color: var(--fv-muted); margin: 0 0 .9rem; }
.fv-bigline b { color: var(--fv-green); font-size: 1.5rem; }
.fv-okline { display: flex; align-items: center; gap: .4rem; color: var(--fv-green); font-weight: 700; margin: .8rem 0 0; }
/* task cards: project, place, type, remaining points, status, one CTA */
.fv-tcard { background: #fff; border: 1px solid var(--fv-line); border-radius: 16px; padding: 1rem 1rem 1.1rem; margin-bottom: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.fv-tcard h2 { font-size: 1.08rem; font-weight: 700; margin: .25rem 0 0; }
.fv-tcard__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.fv-tcard__sub { display: flex; align-items: center; gap: .3rem; margin: 0; font-size: .86rem; color: var(--fv-muted); }
.fv-tcard__left { display: flex; align-items: baseline; gap: .45rem; margin: .4rem 0 .5rem; }
.fv-tcard__left b { font-size: 1.6rem; color: var(--fv-green); line-height: 1; }
.fv-tcard__left span { font-size: .86rem; color: var(--fv-muted); font-weight: 600; }
.fv-tcard--recap { border-color: #EBD9B4; background: #FFFCF6; }
.fv-tcard--done { opacity: .92; }
.fv-recap { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border-radius: 10px; padding: .6rem; margin: .4rem 0 .5rem; }
.fv-recap > div { display: flex; flex-direction: column; gap: .25rem; align-items: center; }
.fv-recap dl { margin: 0; font-size: .88rem; }
.fv-recap dt { font-size: .72rem; color: var(--fv-muted); font-weight: 700; }
.fv-recap dd { margin: 0 0 .35rem; }
/* point list on the reference */
.fv-plist { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.fv-plist__item { display: flex; align-items: center; gap: .65rem; background: #fff; border: 1px solid transparent; border-radius: 10px; padding: .5rem .65rem; text-decoration: none; color: var(--fv-ink); min-height: 48px; }
.fv-plist__item.is-next { border-color: var(--fv-gold); }
.fv-plist__no { width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; border: 1.5px solid var(--fv-green); color: var(--fv-green); background: #fff; direction: ltr; }
.fv-plist__no--done { background: var(--fv-green); color: #fff; }
.fv-plist__no--recap { background: var(--fv-warn); border-color: var(--fv-warn); color: #fff; }
.fv-plist__item.is-next .fv-plist__no { background: var(--fv-gold); border-color: var(--fv-gold); color: #fff; }
.fv-plist__txt strong { font-size: .92rem; }
.fv-plist__st { font-size: .74rem; font-weight: 700; color: var(--fv-muted); flex: 0 0 auto; }
.fv-plist__item--done .fv-plist__st { color: var(--fv-green); }
.fv-plist__item.is-next .fv-plist__st { color: var(--fv-gold-d); }
.fv-plist__item--recap .fv-plist__st { color: var(--fv-warn); }
/* a capture point: look → capture */
.fv-pt__head { display: flex; gap: .65rem; align-items: center; margin-bottom: .7rem; }
.fv-pt__head .fv-ftitle { margin: 0; }
.fv-pt__no { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--fv-gold); color: #fff; font-weight: 800; font-size: .82rem; direction: ltr; }
.fv-pt__ref { margin: 0; }
.fv-pt__ref figcaption { font-size: .74rem; color: var(--fv-muted); margin-top: .3rem; }
.fv-pt__ins { font-size: 1.12rem; font-weight: 700; line-height: 1.55; margin: .9rem 0 .55rem; }
.fv-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.fv-tips li { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; line-height: 1.5; color: #33322E; }
.fv-tips li > span { color: var(--fv-green); font-weight: 800; }
.fv-recapbox { background: #FFFBF2; border: 1px solid #EBD9B4; border-radius: 12px; padding: .75rem .9rem; margin-bottom: .9rem; font-size: .9rem; }
.fv-recapbox > strong { display: flex; align-items: center; gap: .35rem; color: var(--fv-warn); margin-bottom: .25rem; }
.fv-recapbox p { margin: .2rem 0; line-height: 1.6; }
.fv-recapbox__prev { display: flex; gap: .6rem; align-items: center; margin-top: .5rem; }
.fv-demo-pick { margin-top: 1.1rem; border: 1px dashed #DDBF86; border-radius: 12px; padding: .5rem .75rem; background: #FFFDF8; }
.fv-demo-pick summary { cursor: pointer; font-weight: 700; font-size: .82rem; color: var(--fv-gold-d); min-height: 44px; display: flex; align-items: center; }
.fv-demo-pick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .45rem; margin-top: .4rem; }
.fv-demo-pick__btn { display: flex; flex-direction: column; gap: .25rem; font: inherit; font-size: .74rem; font-weight: 600; text-align: start; border: 1px solid var(--fv-line); border-radius: 8px; padding: .3rem; background: #fff; cursor: pointer; min-height: 44px; }
.fv-demo-pick__btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
/* image check */
.fv-checking { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: 1.4rem .5rem; }
.fv-checking strong { font-size: 1rem; }
.fv-checking span:last-child { font-size: .8rem; color: var(--fv-muted); }
.fv-gate { margin-top: .9rem; }
.fv-gate__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.fv-gate__top h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.fv-gate__reason { margin: .45rem 0 0; font-weight: 700; font-size: .95rem; line-height: 1.55; }
.fv-gate.is-insufficient .fv-gate__reason { color: var(--fv-bad); }
.fv-gate.is-recapture_recommended .fv-gate__reason, .fv-gate.is-usable_warning .fv-gate__reason { color: var(--fv-warn); }
.fv-gate__checks { list-style: none; padding: 0; margin: .7rem 0 .4rem; display: grid; gap: .3rem; }
.fv-gate__checks li { display: flex; gap: .5rem; font-size: .9rem; align-items: flex-start; line-height: 1.45; }
.fv-gate__checks li > span { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .72rem; margin-top: .05rem; }
.fv-gate__checks .is-ok > span { color: var(--fv-ok); background: var(--fv-ok-bg); }
.fv-gate__checks .is-warn > span { color: var(--fv-warn); background: var(--fv-warn-bg); }
.fv-gate__checks .is-fail { color: var(--fv-bad); font-weight: 700; }
.fv-gate__checks .is-fail > span { color: #fff; background: var(--fv-bad); }
.fv-gate__checks .is-eye { color: var(--fv-muted); }
.fv-gate__checks .is-eye > span { border: 1.5px solid #CFCAC0; }
.fv-gate__foot { font-size: .72rem; color: var(--fv-soft); margin: .3rem 0 0; }
/* verify: initial result + answer */
.fv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .4rem; }
.fv-pair figure { margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.fv-pair figcaption { font-size: .74rem; color: var(--fv-muted); font-weight: 700; text-align: center; }
.fv-anlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.fv-anlist li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; padding: .4rem .2rem; color: var(--fv-soft); }
.fv-anlist li > span { width: 18px; text-align: center; font-weight: 800; }
.fv-anlist li.is-done { color: var(--fv-ink); }
.fv-anlist li.is-done > span { color: var(--fv-green); }
.fv-anlist li.is-run { color: var(--fv-ink); font-weight: 700; }
.fv-qcard { padding: 1rem 0 .4rem; border-top: 1px solid var(--fv-line); scroll-margin-top: 140px; }
.fv-qcard:first-of-type { border-top: 0; }
.fv-qcard__k { display: block; font-size: .8rem; font-weight: 700; color: var(--fv-gold-d); margin-bottom: .45rem; }
.fv-qcard__ai { background: #fff; border-radius: 12px; padding: .75rem .85rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.fv-qcard__lbl { font-size: .72rem; font-weight: 700; color: var(--fv-muted); }
.fv-qcard__ai p { margin: 0; font-size: .95rem; line-height: 1.6; }
.fv-qcard__conf { font-size: .72rem; color: var(--fv-soft); }
.fv-qcard__q { font-size: 1.02rem; font-weight: 700; line-height: 1.55; margin: .85rem 0 .55rem; }
.fv-answers { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.fv-answer { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--fv-line); background: #fff; font: inherit; font-weight: 700; font-size: .95rem; display: flex; align-items: center; justify-content: center; gap: .45rem; cursor: pointer; color: var(--fv-ink); }
.fv-answer > span { font-weight: 800; }
.fv-answer--ok.is-on { background: var(--fv-ok-bg); border-color: var(--fv-ok); color: var(--fv-ok); }
.fv-answer--bad.is-on { background: var(--fv-bad-bg); border-color: var(--fv-bad); color: var(--fv-bad); }
.fv-answer--info.is-on { background: var(--fv-info-bg); border-color: var(--fv-info); color: var(--fv-info); }
.fv-answer--warn.is-on { background: var(--fv-warn-bg); border-color: var(--fv-warn); color: var(--fv-warn); }
.fv-notebox summary { cursor: pointer; font-size: .84rem; color: var(--fv-muted); font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.fv-sumlist { list-style: none; padding: 0; margin: 0 0 .9rem; display: grid; gap: .2rem; }
.fv-sumlist li { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; font-weight: 600; border-bottom: 1px solid var(--fv-line2); }
.fv-sumlist li > span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem; }
.fv-sumlist li b { margin-inline-start: auto; font-size: 1.1rem; }
.fv-sumlist .is-ok > span { color: var(--fv-ok); background: var(--fv-ok-bg); }
.fv-sumlist .is-bad > span { color: var(--fv-bad); background: var(--fv-bad-bg); }
.fv-sumlist .is-info > span { color: var(--fv-info); background: var(--fv-info-bg); }
.fv-sumlist .is-warn > span { color: var(--fv-warn); background: var(--fv-warn-bg); }
.fv-sent { text-align: center; padding: 2.5rem 0 1rem; }
.fv-sent__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--fv-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.fv-sent__ic svg { width: 32px; height: 32px; }
/* lighter site chrome inside the field flow */
body.fv-task-flow header.header-block, body.fv-task-flow .top-header, body.fv-task-flow > .dialog-off-canvas-main-canvas footer { display: none; }
body.fv-task-flow .fv-main { min-height: 100vh; }
@media (max-width: 767.98px) { body.fv-field-mode .top-header, body.fv-field-mode footer { display: none; } }

/* =================================================================== GUIDED CAMERA */
body.fv-cam-open { overflow: hidden; }
.fv-cam { position: fixed; inset: 0; z-index: 1300; background: #0E0E0C; color: #fff; display: flex; flex-direction: column; font-family: inherit; }
.fv-cam__top { display: flex; align-items: center; gap: .6rem; padding: calc(.6rem + env(safe-area-inset-top)) 12px .6rem; background: linear-gradient(#000c, #0000); position: absolute; inset-inline: 0; top: 0; z-index: 3; }
.fv-cam__x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.5rem; cursor: pointer; flex: 0 0 auto; }
.fv-cam__title { display: flex; flex-direction: column; min-width: 0; }
.fv-cam__title strong { font-size: .98rem; }
.fv-cam__title span { font-size: .84rem; opacity: .85; }
.fv-cam__stage { position: relative; flex: 1; overflow: hidden; background: #000; }
.fv-cam__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fv-cam__guide { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(84%, calc(62vh * var(--ar, 1))); aspect-ratio: var(--ar, 1); max-height: 62%; z-index: 2; pointer-events: none; }
.fv-cam__guide i { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; opacity: .95; }
.fv-cam__guide i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.fv-cam__guide i:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.fv-cam__guide i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.fv-cam__guide i:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }
.fv-cam__guide.is-ready i { border-color: #7CD39B; }
.fv-cam__guide.is-warning i { border-color: #F1C76B; }
.fv-cam__guide.is-blocked i { border-color: #F08A73; border-style: dashed; }
.fv-cam__guidetxt { position: absolute; bottom: -2.1rem; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .8rem; background: rgba(0, 0, 0, .55); padding: .2rem .6rem; border-radius: 100px; }
.fv-cam__wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: #1A1A17; z-index: 2; font-size: .9rem; }
.fv-cam__wait[hidden] { display: none; }
.fv-cam__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; transition: opacity .15s; }
.fv-cam__flash.is-on { opacity: .85; }
.fv-cam__panel { position: absolute; left: 50%; transform: translateX(-50%); bottom: 116px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .65rem 1rem .6rem; text-align: center; background: rgba(10, 10, 9, .55); border-radius: 16px; width: max-content; max-width: calc(100% - 32px); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fv-cam__panel .fv-cam__status { background: transparent; padding: 0; }
.fv-cam__status { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 100px; font-weight: 700; font-size: .84rem; background: rgba(0, 0, 0, .6); }
.fv-cam__ic { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem; }
.fv-cam__status.is-blocked .fv-cam__ic { background: #C0563F; }
.fv-cam__status.is-warning .fv-cam__ic { background: #D9A23B; color: #1B1408; }
.fv-cam__msg.is-nudge { animation: fv-nudge .35s ease-in-out 2; }
@keyframes fv-nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .fv-cam__msg.is-nudge { animation: none; } }
.fv-cam__status.is-ready .fv-cam__ic { background: #2E8A57; }
.fv-cam__msg { margin: 0; font-size: 1.02rem; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.fv-cam__note { margin: 0; font-size: .72rem; opacity: .8; }
.fv-cam__bar { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(#0000, #000d); }
.fv-cam__shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fv-cam__shutter span { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: block; }
.fv-cam__shutter:disabled, .fv-cam__shutter.is-locked { border-color: rgba(255, 255, 255, .35); cursor: not-allowed; }
.fv-cam__shutter:disabled span, .fv-cam__shutter.is-locked span { background: rgba(255, 255, 255, .18); position: relative; }
.fv-cam__shutter:disabled span::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 4px; background: rgba(255, 255, 255, .75); border-radius: 2px; transform: translate(-50%, -50%) rotate(-45deg); }
.fv-cam__shutter:active span { transform: scale(.92); }
.fv-cam__side { justify-self: start; display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; background: none; border: 0; color: #fff; font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; min-width: 64px; min-height: 48px; }
.fv-cam__side span { font-size: 1.2rem; }
.fv-cam__side--empty { visibility: hidden; }
.fv-cam__err { position: absolute; inset: 0; z-index: 5; background: #F7F6F2; color: var(--fv-ink); display: flex; align-items: center; justify-content: center; padding: 24px; }
.fv-cam__err[hidden] { display: none; }
.fv-cam__err > div { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: .6rem; text-align: center; }
.fv-cam__err strong { font-size: 1.2rem; }
.fv-cam__erric { width: 52px; height: 52px; margin: 0 auto .2rem; border-radius: 50%; background: #F6E3DD; color: #A6412C; font-weight: 800; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; }
.fv-cam__errhint { font-size: .86rem; }
.fv-camfail, .fv-unavail { border: 1px solid #E8C9BE; background: #FBF1EE; border-radius: var(--fv-r-sm); padding: .75rem .9rem; margin-top: .8rem; }
.fv-camfail strong, .fv-unavail strong { color: #A6412C; display: block; }
.fv-camfail p, .fv-unavail p { margin: .25rem 0; font-size: .88rem; }
.fv-camfail .fv-linkbtn { margin-top: .2rem; min-height: 44px; text-align: start; }
.fv-cam__err p { margin: 0 0 .6rem; color: var(--fv-muted); }
.fv-cam[data-phase="error"] .fv-cam__panel, .fv-cam[data-phase="error"] .fv-cam__bar, .fv-cam[data-phase="error"] .fv-cam__guide { display: none; }

/* =================================================================== REVIEWER REPORT — «تقرير التحقق الميداني» */
body.fv-report-mode .fv-main { background: #EFEDE8; }
.fv-reportbar { background: #fff; border-bottom: 1px solid var(--fv-line); padding: .55rem 0; position: sticky; top: 0; z-index: 20; }
.fv-reportbar .container { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fv-reportbar__l, .fv-reportbar__r { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fv-report { font-family: var(--fv-report-font); max-width: 1000px; margin: 1.5rem auto 3rem; background: #fff; border-radius: 4px; padding: 2.6rem 3rem 2rem; box-shadow: 0 10px 40px rgba(27, 27, 24, .08); font-size: .9rem; line-height: 1.7; }
.fv-report h1, .fv-report h2, .fv-report h3, .fv-report h4 { font-family: var(--fv-report-font); }
.fv-rp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding-bottom: 1.1rem; position: relative; }
.fv-rp-head::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(to left, var(--fv-green) 0 72%, var(--fv-gold) 72% 100%); }
.fv-rp-logo { width: 58px; height: 58px; }
.fv-rp-head__id { display: flex; flex-direction: column; }
.fv-rp-kicker { font-size: .74rem; color: var(--fv-gold); font-weight: 700; letter-spacing: .01em; }
.fv-rp-head h1 { font-size: 1.75rem; font-weight: 700; margin: .1rem 0 .1rem; line-height: 1.3; }
.fv-rp-sub { font-size: .9rem; color: var(--fv-muted); }
.fv-rp-status { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .6rem 1rem; border-radius: 8px; border: 1px solid var(--fv-line); min-width: 170px; text-align: center; }
.fv-rp-status span { font-size: .7rem; color: var(--fv-muted); }
.fv-rp-status strong { font-size: .95rem; }
.fv-rp-status--gold { background: var(--fv-gold-l); border-color: #EEDCB9; color: var(--fv-gold-d); }
.fv-rp-status--ok { background: var(--fv-ok-bg); border-color: #D3E6DA; color: var(--fv-ok); }
.fv-rp-status--warn { background: var(--fv-warn-bg); border-color: #EBD9B4; color: var(--fv-warn); }
.fv-rp-status--info, .fv-rp-status--muted { background: #F6F5F2; color: var(--fv-info); }
.fv-rp-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--fv-line); border: 1px solid var(--fv-line); border-radius: 6px; overflow: hidden; margin: 1.2rem 0; }
.fv-rp-meta div { background: #fff; padding: .5rem .7rem; }
.fv-rp-meta dt { font-size: .68rem; color: var(--fv-muted); font-weight: 500; }
.fv-rp-meta dd { margin: 0; font-size: .84rem; font-weight: 600; }
.fv-rp-hero { margin: 0 0 1rem; }
.fv-rp-hero img { width: 100%; aspect-ratio: 25 / 12; object-fit: cover; border-radius: 4px; display: block; }
.fv-rp-hero figcaption { font-size: .72rem; color: var(--fv-muted); margin-top: .35rem; }
.fv-rp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--fv-line); border: 1px solid var(--fv-line); border-radius: 6px; overflow: hidden; }
.fv-rp-kpi { background: #fff; padding: .65rem .7rem; display: flex; flex-direction: column; }
.fv-rp-kpi b { font-size: 1.55rem; line-height: 1.15; color: var(--fv-green); font-weight: 700; }
.fv-rp-kpi span { font-size: .72rem; color: var(--fv-muted); }
.fv-rp-kpi.is-warn b { color: var(--fv-warn); }
.fv-rp-fine { font-size: .72rem; color: var(--fv-muted); margin: .5rem 0 0; }
.fv-rp-final { display: flex; align-items: center; gap: 1.5rem; margin-top: 1rem; padding: .85rem 1.1rem; border-radius: 8px; flex-wrap: wrap; }
.fv-rp-final.is-ok { background: var(--fv-ok-bg); border: 1px solid #D3E6DA; }
.fv-rp-final.is-bad { background: var(--fv-bad-bg); border: 1px solid #E8CFC7; }
.fv-rp-final > div { display: flex; flex-direction: column; }
.fv-rp-final > div span { font-size: .7rem; color: var(--fv-muted); }
.fv-rp-final strong { font-size: 1.05rem; }
.fv-rp-final.is-ok > div:nth-child(2) strong { color: var(--fv-ok); font-size: 1.25rem; }
.fv-rp-final.is-bad > div:nth-child(2) strong { color: var(--fv-bad); font-size: 1.25rem; }
.fv-rp-final__ic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.2rem; background: var(--fv-green); }
.fv-rp-final.is-bad .fv-rp-final__ic { background: var(--fv-bad); }
.fv-rp-sec { margin-top: 2.1rem; }
.fv-rp-sec > h2 { font-size: 1.12rem; font-weight: 700; color: var(--fv-green); margin: 0 0 .9rem; padding-bottom: .45rem; border-bottom: 1px solid var(--fv-line); }
.fv-rp-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem; align-items: start; }
.fv-rp-pair figure { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.fv-rp-pair figcaption { font-size: .78rem; font-weight: 700; color: var(--fv-muted); }
.fv-rp-pair--lg { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.fv-rp-pair--lg figcaption { font-size: 1rem; color: var(--fv-ink); }
.fv-rp-vs { align-self: center; font-size: .78rem; font-weight: 800; color: var(--fv-gold-d); background: var(--fv-gold-l); border-radius: 100px; padding: .3rem .6rem; }
.fv-rp-sums { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.fv-rp-sums h3 { font-size: .86rem; font-weight: 700; margin: 0 0 .2rem; color: var(--fv-gold-d); }
.fv-rp-sums p { margin: 0; font-size: .95rem; }
.fv-rp-prio h2 { color: var(--fv-warn) !important; }
.fv-rp-prlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.fv-rp-prlist a { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border: 1px solid #EFE2C6; background: #FFFCF6; border-radius: 8px; color: var(--fv-ink); text-decoration: none; }
.fv-rp-prlist a:hover { border-color: var(--fv-gold); }
.fv-rp-prlist strong { display: block; font-size: .95rem; }
.fv-rp-reasons { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.fv-rp-no { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .74rem; background: var(--fv-green); color: #fff; direction: ltr; font-family: inherit; }
.fv-rp-tablewrap { overflow-x: auto; position: relative; }
.fv-rtable { width: 100%; border-collapse: collapse; font-size: .84rem; }
.fv-rtable th, .fv-rtable td { border-bottom: 1px solid var(--fv-line); padding: .5rem .55rem; text-align: start; vertical-align: top; background: #fff; }
.fv-rtable th { font-weight: 700; color: var(--fv-muted); white-space: nowrap; font-size: .74rem; border-bottom: 1.5px solid var(--fv-ink); }
.fv-rtable__note { font-size: .7rem; color: var(--fv-muted); margin-top: .1rem; }
.fv-rp-jump { color: var(--fv-ink); font-weight: 700; text-decoration: none; }
.fv-rp-jump:hover { color: var(--fv-green); text-decoration: underline; }
.fv-rtable--links th { width: 34%; font-weight: 600; white-space: normal; border-bottom: 1px solid var(--fv-line); }
.fv-rtable--links td { font-size: .72rem; direction: ltr; text-align: left; word-break: break-all; }
.fv-rp-pt { padding: 1.3rem 0 1.4rem; border-bottom: 1px solid var(--fv-line); scroll-margin-top: 70px; }
.fv-rp-pt:last-child { border-bottom: 0; }
.fv-rp-pt__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; flex-wrap: wrap; }
.fv-rp-pt__head h3 { font-size: 1.08rem; font-weight: 700; margin: 0; }
.fv-rp-ev { margin-inline-start: auto; display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--fv-muted); text-decoration: none; font-weight: 600; }
.fv-rp-ev:hover { color: var(--fv-green); }
.fv-rp-more { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.fv-rp-more figure { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: var(--fv-muted); }
.fv-rp-more .fv-photo--thumb { width: 96px; aspect-ratio: 4 / 3; }
.fv-rp-warns { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .2rem; }
.fv-rp-warns li { display: flex; gap: .4rem; font-size: .8rem; color: var(--fv-warn); }
.fv-rp-att { margin-top: .8rem; }
.fv-rp-att h4 { font-size: .82rem; font-weight: 700; margin: 0 0 .45rem; color: var(--fv-muted); }
.fv-rp-check { margin-top: .9rem; padding: .75rem .9rem; background: #FBFAF8; border-radius: 8px; scroll-margin-top: 70px; transition: box-shadow .4s; }
.fv-rp-check.is-flash, .fv-rp-pt.is-flash { box-shadow: 0 0 0 3px var(--fv-gold); }
.fv-rp-check__head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-bottom: .35rem; }
.fv-rp-check__head strong { font-size: .98rem; }
.fv-rp-facts { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; margin: 0; }
.fv-rp-facts dt { font-size: .68rem; font-weight: 700; color: var(--fv-gold-d); }
.fv-rp-facts dd { margin: .15rem 0 0; font-size: .84rem; line-height: 1.6; }
.fv-rp-insp .fv-rp-meta { margin-top: 0; }
.fv-rp-meta--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fv-rp-note { background: #FBFAF8; border-inline-start: 3px solid var(--fv-gold); padding: .55rem .8rem; margin: .7rem 0 0; }
.fv-rp-stmt { display: flex; align-items: center; gap: .4rem; color: var(--fv-green); font-weight: 700; margin: .8rem 0 0; }
.fv-rp-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.fv-rp-steps li { display: flex; flex-direction: column; font-size: .8rem; position: relative; padding-inline-start: 1rem; }
.fv-rp-steps li::before { content: ''; position: absolute; inset-inline-start: 0; top: .55rem; width: 7px; height: 7px; border-radius: 50%; background: var(--fv-gold); }
.fv-rp-steps span { font-size: .72rem; color: var(--fv-muted); }
.fv-rp-finalsec h3 { font-size: .9rem; margin: 1.1rem 0 .4rem; }
.fv-rp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin: 2rem 0 .5rem; }
.fv-rp-sign div { border-top: 1px solid var(--fv-ink); padding-top: .5rem; display: flex; flex-direction: column; font-size: .76rem; color: var(--fv-muted); }
.fv-rp-sign strong { color: var(--fv-ink); font-size: .95rem; }
.fv-rp-sign i { font-style: normal; margin-top: 2.6rem; border-bottom: 1px dashed #BDB8AD; padding-bottom: .2rem; color: var(--fv-soft); }
.fv-rp-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--fv-line); margin-top: 2rem; padding-top: .75rem; color: var(--fv-muted); font-size: .7rem; }

/* =================================================================== responsive */
@media (max-width: 1199.98px) {
  .fv-review { grid-template-columns: 250px minmax(0, 1fr); }
  .fv-editor { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 991.98px) {
  .fv-grid2, .fv-grid-aside, .fv-editor, .fv-cmp__grid, .fv-facts { grid-template-columns: minmax(0, 1fr); }
  .fv-review { grid-template-columns: minmax(0, 1fr); }
  .fv-ulist { position: static; max-height: none; flex-direction: row; overflow-x: auto; }
  .fv-ulist__item { min-width: 220px; }
  .fv-editor__panel { position: static; max-height: none; }
  .fv-outs { grid-template-columns: minmax(0, 1fr); }
  .fv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-report { padding: 2rem 1.6rem; }
  .fv-rp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fv-rp-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .fv-page { padding-top: 20px; }
  .fv-head h1 { font-size: 1.35rem; }
  .fv-entry__grid, .fv-tpls { grid-template-columns: minmax(0, 1fr); }
  .fv-stepper { flex-direction: column; }
  .fv-summary { grid-template-columns: minmax(0, 1fr); }
  .fv-vs { grid-template-columns: minmax(0, 1fr); }
  .fv-vs figure + figure { border-inline-start: 0; border-top: 1px solid var(--fv-line); }
  .fv-cards { grid-template-columns: minmax(0, 1fr); }
  .fv-inbox { grid-template-columns: minmax(0, 1fr); }
  .fv-inbox__img { aspect-ratio: 16 / 9; }
  .fv-inbox__meta { grid-template-columns: repeat(2, 1fr); }
  .fv-final__counts { margin-inline-start: 0; }
  .fv-dl__row { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .fv-subnav__brand { display: none; }
  .fv-page .container > .fv-field { margin-inline: -12px; }
  #fv-demo { bottom: 12px; left: 12px; }
  body.fv-task-flow #fv-demo { display: none; } /* keeps the guided flow clean; demo tools stay on مهامي */
  .fv-toasts { bottom: auto; top: 12px; }
  .fv-report { padding: 1.4rem 1.1rem; margin-top: .75rem; }
  .fv-rp-head { grid-template-columns: auto minmax(0, 1fr); }
  .fv-rp-status { grid-column: 1 / -1; }
  .fv-rp-head h1 { font-size: 1.35rem; }
  .fv-rp-meta, .fv-rp-meta--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-rp-pair--lg { grid-template-columns: minmax(0, 1fr); }
  .fv-rp-vs { justify-self: center; }
  .fv-rp-sums, .fv-rp-facts { grid-template-columns: minmax(0, 1fr); }
  .fv-crow { grid-template-columns: auto 26px minmax(0, 1fr); }
  .fv-crow__crit { grid-column: 3; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .fv-hs.is-next, .fv-spin, .fv-board--field .fv-hs.is-next { animation: none !important; } }

/* =================================================================== PRINT — A4 */
@media print {
  @page { size: A4; margin: 14mm 13mm 16mm; @bottom-center { content: "صفحة " counter(page) " من " counter(pages); font-size: 8pt; color: #777; } }
  .no-print, .fv-switch, header.header-block, .top-header, footer:not(.fv-rp-foot), .fv-subnav, #fv-demo, .fv-toasts, .fv-reportbar, .fv-rvact, .fv-rp-ev, #fv-modal { display: none !important; }
  body, .fv-main, body.fv-report-mode .fv-main { background: #fff !important; }
  .fv-report { box-shadow: none; margin: 0; padding: 0; max-width: none; font-size: 9.5pt; border-radius: 0; }
  .fv-rp-cover { break-after: page; }
  .fv-rp-hero img { aspect-ratio: 25 / 13; }
  .fv-rp-sec { margin-top: 1.2rem; }
  .fv-rp-sec > h2 { break-after: avoid; }
  .fv-rp-pt, .fv-rp-pair, .fv-rp-check, .fv-rp-exec .fv-rp-pair, .fv-rtable tr, .fv-rp-sign, .fv-rp-final, .fv-rp-prlist li { break-inside: avoid; }
  .fv-rp-finalsec { break-before: page; }
  .fv-rp-facts { grid-template-columns: 1.7fr .8fr 1fr 1fr; }
  .fv-rp-prlist a, .fv-rp-check { background: #fff !important; border: 1px solid #ddd; }
  .fv-photo img, .fv-refcrop, .fv-mark, .fv-chip, .fv-rp-no, .fv-rp-final, .fv-rp-status, .fv-rp-head::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fv-rp-tablewrap { overflow: visible; }
  a { color: inherit; text-decoration: none; }
}
@media screen and (max-width: 767.98px) { .fv-rtable--ov { min-width: 560px; } }

/* =================================================================== reviewer: approved reference per task (upload) */
.fv-refcard { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: .85rem; margin: 0 0 1rem; }
.fv-refcard__thumb { background: #F3F1EC; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; height: 118px; }
.fv-refcard__thumb img { max-width: 100%; max-height: 100%; display: block; }
.fv-refcard__body { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.fv-refcard__acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .15rem; }
.fv-refcard .fv-spin--sm { display: inline-block; vertical-align: middle; border-color: rgba(20, 87, 58, .2); border-top-color: var(--fv-green); }
.fv-upload { position: relative; overflow: hidden; cursor: pointer; }
.fv-upload__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.fv-upload:focus-within { outline: 3px solid rgba(185, 138, 62, .5); outline-offset: 2px; }
.fv-tag--ref { color: var(--fv-green); background: var(--fv-green-l); }
.fv-count--muted { background: #E9E6E0; color: var(--fv-ink); }
.fv-alert--sm { margin: .2rem 0; padding: .5rem .75rem; font-size: .84rem; }
.fv-editor__bar--top { margin: 0 0 .6rem; }
.fv-refmini { display: inline-flex; align-items: center; gap: .5rem; }
.fv-refmini img { width: 64px; height: 42px; object-fit: cover; border-radius: 6px; background: #F3F1EC; }
.fv-ltr { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 767.98px) { .fv-refcard { grid-template-columns: minmax(0, 1fr); } .fv-refcard__thumb { height: 150px; } }

/* =================================================================== inspector: responsive (phone → tablet → desktop) */
.fv-tcard__id { font-size: .72rem; color: var(--fv-muted); }
.fv-field--split > .fv-field__body { flex: 0 0 auto; padding-bottom: .25rem; }
.fv-field__side { padding: 0 16px 1.5rem; flex: 1; }
@media (min-width: 768px) and (max-width: 1023.98px) { body.fv-task-flow #fv-demo { display: none; } }
@media (min-width: 768px) {
  .fv-field { max-width: 760px; }
  .fv-tcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
  .fv-tcards .fv-tcard { margin: 0; }
  .fv-page .container > .fv-field { margin-inline: auto; }
}
@media (min-width: 1024px) {
  .fv-field { max-width: none; }
  .fv-field > .fv-fhead .fv-fhead__in, .fv-field > .fv-fhead .fv-ftabs { padding-inline: 28px; }
  .fv-field > .fv-fhead .fv-ftabs { justify-content: flex-start; }
  .fv-field > .fv-fhead .fv-ftabs a { flex: 0 0 auto; padding-inline: 1.25rem; }
  .fv-field > .fv-fhead .fv-fsteps { max-width: 760px; padding-inline: 28px; }
  .fv-field__body { padding: 1.5rem 28px 2rem; }
  .fv-tcards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.1rem; }
  /* two columns: main (reference / photo) on the reading side, a white side column with points, instructions, status and the action */
  .fv-field--split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto auto auto 1fr; grid-template-areas: "head head" "body side" "body foot" "body rest";
    background: linear-gradient(to left, var(--fv-bg) calc(100% - 401px), var(--fv-line) calc(100% - 401px), var(--fv-line) calc(100% - 400px), #fff calc(100% - 400px)); min-height: calc(100vh - 60px); }
  .fv-field--split > .fv-fhead { grid-area: head; }
  .fv-field--split > .fv-field__body { grid-area: body; padding: 1.5rem 32px 2.5rem; }
  .fv-field--split > .fv-field__side { grid-area: side; padding: 1.5rem 24px .5rem; }
  .fv-field--split > .fv-field__foot { grid-area: foot; position: static; background: transparent; border-top: 0; box-shadow: none; padding: .5rem 24px 1.5rem; }
  .fv-field--split .fv-board--field { --fv-bmax: calc(100vh - 230px); }
  .fv-field--split .fv-pt__ref, .fv-field--split .fv-photo--hero { max-width: calc((100vh - 250px) * 4 / 3); margin-inline: auto; }
  .fv-field--split .fv-pair { max-width: calc((100vh - 260px) * 8 / 3); margin-inline: auto; gap: 1rem; }
  .fv-field--split .fv-pt__ins { margin-top: 0; }
  .fv-field--split .fv-gate { margin-top: 0; }
  .fv-field--split .fv-qcard:first-child { border-top: 0; padding-top: 0; }
  .fv-field--split .fv-progline { margin-top: 0; }
  .fv-field:not(.fv-field--split) > .fv-field__body > .fv-ftitle, .fv-field:not(.fv-field--split) > .fv-field__body > .fv-checking,
  .fv-field:not(.fv-field--split) > .fv-field__body > .fv-anlist, .fv-field:not(.fv-field--split) > .fv-field__body > .fv-alert,
  .fv-field:not(.fv-field--split) > .fv-field__body > .fv-sent { max-width: 760px; margin-inline: auto; }
  .fv-field:not(.fv-field--split):not(:has(.fv-ftabs)) > .fv-field__foot { position: static; background: transparent; border-top: 0; box-shadow: none; max-width: 760px; width: 100%; margin-inline: auto; padding-inline: 28px; }
}
@media (min-width: 1600px) {
  .fv-field--split { grid-template-columns: minmax(0, 1fr) 460px;
    background: linear-gradient(to left, var(--fv-bg) calc(100% - 461px), var(--fv-line) calc(100% - 461px), var(--fv-line) calc(100% - 460px), #fff calc(100% - 460px)); }
}

/* ===================================================================================================================
   INSPECTOR-ONLY JOURNEY (fv.core / fv.setup / fv.verify / fv.result) — six stages, element markers, dynamic report
   =================================================================================================================== */
:root { --mk-entrances: #14573A; --mk-windows: #2F5D8A; --mk-architectural: #9A6B1F; --mk-materials: #7A4E2D; --mk-fence_gates: #2E6B66; --mk-services: #5B4B8A; --mk-other: #6B675F; }
.fv-ip .fv-h1 { font-size: 1.45rem; font-weight: 800; margin: 0 0 .35rem; line-height: 1.35; }
.fv-ltr-input { direction: ltr; text-align: right; }
.fv-ok-text { color: var(--fv-ok); font-weight: 700; } .fv-bad-text { color: var(--fv-bad); font-weight: 700; }
.fv-spin--dark { display: inline-block; vertical-align: middle; width: 18px; height: 18px; border-width: 2px; border-color: rgba(20, 87, 58, .2); border-top-color: var(--fv-green); }
.fv-linkbtn--bad { color: var(--fv-bad); }
.fv-range { width: 100%; accent-color: var(--fv-green); }
.fv-demo-note { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--fv-muted); background: var(--fv-gold-l); border-radius: 8px; padding: .5rem .7rem; margin: .8rem 0 0; }
.fv-emptybox--sm { padding: 1.5rem 1rem; }

/* home: مهامي */
.fv-home__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.fv-home__head h1 { font-size: 1.7rem; font-weight: 800; margin: 0; }
.fv-ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.fv-ccard { background: #fff; border: 1px solid var(--fv-line); border-radius: 16px; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--fv-shadow); }
.fv-ccard.is-demo { border-color: #E8D9B8; }
.fv-ccard__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.fv-ccard__top .fv-tag { margin-top: 0; }
.fv-ccard__no { font-size: .78rem; color: var(--fv-muted); margin-top: .3rem; }
.fv-ccard h2 { font-size: 1.12rem; font-weight: 800; margin: 0; }
.fv-ccard__sub { margin: 0; font-size: .86rem; color: var(--fv-muted); }
.fv-ccard__prog { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--fv-muted); font-weight: 600; margin: .4rem 0 .1rem; }
.fv-ccard__prog .fv-progress__bar { max-width: none; }
.fv-ccard__time { font-size: .76rem; color: var(--fv-soft); margin: 0 0 .5rem; }

/* case header + six stages */
.fv-chead { margin-bottom: 1.1rem; }
.fv-chead__top { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.fv-chead__txt { display: flex; flex-direction: column; min-width: 0; }
.fv-chead__no { font-size: .76rem; color: var(--fv-muted); }
.fv-chead__title { font-size: 1.05rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; counter-reset: none; }
.fv-stages li > a, .fv-stages li > span { display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem .6rem; border-radius: 10px; border: 1px solid var(--fv-line); background: #fff; text-decoration: none; color: var(--fv-muted); font-size: .8rem; font-weight: 700; line-height: 1.3; }
.fv-stages li > a:hover { border-color: var(--fv-green); color: var(--fv-green); }
.fv-stages__n { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: #EFEDE8; color: var(--fv-muted); font-size: .74rem; font-weight: 800; }
.fv-stages li.is-done > a, .fv-stages li.is-done > span { color: var(--fv-green); }
.fv-stages li.is-done .fv-stages__n { background: var(--fv-green-m); color: var(--fv-green); }
.fv-stages li.is-current > span { background: var(--fv-green); border-color: var(--fv-green); color: #fff; }
.fv-stages li.is-current .fv-stages__n { background: #fff; color: var(--fv-green); }
.fv-stages li.is-next > a { border-color: var(--fv-gold); }
.fv-panelbox { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.fv-panelbox--narrow { max-width: 760px; margin-inline: auto; }
.fv-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.fv-form__err { color: var(--fv-bad); background: var(--fv-bad-bg); border-radius: 8px; padding: .5rem .75rem; margin-top: .75rem; font-weight: 600; font-size: .88rem; }

/* references */
.fv-refitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .9rem; margin: .5rem 0 1rem; }
.fv-refitem { border: 1px solid var(--fv-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.fv-refitem__img { background: #F3F1EC; display: flex; align-items: center; justify-content: center; height: 210px; }
.fv-refitem__img img { max-width: 100%; max-height: 100%; display: block; }
.fv-refitem__body { padding: .7rem .85rem .8rem; display: flex; flex-direction: column; gap: .3rem; }
.fv-refitem__row { display: flex; align-items: center; gap: .5rem; }
.fv-refadd { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }

/* analysis + element editor workspace */
.fv-ip--wide .container { max-width: 1480px; }
.fv-ws__head { margin-bottom: .75rem; }
.fv-ws { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1rem; align-items: start; }
.fv-ws__main { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: .8rem; min-width: 0; }
.fv-ws__side { display: flex; flex-direction: column; gap: .8rem; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.fv-ws__list, .fv-eledit { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: .85rem .95rem; }
.fv-ws__count { font-size: .84rem; color: var(--fv-muted); margin-bottom: .4rem; }
.fv-ws__count strong { color: var(--fv-green); font-size: 1.05rem; }
.fv-ws__tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.fv-reftabs { display: flex; gap: .5rem; overflow-x: auto; margin-bottom: .7rem; }
.fv-reftab { display: flex; align-items: center; gap: .5rem; border: 1.5px solid var(--fv-line); background: #fff; border-radius: 10px; padding: .3rem .55rem .3rem .4rem; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 700; min-height: 48px; flex: 0 0 auto; }
.fv-reftab img { width: 54px; height: 36px; object-fit: cover; border-radius: 6px; }
.fv-reftab b { background: #EFEDE8; border-radius: 100px; padding: 0 .45rem; font-size: .74rem; }
.fv-reftab.is-active { border-color: var(--fv-green); background: var(--fv-green-l); color: var(--fv-green); }
.fv-anabar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-radius: 10px; padding: .6rem .8rem; margin-bottom: .7rem; background: var(--fv-info-bg); flex-wrap: wrap; }
.fv-anabar > div { display: flex; flex-direction: column; gap: .1rem; font-size: .86rem; flex: 1 1 260px; }
.fv-anabar > div span { color: var(--fv-muted); font-size: .8rem; }
.fv-anabar.is-run { background: var(--fv-gold-l); flex-wrap: nowrap; justify-content: flex-start; }
.fv-anabar.is-ok { background: var(--fv-ok-bg); }
.fv-anabar.is-ok strong { color: var(--fv-ok); }
.fv-anabar.is-bad { background: var(--fv-bad-bg); }
.fv-anabar.is-bad strong { color: var(--fv-bad); }

/* markers on the approved reference */
.fv-board--el { --fv-bmax: 70vh; }
.fv-mk { position: absolute; transform: translate(-50%, -50%); min-width: 32px; height: 26px; padding: 0 .4rem; border-radius: 100px; display: inline-flex; align-items: center; justify-content: center; gap: 0;
  font: 800 .66rem/1 system-ui, sans-serif; letter-spacing: .02em; direction: ltr; color: #fff; background: var(--mk-other); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); z-index: 2; white-space: nowrap; }
button.fv-mk { cursor: grab; touch-action: none; font-family: inherit; font-weight: 800; }
button.fv-mk::before { content: ''; position: absolute; inset: -10px; border-radius: 100px; }
.fv-mk--entrances { background: var(--mk-entrances); } .fv-mk--windows { background: var(--mk-windows); } .fv-mk--architectural { background: var(--mk-architectural); }
.fv-mk--materials { background: var(--mk-materials); } .fv-mk--fence_gates { background: var(--mk-fence_gates); } .fv-mk--services { background: var(--mk-services); } .fv-mk--other { background: var(--mk-other); }
.fv-mk.is-current { height: 32px; min-width: 40px; font-size: .74rem; box-shadow: 0 0 0 4px rgba(185, 138, 62, .55), 0 3px 10px rgba(0, 0, 0, .35); z-index: 4; }
.fv-mk.is-dim { opacity: .55; height: 20px; min-width: 26px; font-size: .58rem; box-shadow: none; }
.fv-mk.is-done { opacity: .5; }
.fv-mk.is-drag { cursor: grabbing; transform: translate(-50%, -50%) scale(1.3); z-index: 6; box-shadow: 0 0 0 6px rgba(185, 138, 62, .35), 0 8px 18px rgba(0, 0, 0, .4); }
.fv-mk__name { position: absolute; top: calc(100% + 6px); inset-inline-start: 50%; transform: translateX(50%); background: rgba(22, 22, 22, .86); color: #fff; font: 700 .72rem/1.3 inherit; font-family: inherit; padding: .2rem .5rem; border-radius: 6px; white-space: nowrap; letter-spacing: 0; }
.fv-tbox { position: absolute; border: 2.5px solid var(--fv-gold); border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .28); pointer-events: none; z-index: 1; }
.fv-elgroup h3 { font-size: .84rem; font-weight: 800; margin: .7rem 0 .35rem; display: flex; gap: .4rem; align-items: center; }
.fv-elgroup h3 span { background: #EFEDE8; border-radius: 100px; padding: 0 .45rem; font-size: .72rem; color: var(--fv-muted); }
.fv-elgroup ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.fv-elrow { width: 100%; display: flex; align-items: center; gap: .55rem; text-align: start; padding: .45rem .55rem; border: 1px solid var(--fv-line); border-radius: 9px; background: #fff; cursor: pointer; font: inherit; min-height: 44px; }
.fv-elrow.is-current { border-color: var(--fv-gold); background: var(--fv-gold-l); }
.fv-elrow__mk { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 .35rem; border-radius: 100px; color: #fff; font: 800 .64rem/1 system-ui, sans-serif; direction: ltr; flex: 0 0 auto; vertical-align: middle; margin-inline-end: .35rem; }
.fv-elrow__name { flex: 1; font-size: .86rem; font-weight: 700; }
.fv-elrow__src { font-size: .68rem; color: var(--fv-muted); background: #F2F0EB; border-radius: 100px; padding: .05rem .45rem; }
.fv-eledit { display: flex; flex-direction: column; gap: .3rem; border-color: var(--fv-gold); }
.fv-eledit__head { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.fv-eledit__head strong { flex: 1; }
.fv-eledit .fv-fld { margin: 0; }
.fv-eledit .fv-label { margin-top: .35rem; }
.fv-eledit__acts { display: flex; justify-content: space-between; margin-top: .4rem; }
.fv-focus { width: 100%; aspect-ratio: 4 / 3; background-repeat: no-repeat; background-color: #E9E6E0; border-radius: var(--fv-r-sm); }
.fv-focus--hero { border-radius: 12px; }
.fv-focus--sm { max-height: 180px; aspect-ratio: 4 / 3; width: auto; }
.fv-focus--thumb { width: 72px; height: 54px; aspect-ratio: auto; border-radius: 6px; flex: 0 0 auto; }
.fv-actions--sticky { position: sticky; bottom: 0; background: rgba(250, 249, 246, .96); padding: .75rem 0; z-index: 10; border-top: 1px solid var(--fv-line); margin-top: 1rem; }

/* field journey */
.fv-eltop { margin-bottom: .6rem; }
.fv-eltop__cat { display: inline-flex; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--fv-gold-d); }
.fv-eltop__cat b { color: var(--fv-ink); }
.fv-eltop .fv-ftitle { display: flex; align-items: center; margin: .2rem 0 0; }
.fv-look { display: grid; gap: .6rem; }
.fv-look figure { margin: 0; }
.fv-look figcaption { font-size: .74rem; color: var(--fv-muted); margin-top: .3rem; }
.fv-look__full .fv-board { --fv-bmax: 46vh; }
.fv-catprog { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.fv-catprog li { display: flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; color: var(--fv-muted); background: #fff; border: 1px solid var(--fv-line); border-radius: 100px; padding: .2rem .6rem; }
.fv-catprog li.is-done { color: var(--fv-green); background: var(--fv-ok-bg); border-color: var(--fv-green-m); }
.fv-catprog li.is-current { border-color: var(--fv-gold); color: var(--fv-ink); }
.fv-fhead__sum { flex: 0 0 auto; }
.fv-ask h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .6rem; }
.fv-ask .fv-answers { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: .5rem; }
.fv-pair--lg { gap: .75rem; }

/* summary */
.fv-sumlist--row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.fv-sumlist--row li { border-bottom: 0; padding: .3rem 0; }
.fv-sumlist--row li b { margin-inline-start: .4rem; }
.fv-sumgroup { background: #fff; border: 1px solid var(--fv-line); border-radius: var(--fv-r); padding: .8rem 1rem; margin-bottom: .8rem; }
.fv-sumgroup h2 { font-size: .98rem; font-weight: 800; margin: 0 0 .5rem; display: flex; gap: .5rem; align-items: center; }
.fv-sumgroup h2 span { font-size: .76rem; color: var(--fv-muted); background: #EFEDE8; border-radius: 100px; padding: .05rem .5rem; }
.fv-sumgroup ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.fv-sumrow { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--fv-line2); }
.fv-sumrow:first-child { border-top: 0; }
.fv-sumrow__img .fv-photo--thumb { width: 72px; height: 54px; }
.fv-sumrow__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.fv-sumrow__txt strong { font-size: .9rem; }
.fv-sumrow__chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.fv-sumrow__acts { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }

/* report (dynamic) */
.fv-ip--report .fv-reportbar { position: static; background: none; border: 0; padding: 0 0 1rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fv-r { background: #fff; border: 1px solid var(--fv-line); border-radius: 14px; padding: 2rem 2.2rem; font-family: var(--fv-report-font); }
.fv-r h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.fv-r-count { font-size: .78rem; background: #EFEDE8; border-radius: 100px; padding: .05rem .55rem; color: var(--fv-muted); }
.fv-r-sec { padding-top: 1.4rem; margin-top: 1.4rem; border-top: 1px solid var(--fv-line); }
.fv-r-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.fv-r-eyebrow { font-size: .8rem; font-weight: 700; color: var(--fv-gold-d); }
.fv-r-cover h1 { font-size: 1.8rem; font-weight: 800; margin: .2rem 0 .3rem; }
.fv-r-ids { font-size: .8rem; color: var(--fv-muted); margin: 0 0 .8rem; }
.fv-r-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; margin: 0 0 1rem; }
.fv-r-meta dt { font-size: .74rem; color: var(--fv-muted); font-weight: 700; }
.fv-r-meta dd { margin: 0; font-weight: 700; font-size: .92rem; }
.fv-r-cover__img { margin: 0; }
.fv-r-cover__img img { width: 100%; border-radius: 10px; display: block; }
.fv-r-cover__img figcaption { font-size: .74rem; color: var(--fv-muted); margin-top: .3rem; }
.fv-r-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin: .5rem 0 .8rem; }
.fv-r-kpi { border: 1px solid var(--fv-line); border-radius: 10px; padding: .7rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.fv-r-kpi b { font-size: 1.6rem; line-height: 1; }
.fv-r-kpi span { font-size: .76rem; color: var(--fv-muted); font-weight: 600; }
.fv-r-kpi.is-ok b { color: var(--fv-ok); } .fv-r-kpi.is-bad b { color: var(--fv-bad); } .fv-r-kpi.is-warn b { color: var(--fv-warn); } .fv-r-kpi.is-gold b { color: var(--fv-gold-d); }
.fv-r-reco { background: var(--fv-gold-l); border-radius: 10px; padding: .7rem .9rem; margin: 0 0 .5rem; font-weight: 700; font-size: .92rem; }
.fv-r-reco__tag { display: inline-block; font-size: .7rem; font-weight: 800; color: var(--fv-gold-d); border: 1px solid #E3CDA0; border-radius: 100px; padding: .05rem .5rem; margin-inline-end: .5rem; vertical-align: middle; }
.fv-r-find { border: 1px solid var(--fv-line); border-radius: 12px; padding: .9rem 1rem 1rem; margin-top: .8rem; break-inside: avoid; }
.fv-r-find.is-big { border-color: #E8D3C9; }
.fv-r-find header { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.fv-r-find h3 { font-size: 1rem; font-weight: 800; margin: 0; }
.fv-r-find:not(.is-big) .fv-pair { max-width: 520px; }
.fv-r-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .6rem; }
.fv-r-fact { background: #FBFAF8; border-radius: 10px; padding: .65rem .8rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.fv-r-fact p { margin: 0; font-size: .88rem; }
.fv-r-fact__k { font-size: .74rem; font-weight: 800; color: var(--fv-muted); }
.fv-r-diffs { margin: 0; padding-inline-start: 1.1rem; font-size: .86rem; }
.fv-r-cat { font-size: .92rem; font-weight: 800; margin: 1rem 0 .4rem; }
.fv-r-cat span { font-size: .74rem; color: var(--fv-muted); }
.fv-r-table td, .fv-r-table th { font-size: .82rem; }
.fv-r-okgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .5rem; }
.fv-r-ok { display: flex; gap: .55rem; align-items: center; border: 1px solid var(--fv-line); border-radius: 10px; padding: .45rem .55rem; break-inside: avoid; }
.fv-r-ok__imgs { display: flex; gap: .3rem; flex: 0 0 auto; }
.fv-r-ok__imgs .fv-photo--thumb, .fv-r-ok__imgs .fv-focus--thumb { width: 58px; height: 44px; }
.fv-r-ok strong { font-size: .84rem; }
.fv-r-ok__chips { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .25rem; }
.fv-decide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .5rem 0 .3rem; }
.fv-decide__opt { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 52px; border: 1.5px solid var(--fv-line); border-radius: 12px; font-weight: 800; cursor: pointer; background: #fff; }
.fv-decide__opt input { accent-color: var(--fv-green); width: 18px; height: 18px; }
.fv-decide__opt--ok:has(input:checked) { border-color: var(--fv-ok); background: var(--fv-ok-bg); color: var(--fv-ok); }
.fv-decide__opt--bad:has(input:checked) { border-color: var(--fv-bad); background: var(--fv-bad-bg); color: var(--fv-bad); }
.fv-decide__opt--warn:has(input:checked) { border-color: var(--fv-warn); background: var(--fv-warn-bg); color: var(--fv-warn); }
.fv-r-decision .fv-btn--lg { margin-top: .8rem; }
.fv-r-final { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .88rem; color: var(--fv-muted); }
.fv-r-final p { flex-basis: 100%; margin: .2rem 0 0; color: var(--fv-ink); }
.fv-r-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--fv-line); margin-top: 2rem; padding-top: .75rem; color: var(--fv-muted); font-size: .72rem; }

/* responsive */
@media (max-width: 1199.98px) { .fv-ws { grid-template-columns: minmax(0, 1fr) 330px; } .fv-stages__t { font-size: .74rem; } }
@media (max-width: 1023.98px) {
  .fv-ws { grid-template-columns: minmax(0, 1fr); }
  .fv-ws__side { position: static; max-height: none; }
  .fv-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fv-r-cover { grid-template-columns: minmax(0, 1fr); }
  .fv-r-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .fv-stages { display: flex; overflow-x: auto; scrollbar-width: none; }
  .fv-stages li { flex: 0 0 auto; }
  .fv-stages li:not(.is-current) .fv-stages__t { display: none; }
  .fv-form__grid { grid-template-columns: minmax(0, 1fr); }
  .fv-home__head .fv-btn { width: 100%; }
  .fv-panelbox { padding: 1rem; }
  .fv-refitems { grid-template-columns: minmax(0, 1fr); }
  .fv-r { padding: 1.2rem 1rem; }
  .fv-r-facts, .fv-r-meta { grid-template-columns: minmax(0, 1fr); }
  .fv-r-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-decide { grid-template-columns: minmax(0, 1fr); }
  .fv-sumrow { flex-wrap: wrap; }
  .fv-sumrow__acts { width: 100%; justify-content: flex-start; }
  .fv-ask .fv-answers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fv-answer { font-size: .86rem; padding: 0 .3rem; }
  .fv-actions--sticky { flex-wrap: nowrap; gap: .5rem; padding: .6rem 0; }
  .fv-actions--sticky .fv-btn { flex: 1 1 auto; white-space: normal; line-height: 1.3; min-height: 48px; padding-inline: .7rem; }
  .fv-actions--sticky .fv-btn--ghost { flex: 0 0 auto; }
  .fv-actions--sticky .fv-btn--lg { font-size: .92rem; }
  body:has(.fv-actions--sticky) #fv-demo { bottom: 76px; }
}
@media (min-width: 1024px) {
  .fv-field--split .fv-look { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .fv-field--split .fv-look__full .fv-board { --fv-bmax: calc(100vh - 300px); }
}
@media print {
  .fv-ip--report .fv-reportbar, .fv-ip--report .fv-chead, .fv-r-decision .fv-decide, .fv-r-decision textarea, .fv-r-decision .fv-btn, .fv-r-decision label.fv-label { display: none !important; }
  .fv-r { border: 0; padding: 0; }
  .fv-r-sec { break-before: auto; }
  .fv-r-find, .fv-r-ok, .fv-r-kpis { break-inside: avoid; }
  .fv-mk, .fv-tbox, .fv-mark, .fv-focus, .fv-r-kpi { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
body:has(.fv-actions--sticky) #fv-demo { bottom: 84px; }
@media (max-width: 767.98px) {
  .fv-mk { min-width: 22px; height: 22px; padding: 0 .3rem; font-size: .68rem; }
  .fv-mk .fv-mk__p { display: none; }
  .fv-mk.is-current { min-width: 30px; height: 30px; font-size: .8rem; }
  button.fv-mk::before { inset: -5px; }
}
.fv-r-find.is-big .fv-pair { max-width: 860px; }

/* ===================================================================================================================
   SIMPLIFIED INSPECTOR JOURNEY (v10) — خطة التحقق · one item per screen · highlight regions instead of codes · read-only review
   =================================================================================================================== */
/* reference board: item location from analysed regions (fractions of the image = fractions of the board) */
.fv-board > img { width: 100%; height: auto; display: block; }
.fv-board--plan { --fv-bmax: 66vh; }
.fv-reg { position: absolute; border: 2.5px solid var(--fv-gold); border-radius: 4px; background: rgba(185, 138, 62, .14); box-shadow: 0 0 0 1px rgba(255, 255, 255, .85); pointer-events: none; z-index: 2; }
.fv-reg--approx { border-style: dashed; border-width: 2px; background: rgba(185, 138, 62, .10); border-radius: 10px; }
.fv-reg__lbl { position: absolute; top: -1px; inset-inline-start: -1px; transform: translateY(-100%); background: var(--fv-gold); color: #fff; font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 6px 6px 0 0; white-space: nowrap; }
.fv-reg--in { border-width: 2px; }
.fv-pin { position: absolute; width: 18px; height: 18px; margin: -22px 0 0 -9px; background: var(--fv-gold); border: 2.5px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); pointer-events: none; z-index: 3; }
.fv-dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(255, 255, 255, .92); border: 2.5px solid var(--fv-green); padding: 0; cursor: pointer; z-index: 2; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.fv-dot.is-approx { border-style: dashed; }
.fv-dot::before { content: ''; position: absolute; inset: -12px; }
.fv-board__note { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 3; display: inline-flex; align-items: center; gap: .3rem; background: rgba(255, 255, 255, .95); color: var(--fv-warn); font-size: .78rem; font-weight: 700; padding: .3rem .6rem; border-radius: 100px; box-shadow: 0 1px 6px rgba(0, 0, 0, .15); }
.fv-board__note--ok { color: var(--fv-green); }
/* focused approved crop — never distorted: the crop's own aspect, capped by --fv-cap (height) */
.fv-crop { position: relative; overflow: hidden; border-radius: 10px; background: #E9E6E0; width: min(100%, calc(var(--fv-cap, 300px) * var(--fv-a, 1.333))); margin-inline: auto; }
.fv-crop__in { position: absolute; display: block; }
.fv-crop__in > img { width: 100%; height: 100%; display: block; }
.fv-crop--pv { --fv-cap: 230px; }
.fv-crop--hero { --fv-cap: 34vh; }
.fv-crop--cmp { --fv-cap: 32vh; }
.fv-crop--thumb { --fv-cap: 52px; border-radius: 6px; margin: 0; flex: 0 0 auto; }
/* خطة التحقق */
.fv-plan__head { margin-bottom: .6rem; }
.fv-plan { display: grid; gap: 1rem; }
.fv-plan__main { min-width: 0; }
.fv-plan__cap { font-size: .82rem; color: var(--fv-muted); margin: .4rem 0 0; text-align: center; }
.fv-plan__count { font-size: .86rem; color: var(--fv-muted); margin: .9rem 0 .4rem; }
.fv-plan__count b { color: var(--fv-ink); font-size: 1.05rem; }
.fv-cats { list-style: none; margin: 0; padding: 0; border: 1px solid var(--fv-line); border-radius: 12px; background: #fff; overflow: hidden; }
.fv-cat + .fv-cat { border-top: 1px solid var(--fv-line2); }
.fv-cat__row { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; min-height: 52px; background: none; border: 0; font: inherit; color: var(--fv-ink); text-align: start; }
button.fv-cat__row { cursor: pointer; }
button.fv-cat__row:hover { background: var(--fv-bg); }
.fv-cat__name { flex: 1 1 auto; font-weight: 700; font-size: .95rem; }
.fv-cat__n { flex: 0 0 auto; font-size: .82rem; font-weight: 700; color: var(--fv-green); background: var(--fv-green-l); border-radius: 100px; padding: .15rem .6rem; }
.fv-cat.is-empty .fv-cat__name { color: var(--fv-soft); font-weight: 600; }
.fv-cat.is-empty .fv-cat__n { color: var(--fv-soft); background: transparent; font-weight: 500; padding: 0; }
.fv-cat__chev { display: inline-flex; color: var(--fv-soft); transition: transform .2s; }
.fv-cat.is-open .fv-cat__chev { transform: rotate(-90deg); }
.fv-cat__items { list-style: none; margin: 0; padding: 0 .6rem .6rem; display: grid; gap: .3rem; }
.fv-item { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; text-align: start; background: var(--fv-bg); border: 1.5px solid transparent; border-radius: 10px; padding: .65rem .8rem; min-height: 48px; font: inherit; color: var(--fv-ink); cursor: pointer; }
.fv-item:hover { border-color: var(--fv-line); }
.fv-item.is-current { border-color: var(--fv-gold); background: var(--fv-gold-l); }
.fv-item__name { flex: 1 1 auto; font-weight: 600; font-size: .92rem; }
.fv-item__loc { font-size: .74rem; color: var(--fv-warn); font-weight: 600; }
.fv-pv { background: #fff; border: 1px solid var(--fv-line); border-radius: 12px; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; }
.fv-pv--empty { color: var(--fv-muted); font-size: .88rem; text-align: center; padding: 1.1rem .9rem; }
.fv-pv--empty p { margin: 0; }
.fv-pv__cat { font-size: .78rem; font-weight: 700; color: var(--fv-gold-d); }
.fv-pv__name { font-size: 1.15rem; font-weight: 800; margin: 0; line-height: 1.4; }
.fv-pv__loc { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; margin: 0; color: var(--fv-green); }
.fv-pv__loc.is-approx, .fv-pv__loc.is-none { color: var(--fv-warn); }
.fv-pv__req { margin: 0; font-size: .92rem; line-height: 1.65; }
@media (min-width: 1024px) {
  .fv-plan { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .fv-plan__side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}
/* one item per screen */
.fv-step { margin-bottom: .7rem; }
.fv-step__cat { display: block; font-size: .8rem; font-weight: 700; color: var(--fv-gold-d); margin-bottom: .15rem; }
.fv-step__name { font-size: 1.35rem; font-weight: 800; margin: 0; line-height: 1.35; }
.fv-step__flag { display: inline-block; margin-top: .35rem; font-size: .76rem; font-weight: 700; color: var(--fv-warn); background: var(--fv-warn-bg); border-radius: 100px; padding: .15rem .6rem; }
.fv-look { display: grid; gap: .8rem; }
.fv-look figure { margin: 0; }
.fv-look figcaption { font-size: .78rem; color: var(--fv-muted); font-weight: 700; margin-top: .3rem; text-align: center; }
.fv-req { background: var(--fv-gold-l); border-radius: 12px; padding: .8rem .95rem; margin: .2rem 0 .6rem; }
.fv-req__k { display: block; font-size: .78rem; font-weight: 800; color: var(--fv-gold-d); margin-bottom: .15rem; }
.fv-req p { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.6; }
.fv-foot2 { display: flex; justify-content: center; gap: 1.5rem; }
.fv-foot2 .fv-linkbtn { padding: .2rem 0; min-height: 40px; }
.fv-gate__more { margin-top: .4rem; font-size: .84rem; }
.fv-gate__more summary { cursor: pointer; color: var(--fv-muted); font-weight: 600; padding: .3rem 0; }
/* post-capture: approved reference vs field photo, dominant */
.fv-cmp { display: grid; gap: .7rem; }
.fv-cmp figure { margin: 0; }
.fv-cmp figcaption { font-size: .82rem; font-weight: 800; text-align: center; margin-top: .3rem; color: var(--fv-ink); }
.fv-photo--cmp { width: min(100%, calc(32vh * 4 / 3)); margin-inline: auto; border-radius: 10px; }
@media (min-width: 600px) { .fv-cmp { grid-template-columns: 1fr 1fr; align-items: start; } .fv-crop--cmp { --fv-cap: 42vh; } .fv-photo--cmp { width: min(100%, calc(42vh * 4 / 3)); } }
@media (min-width: 1024px) { .fv-field--split .fv-cmp { gap: 1.1rem; } .fv-field--split .fv-crop--cmp { --fv-cap: calc(100vh - 300px); } .fv-field--split .fv-photo--cmp { width: min(100%, calc((100vh - 300px) * 4 / 3)); }
  .fv-field--split .fv-look { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } .fv-field--split .fv-crop--hero { --fv-cap: 46vh; } }
/* skip / unverifiable */
.fv-radios { display: grid; gap: .35rem; margin-bottom: .6rem; }
.fv-radio { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--fv-line); border-radius: 10px; padding: .6rem .8rem; min-height: 46px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.fv-radio:has(input:checked) { border-color: var(--fv-gold); background: var(--fv-gold-l); }
.fv-radio input { accent-color: var(--fv-gold); width: 18px; height: 18px; }
/* summary */
.fv-tally { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.fv-tally li { border-radius: 12px; padding: .7rem .5rem; text-align: center; background: var(--fv-bg); display: flex; flex-direction: column; gap: .1rem; }
.fv-tally b { font-size: 1.6rem; line-height: 1.1; }
.fv-tally span { font-size: .8rem; font-weight: 700; color: var(--fv-muted); }
.fv-tally .is-ok b { color: var(--fv-ok); } .fv-tally .is-warn b { color: var(--fv-warn); } .fv-tally .is-bad b { color: var(--fv-bad); }
.fv-panelbox h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .7rem; }
.fv-rest { border-color: #EAD9B5; }
.fv-restlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fv-restrow { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--fv-line2); flex-wrap: wrap; }
.fv-restrow:last-child { border-bottom: 0; }
.fv-restrow__img { flex: 0 0 auto; }
.fv-restrow__img .fv-photo--thumb { width: 64px; }
.fv-restrow__txt { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.fv-restrow__acts { display: flex; gap: .4rem; flex-wrap: wrap; }
/* report: unverified */
.fv-r-unlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fv-r-unlist li { display: flex; gap: .75rem; align-items: center; }
.fv-r-unlist li > div { display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.fv-r-cat--empty { color: var(--fv-soft); font-weight: 600; }
.fv-r-cat--empty span { font-weight: 500; }
/* read-only review surface */
.fv-rv__bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.fv-rv__badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--fv-info-bg); color: var(--fv-info); font-weight: 800; font-size: .86rem; border-radius: 100px; padding: .3rem .8rem; }
.fv-rv__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.fv-rv__nav { display: flex; gap: .4rem; overflow-x: auto; position: sticky; top: 0; z-index: 5; background: var(--fv-bg); padding: .5rem 0; margin-bottom: .6rem; }
.fv-rv__nav a { flex: 0 0 auto; padding: .45rem .8rem; border-radius: 100px; background: #fff; border: 1px solid var(--fv-line); font-size: .84rem; font-weight: 700; color: var(--fv-ink); text-decoration: none; }
.fv-rv__refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.fv-rv__refs figure { margin: 0; }
.fv-rv__refs img { width: 100%; border-radius: 10px; display: block; }
.fv-rv__refs figcaption { font-size: .8rem; color: var(--fv-muted); margin-top: .3rem; }
.fv-rv__res { border-top: 1px solid var(--fv-line2); padding-top: .9rem; margin-top: .9rem; }
.fv-rv__res:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.fv-rv__res h3 { font-size: 1rem; margin: 0 0 .5rem; }
.fv-cmp--sm .fv-crop--cmp { --fv-cap: 220px; } .fv-cmp--sm .fv-photo--cmp { width: min(100%, 293px); }
.fv-rv .fv-r { box-shadow: none; }
@media (max-width: 767.98px) {
  .fv-step__name { font-size: 1.2rem; }
  .fv-crop--hero { --fv-cap: 30vh; }
  .fv-look__full .fv-board { --fv-bmax: 30vh; }
  .fv-plan .fv-board--plan { --fv-bmax: 44vh; }
}
@media print { .fv-reg, .fv-pin, .fv-crop { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.fv-req p { color: var(--fv-ink); }
@media (max-width: 767.98px) {
  .fv-look:not(.fv-look--one) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; align-items: start; }
  .fv-look:not(.fv-look--one) .fv-crop--hero { --fv-cap: 200px; }
  .fv-look--one .fv-board { --fv-bmax: 34vh; }
  .fv-crop--cmp { --fv-cap: 26vh; }
  .fv-photo--cmp { width: min(100%, calc(26vh * 4 / 3)); }
  .fv-step { margin-bottom: .5rem; }
}
/* v11 annotation overlay: numbered labels outside the element + leader lines; selected = regions + name, others dimmed */
.fv-board .fv-reg { border-width: 2px; background: rgba(185, 138, 62, .10); }
.fv-item__n { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--fv-green); color: var(--fv-green); font-size: .72rem; font-weight: 800; background: #fff; }
.fv-item.is-current .fv-item__n { background: var(--fv-gold); border-color: var(--fv-gold); color: #fff; }
.fv-mark__lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; inset-inline-start: 0; }

/* =================================================================== FINAL REPORT v13 — official A4 pages (.fvr) · PDF and Excel share one vocabulary */
.fvr { --g: #14573A; --ink: #1B1B18; --mut: #6B675F; --line: #E7E3DA; --neu: #F4F2EE;
  --ok: #1E6B45; --ok-bg: #EAF4EE; --bad: #A13D2D; --bad-bg: #F7EAE6; --warn: #8A5A00; --warn-bg: #FAF1DD; --rev: #9A6B00; --rev-bg: #FDF6E7; --mu-bg: #EFEDE8; --amber: #D99A2B;
  font-family: 'Alexandria', 'IBMPlexSansArabic', Arial, sans-serif; color: var(--ink); line-height: 1.35; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 0 24px; }
.fvr * { box-sizing: border-box; }
.fvr h1, .fvr h2, .fvr h3, .fvr p, .fvr dl, .fvr figure { border: 0; padding: 0; background: none; letter-spacing: 0; text-transform: none; }
.fvr h2::after, .fvr h3::after, .fvr h2::before, .fvr h3::before { content: none !important; display: none !important; }
.fvr-page { width: 210mm; height: 297mm; background: #fff; box-shadow: 0 4px 24px rgba(27, 27, 24, .10); padding: 16mm 17mm 10mm; display: flex; flex-direction: column; overflow: hidden; position: relative; break-inside: avoid; page-break-inside: avoid; }
/* header / footer — identical on every page */
.fvr-head { display: flex; align-items: center; gap: 6mm; padding-bottom: 3mm; border-bottom: .35mm solid var(--g); flex: 0 0 auto; }
.fvr-logo { height: 12mm; width: auto; flex: 0 0 auto; }
.fvr-logo--momah { height: 9.5mm; }
.fvr-head__t { flex: 1 1 auto; text-align: center; display: flex; flex-direction: column; gap: .8mm; }
.fvr-head__t b { font-size: 12pt; font-weight: 700; color: var(--g); }
.fvr-head__t span { font-size: 8.5pt; color: var(--mut); white-space: nowrap; }
.fvr-head__t i { font-style: normal; color: var(--ink); }
.fvr-head--cover { padding-bottom: 3.5mm; }
.fvr-head--cover .fvr-head__t { gap: 1mm; }
.fvr-head--cover .fvr-logo { height: 14mm; } .fvr-head--cover .fvr-logo--momah { height: 10.5mm; }
.fvr-head--cover .fvr-head__t b { font-size: 24pt; line-height: 1.35; }
.fvr-head--cover .fvr-head__t span { font-size: 9.5pt; }
.fvr-body { flex: 1 1 auto; min-height: 0; padding-top: 5mm; display: flex; flex-direction: column; gap: 3.5mm; }
.fvr-foot span[dir=ltr] { unicode-bidi: isolate; }
.fvr-foot { flex: 0 0 auto; height: 7mm; display: flex; align-items: flex-end; justify-content: space-between; font-size: 8.5pt; color: var(--mut); border-top: .25mm solid var(--line); padding-top: 2mm; }
.fvr-h2 { font-size: 17pt; font-weight: 700; margin: 0; color: var(--ink); line-height: 1.3; }
.fvr-k { display: block; font-size: 8.5pt; font-weight: 700; color: var(--mut); margin-bottom: 1mm; }
/* badges (status vocabulary) */
.fvr-b { display: inline-flex; align-items: center; gap: 1mm; font-size: 9.5pt; font-weight: 700; border-radius: 10mm; padding: .7mm 3mm; background: var(--neu); color: var(--ink); white-space: nowrap; }
.fvr-b.is-ok { background: var(--ok-bg); color: var(--ok); } .fvr-b.is-bad { background: var(--bad-bg); color: var(--bad); }
.fvr-b.is-warn { background: var(--warn-bg); color: var(--warn); } .fvr-b.is-muted { background: var(--mu-bg); color: var(--mut); }
.fvr-b--ai { background: transparent !important; border: .25mm dashed currentColor; font-weight: 600; font-size: 9pt; }
.fvr-b--ai.is-warn { color: var(--rev); } .fvr-b--ai.is-ok { color: var(--ok); } .fvr-b--ai.is-bad { color: var(--bad); }
/* 1 overview */
.fvr-cover { display: flex; flex-direction: column; gap: 4mm; height: 100%; }
.fvr-cover__p { font-size: 16pt; font-weight: 600; margin: 0; }
.fvr-meta { display: grid; grid-template-columns: 1.35fr 1fr .9fr 1.55fr 1fr; gap: 4mm; margin: 0; padding: 3mm 0; border-top: .25mm solid var(--line); border-bottom: .25mm solid var(--line); }
.fvr-meta dt { font-size: 8.5pt; color: var(--mut); margin-bottom: .6mm; }
.fvr-meta dd { margin: 0; font-size: 10.5pt; font-weight: 600; }
.fvr-meta dd.fv-mono, .fvr-sign dd.fv-mono { white-space: nowrap; font-size: 10pt; }
.fvr-cover__img { margin: 1mm 0 0; }
.fvr-cover__img figcaption { font-size: 9pt; color: var(--mut); text-align: center; margin-top: 1.5mm; }
.fvr-result { margin-top: 1mm; border-radius: 3.5mm; padding: 5mm 6mm; background: var(--neu); border-inline-start: 2mm solid var(--mut); }
.fvr-result span { font-size: 9pt; color: var(--mut); font-weight: 700; }
.fvr-result b { display: block; font-size: 24pt; line-height: 1.25; margin: .5mm 0 1.5mm; }
.fvr-result p { margin: 0; font-size: 11pt; }
.fvr-result.is-bad, .fvr-final.is-bad { background: var(--bad-bg); border-color: var(--bad); } .fvr-result.is-bad b, .fvr-final.is-bad b { color: var(--bad); }
.fvr-result.is-ok, .fvr-final.is-ok { background: var(--ok-bg); border-color: var(--ok); } .fvr-result.is-ok b, .fvr-final.is-ok b { color: var(--ok); }
.fvr-result.is-warn, .fvr-final.is-warn { background: var(--warn-bg); border-color: var(--warn); } .fvr-result.is-warn b, .fvr-final.is-warn b { color: var(--warn); }
/* one fixed 16:9 image frame for every picture */
.fvr .fvr-shot { aspect-ratio: 16 / 9; width: 100%; height: auto; border-radius: 2mm; background: var(--neu); position: relative; overflow: hidden; }
.fvr .fvr-shot .fv-photo__fit { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; display: block; }
.fvr .fvr-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fvr-shot--none { display: flex; align-items: center; justify-content: center; color: var(--mut); font-size: 9pt; }
.fvr-reg { position: absolute; border: .35mm solid var(--amber); background: rgba(217, 154, 43, .10); border-radius: .8mm; }
.fvr-reg.is-approx { border-style: dashed; }
.fvr-reg i { position: absolute; top: -2mm; inset-inline-start: -2mm; width: 4mm; height: 4mm; border-radius: 50%; background: var(--amber); color: #fff; font-style: normal; font-size: 6.5pt; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
/* 2 executive summary + checklist */
.fvr-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3mm; }
.fvr-kpis > div { background: var(--neu); border-radius: 3mm; padding: 4mm 2mm 3.5mm; text-align: center; display: flex; flex-direction: column; gap: .8mm; }
.fvr-kpis b { font-size: 24pt; line-height: 1.1; }
.fvr-kpis span { font-size: 9pt; color: var(--mut); font-weight: 600; }
.fvr-kpis .is-ok { background: var(--ok-bg); } .fvr-kpis .is-ok b { color: var(--ok); }
.fvr-kpis .is-bad { background: var(--bad-bg); } .fvr-kpis .is-bad b { color: var(--bad); }
.fvr-kpis .is-warn { background: var(--warn-bg); } .fvr-kpis .is-warn b { color: var(--warn); }
.fvr-kpis .is-muted { background: var(--mu-bg); } .fvr-kpis .is-muted b { color: var(--mut); }
.fvr-kpis + .fvr-h2 { margin-top: 3mm; }
.fvr-chk__head, .fvr-chk__row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .8fr) minmax(0, 1.15fr) minmax(0, 1.25fr); gap: 3mm; align-items: center; }
.fvr-chk__head { font-size: 8.5pt; font-weight: 700; color: var(--mut); padding: 0 0 1.8mm; border-bottom: .3mm solid var(--line); }
.fvr-chk ul { list-style: none; margin: 0; padding: 0; }
.fvr-chk__row { padding: 2.6mm 0; border-bottom: .2mm solid var(--line); }
.fvr-chk__item b { display: block; font-size: 10.5pt; font-weight: 600; }
.fvr-chk__item span { font-size: 8.5pt; color: var(--mut); }
.fvr-chk__row.is-unv .fvr-chk__item b { color: var(--mut); }
.fvr-act { font-size: 9.5pt; font-weight: 700; }
.fvr-chk .fvr-b--ai { font-size: 8.5pt; padding: .6mm 2.2mm; }
.fvr-dash { color: var(--mut); font-weight: 700; padding-inline-start: 3mm; }
.fvr-act.is-review { color: var(--rev); } .fvr-act.is-ok { color: var(--ok); } .fvr-act.is-muted { color: var(--mut); }
.fvr-legend { display: flex; flex-wrap: wrap; gap: 2mm 6mm; margin: 0; font-size: 8.5pt; color: var(--mut); }
.fvr-ai { border: .25mm dashed #D6D1C6; border-radius: 2.5mm; padding: 3mm 4mm; margin-top: auto; }
.fvr-ai p { margin: 0 0 .8mm; font-size: 9.5pt; }
.fvr-ai small { font-size: 8.5pt; color: var(--mut); }
/* 3–4 comparisons: exactly two fixed cards per page, never split */
.fvr-cards { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4mm; }
.fvr-card { min-height: 0; display: flex; flex-direction: column; gap: 2mm; border: .25mm solid var(--line); border-radius: 3mm; padding: 2.8mm 4mm 2.6mm; break-inside: avoid; page-break-inside: avoid; overflow: hidden; }
.fvr-card__t span { font-size: 8.5pt; font-weight: 700; color: #7A5717; }
.fvr-card__t h3 { font-size: 14pt; font-weight: 700; margin: 0; line-height: 1.25; }
.fvr-card__t span { display: block; line-height: 1.2; }
.fvr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.fvr-pair figure { margin: 0; break-inside: avoid; }
.fvr-pair figcaption { font-size: 9pt; font-weight: 700; text-align: center; margin-top: .8mm; color: var(--ink); }
.fvr-res { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4mm; align-items: stretch; }
.fvr-res__insp { border-radius: 2.5mm; padding: 1.8mm 3.5mm; background: var(--neu); }
.fvr-res__insp b { display: block; font-size: 13pt; font-weight: 700; line-height: 1.3; }
.fvr-res__insp p { margin: .6mm 0 0; font-size: 10pt; }
.fvr-res__insp.is-ok { background: var(--ok-bg); } .fvr-res__insp.is-ok b { color: var(--ok); }
.fvr-res__insp.is-bad { background: var(--bad-bg); } .fvr-res__insp.is-bad b { color: var(--bad); }
.fvr-res__insp.is-warn { background: var(--warn-bg); } .fvr-res__insp.is-warn b { color: var(--warn); }
.fvr-res__ai { border-radius: 2.5mm; padding: 1.8mm 3.5mm; border: .25mm solid var(--line); }
.fvr-gist p { margin: 0; font-size: 10pt; }
.fvr-gist p + p { margin-top: .8mm; }
.fvr-gist .fvr-lim { font-size: 8.8pt; color: var(--mut); }
/* 5 final summary */
.fvr-sec { break-inside: avoid; page-break-inside: avoid; display: flex; flex-direction: column; gap: 2mm; }
.fvr-sec .fvr-h2 { font-size: 13pt; }
.fvr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 6mm; }
.fvr-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .4mm 2.2mm; font-size: 10.5pt; padding: 1.8mm 0; border-bottom: .2mm solid var(--line); }
.fvr-list li b { font-weight: 600; }
.fvr-ic { width: 5.5mm; height: 5.5mm; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 9pt; background: var(--neu); flex: 0 0 auto; }
.fvr-ic.is-ok { background: var(--ok-bg); color: var(--ok); } .fvr-ic.is-bad { background: var(--bad-bg); color: var(--bad); } .fvr-ic.is-warn { background: var(--warn-bg); color: var(--warn); }
.fvr-sub { color: var(--mut); font-size: 9pt; flex-basis: 100%; padding-inline-start: 7.7mm; }
.fvr-table { width: 100%; border-collapse: collapse; font-size: 10pt; table-layout: fixed; border: 0; background: transparent !important; margin: 0; }
.fvr-table thead, .fvr-table tbody, .fvr-table tr { background: transparent !important; border: 0; }
.fvr-table th, .fvr-table td { border: 0; border-inline: 0 !important; }
.fvr-table th { border-bottom: .3mm solid var(--line) !important; text-align: start; font-weight: 700; color: var(--mut); font-size: 8.5pt; padding: 1.4mm 2mm; border-bottom: .3mm solid var(--line); background: transparent !important; }
.fvr-table th:nth-child(1) { width: 42%; } .fvr-table th:nth-child(2) { width: 28%; }
.fvr-table td { border-bottom: .2mm solid var(--line) !important; padding: 1.7mm 2mm; border-bottom: .2mm solid var(--line); background: transparent !important; vertical-align: top; }
.fvr-table td:first-child { font-weight: 600; }
.fvr-table tr { break-inside: avoid; }
.fvr-decision { margin-top: auto; }
.fvr-final { border-radius: 3.5mm; padding: 4mm 6mm; background: var(--neu); border-inline-start: 2mm solid var(--mut); }
.fvr-final b { display: block; font-size: 22pt; line-height: 1.25; margin-bottom: 1mm; }
.fvr-final p { margin: 0; font-size: 10.5pt; }
.fvr-sign { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4mm; margin: 1mm 0 0; }
.fvr-sign dt { font-size: 8.5pt; color: var(--mut); } .fvr-sign dd { margin: .6mm 0 0; font-size: 10pt; font-weight: 600; border-bottom: .25mm solid var(--line); padding-bottom: 1.6mm; }
.fvr-ai--sm { margin-top: 1mm; padding: 2.2mm 3.5mm; } .fvr-ai--sm p { font-size: 9pt; color: var(--mut); margin: 0; }
.fvr-decide-form { margin-top: 4mm; }
/* screen < A4 width: sheets become fluid (phones) */
@media screen and (max-width: 820px) {
  .fvr-page { width: 100%; height: auto; min-height: 0; padding: 14px 14px 10px; }
  .fvr-logo { height: 32px; } .fvr-logo--momah { height: 26px; }
  .fvr-head--cover .fvr-logo { height: 40px; } .fvr-head--cover .fvr-logo--momah { height: 32px; } .fvr-head--cover .fvr-head__t b { font-size: 18pt; }
  .fvr-meta, .fvr-sign { grid-template-columns: 1fr 1fr; }
  .fvr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fvr-chk__head { display: none; } .fvr-chk__row { grid-template-columns: 1fr 1fr; }
  .fvr-chk__item { grid-column: 1 / -1; }
  .fvr-pair, .fvr-res, .fvr-list { grid-template-columns: minmax(0, 1fr); }
  .fvr-cards { display: flex; flex-direction: column; }
  .fvr-result, .fvr-ai, .fvr-decision { margin-top: 0; }
}
/* print: A4 portrait, no browser header/footer (zero page margin), only the report sheets */
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { background: #fff !important; }
  body.fv-report-mode * { visibility: hidden !important; }
  body.fv-report-mode .fvr, body.fv-report-mode .fvr * { visibility: visible !important; }
  body.fv-report-mode .fvr { position: absolute; inset: 0 auto auto 0; width: 210mm; padding: 0; gap: 0; display: block; }
  body.fv-report-mode .fvr-decide-form { display: none !important; }
  .fvr-page { box-shadow: none; break-after: page; page-break-after: always; margin: 0; }
  .fvr-page:last-child { break-after: auto; page-break-after: auto; }
  .fvr *, .fvr-reg, .fvr-b, .fvr-result, .fvr-final, .fvr-kpis > div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* v14 — page 1 = complete overview; fixed comparison-card slots */
.fvr .fvr-h3 { font-size: 13pt; font-weight: 700; margin: 0 0 1.2mm; color: var(--ink); }
.fvr-page--cover .fvr-body { gap: 3.2mm; padding-top: 4mm; }
.fvr-page--cover .fvr-meta { padding: 2.4mm 0; }
.fvr-kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.4mm; }
.fvr-kpis--6 > div { padding: 2.6mm 1.5mm 2.2mm; }
.fvr-kpis--6 b { font-size: 19pt; }
.fvr-kpis--6 span { font-size: 8.5pt; }
.fvr-kpis .is-info { background: #EEF3F0; } .fvr-kpis .is-info b { color: var(--g); }
.fvr-ctab { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9.5pt; border: 0; background: transparent !important; margin: 0; }
.fvr-ctab thead, .fvr-ctab tbody, .fvr-ctab tr { background: transparent !important; border: 0; }
.fvr-ctab th, .fvr-ctab td { border: 0; border-inline: 0 !important; background: transparent !important; }
.fvr-ctab th { text-align: start; font-size: 8.5pt; font-weight: 700; color: var(--mut); padding: 0 1.4mm 1.4mm; border-bottom: .3mm solid var(--line) !important; }
.fvr-ctab td { padding: 1.15mm 1.4mm; border-bottom: .2mm solid var(--line) !important; vertical-align: middle; line-height: 1.3; }
.fvr-ctab tr { break-inside: avoid; }
.fvr-ctab th:nth-child(1) { width: 6mm; } .fvr-ctab th:nth-child(3) { width: 26mm; } .fvr-ctab th:nth-child(4) { width: 23mm; } .fvr-ctab th:nth-child(5) { width: 37mm; } .fvr-ctab th:nth-child(6) { width: 26mm; }
.fvr-ctab .fvr-num { color: var(--mut); font-size: 8.5pt; text-align: center; }
.fvr-ctab .fvr-item { font-weight: 600; }
.fvr-ctab .fvr-cat { color: var(--mut); font-size: 8.5pt; }
.fvr-ctab .fvr-b { font-size: 8.3pt; padding: .45mm 2.2mm; }
.fvr-fin { display: inline-flex; align-items: center; gap: 1mm; font-size: 8.8pt; font-weight: 700; border-radius: 1.4mm; padding: .5mm 2.2mm; white-space: nowrap; }
.fvr-fin.is-ok { background: var(--ok-bg); color: var(--ok); } .fvr-fin.is-bad { background: var(--bad-bg); color: var(--bad); }
.fvr-fin.is-warn { background: var(--warn-bg); color: var(--warn); } .fvr-fin.is-muted { background: var(--mu-bg); color: var(--mut); } .fvr-fin.is-review { background: var(--rev-bg); color: var(--rev); }
.fvr-ov .fvr-legend { margin-top: 1.6mm; }
.fvr-page--cover .fvr-result { margin-top: auto; padding: 3.2mm 5mm; }
.fvr-page--cover .fvr-result b { font-size: 19pt; margin: 0 0 .6mm; }
.fvr-page--cover .fvr-result p { font-size: 10.5pt; }
.fvr-refimg { margin: 0; } .fvr-refimg figcaption { font-size: 9pt; color: var(--mut); text-align: center; margin-top: 1.5mm; }
.fvr-bullets { margin: 0; padding: 0 5mm 0 0; display: flex; flex-direction: column; gap: 2.2mm; font-size: 10.5pt; }
.fvr-bullets b { font-weight: 700; }
.fvr-card { display: grid; grid-template-rows: auto auto 17.5mm 9.8mm 4.8mm; align-content: start; gap: 2mm; }
.fvr-card__t h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fvr-res__insp p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fvr-card > .fvr-gist { margin: 0; font-size: 10pt; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fvr-card > .fvr-lim { margin: 0; font-size: 8.8pt; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fvr-res { min-height: 0; } .fvr-res > div { min-height: 0; overflow: hidden; }
@media screen and (max-width: 820px) {
  .fvr-kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fvr-ctab th:nth-child(3), .fvr-ctab td:nth-child(3) { display: none; }
  .fvr-ctab th:nth-child(5) { width: 30%; } .fvr-ctab th:nth-child(4), .fvr-ctab th:nth-child(6) { width: 20%; }
  .fvr-card { grid-template-rows: none; } .fvr-card__t h3, .fvr-res__insp p, .fvr-card > .fvr-lim { white-space: normal; }
}

.fvr-head--cover .fvr-head__t b { line-height: 1.5; }
.fvr-ctab { font-size: 9pt; }
.fvr-ctab td { padding: .85mm 1.2mm; }
.fvr-ctab th:nth-child(3) { width: 27mm; } .fvr-ctab th:nth-child(4) { width: 21mm; } .fvr-ctab th:nth-child(5) { width: 31mm; } .fvr-ctab th:nth-child(6) { width: 25mm; }
.fvr-ctab .fvr-cat { font-size: 8pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fvr-ctab .fvr-b { font-size: 8pt; padding: .3mm 1.8mm; }
.fvr-ctab .fvr-fin { font-size: 8.3pt; padding: .3mm 1.8mm; }
.fvr-kpis--6 > div { padding: 2mm 1.5mm 1.8mm; } .fvr-kpis--6 b { font-size: 18pt; }
.fvr-page--cover .fvr-result { padding: 2.6mm 5mm; } .fvr-page--cover .fvr-result b { font-size: 18pt; }
.fvr-ctab { font-size: 9.4pt; }
.fvr-ctab td { padding: 1.35mm 1.2mm; }
.fvr-ctab th { white-space: nowrap; }
.fvr-ctab th:nth-child(3) { width: 26mm; } .fvr-ctab th:nth-child(4) { width: 22mm; } .fvr-ctab th:nth-child(5) { width: 34mm; } .fvr-ctab th:nth-child(6) { width: 25mm; }
.fvr-ctab .fvr-b, .fvr-ctab .fvr-fin { font-size: 8.2pt; }
.fvr-page--cover .fvr-body { gap: 4mm; }
.fvr-ctab th:nth-child(3) { width: 24mm; } .fvr-ctab th:nth-child(5) { width: 37mm; }
/* v15 — strict typography system (L1 title · L2 page title · L3 element · L4 category · body · secondary) */
.fvr { --t1: 21pt; --t2: 15.5pt; --t3: 13pt; --t4: 9.5pt; --tb: 10pt; --ts: 8.5pt; --accent: #7A5717; }
.fvr-head__t b { font-size: 11pt; } .fvr-head__t span { font-size: var(--ts); }
.fvr-head--cover .fvr-head__t b { font-size: var(--t1); line-height: 1.4; } .fvr-head--cover .fvr-head__t span { font-size: 8.8pt; }
.fvr-head--cover .fvr-logo { height: 13mm; } .fvr-head--cover .fvr-logo--momah { height: 10mm; }
.fvr .fvr-h2, .fvr-sec .fvr-h2, .fvr .fvr-h3 { font-size: var(--t2); font-weight: 600; line-height: 1.3; margin: 0; }
.fvr-card__t span { font-size: var(--t4); font-weight: 600; color: var(--accent); }
.fvr-card__t h3 { font-size: var(--t3); font-weight: 600; line-height: 1.3; }
.fvr-pair figcaption, .fvr-duo figcaption { font-size: 9pt; font-weight: 700; color: var(--ink); text-align: center; margin-top: .9mm; }
.fvr-k { font-size: var(--ts); font-weight: 600; }
.fvr-res__insp b { font-size: 12.5pt; } .fvr-res__insp p { font-size: var(--tb); }
.fvr-b--ai { font-size: 9pt; }
.fvr-card > .fvr-gist { font-size: var(--tb); } .fvr-card > .fvr-lim, .fvr-gist .fvr-lim { font-size: var(--ts); }
.fvr-meta dt { font-size: 8pt; } .fvr-meta dd { font-size: 9.5pt; } .fvr-meta dd.fv-mono { font-size: 9.2pt; }
.fvr-bullets, .fvr-list li, .fvr-final p, .fvr-result p { font-size: var(--tb); }
.fvr-ai p { font-size: var(--tb); } .fvr-ai small, .fvr-sub, .fvr-legend, .fvr-ai--sm p { font-size: var(--ts); }
.fvr-table { font-size: var(--tb); } .fvr-table th { font-size: 8pt; }
.fvr-foot { font-size: 8pt; }
/* page 1 — compact overview with both project images */
.fvr-page--cover .fvr-body { gap: 2.6mm; padding-top: 3mm; }
.fvr-page--cover .fvr-meta { padding: 1.8mm 0; gap: 3mm; }
.fvr-kpis--6 > div { padding: 1.5mm 1mm 1.3mm; gap: 0; border-radius: 2.2mm; } .fvr-kpis--6 b { font-size: 15pt; line-height: 1.15; } .fvr-kpis--6 span { font-size: 8pt; }
.fvr-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.fvr-duo figure { margin: 0; }
.fvr-ovhead { display: flex; align-items: baseline; justify-content: space-between; gap: 4mm; margin-bottom: 1mm; }
.fvr-ovhead .fvr-legend { margin: 0; gap: 1mm 3.5mm; }
.fvr-ctab { font-size: 8.8pt; }
.fvr-ctab th { font-size: 8pt; padding: 0 1.2mm 1mm; text-align: right; }
.fvr-ctab td { padding: .62mm 1.2mm; line-height: 1.25; text-align: right; }
.fvr-ctab th:nth-child(1), .fvr-ctab td:nth-child(1), .fvr-ctab th:nth-child(4), .fvr-ctab td:nth-child(4), .fvr-ctab th:nth-child(5), .fvr-ctab td:nth-child(5), .fvr-ctab th:nth-child(6), .fvr-ctab td:nth-child(6) { text-align: center; }
.fvr-ctab .fvr-cat { font-size: 8pt; }
.fvr-ctab .fvr-b, .fvr-ctab .fvr-fin { font-size: 7.8pt; padding: .2mm 1.8mm; border-radius: 3mm; line-height: 1.35; }
.fvr-ctab .fvr-dash { padding: 0; }
.fvr-result--line { margin-top: auto; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 1mm 5mm; padding: 2.4mm 5mm !important; }
.fvr-result--line span { font-size: var(--ts); } .fvr-result--line b { font-size: 15pt !important; margin: 0 !important; white-space: nowrap; } .fvr-result--line p { font-size: 9.5pt !important; margin: 0; }
@media screen and (max-width: 820px) { .fvr-duo { grid-template-columns: 1fr; } .fvr-ovhead { flex-wrap: wrap; } .fvr-result--line { grid-template-columns: 1fr; } }
.fvr-ctab th:nth-child(3) { width: 28mm; } .fvr-ctab th:nth-child(4) { width: 21mm; } .fvr-ctab th:nth-child(5) { width: 33mm; } .fvr-ctab th:nth-child(6) { width: 25mm; }
.fvr-ctab td { padding: .85mm 1.2mm; }
.fvr-ctab .fvr-cat { overflow: visible; text-overflow: clip; }


/* ===================================================================== v16 — final product architecture
 * compact category markers · four item results · post-photo question/impact/notes · field-only services · case rows ·
 * routing (send / Balady) · reviewer final check · read-only final page · finalization outputs */
.fv-cdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--mk, var(--fv-green)); margin-inline-end: .4rem; vertical-align: .05em; flex: 0 0 auto; }
/* markers: numbered, category colour, no labels or connector lines on the façade */
.fv-mk { position: absolute; z-index: 4; transform: translate(-50%, -50%); width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--mk, var(--fv-green));
  color: #fff; font: inherit; font-size: .7rem; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: opacity .15s, width .15s, height .15s; }
.fv-mk { box-sizing: border-box; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; aspect-ratio: 1 / 1; }
.fv-mk > b { font-weight: 800; line-height: 1; }
.fv-mk.is-approx { border-style: dashed; }
.fv-mk.is-dim { opacity: .38; }
.fv-mk.is-current { width: 30px; height: 30px; font-size: .82rem; z-index: 6; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 6px var(--mk, var(--fv-green)), 0 3px 10px rgba(0, 0, 0, .35); }
.fv-mk::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; } /* larger touch target */
.fv-mk:focus-visible { outline: 3px solid var(--fv-gold); outline-offset: 3px; }
.fv-board .fv-reg { border-color: var(--mk, var(--fv-gold)); background: color-mix(in srgb, var(--mk, #B98A3E) 14%, transparent); border-width: 2.5px; }
.fv-reg--in { border-color: var(--mk, var(--fv-gold)) !important; }
@media (max-width: 767.98px) { .fv-mk { width: 20px; height: 20px; font-size: .64rem; } .fv-mk.is-current { width: 27px; height: 27px; font-size: .76rem; } }
.fv-item__n { border-color: var(--mk, var(--fv-green)) !important; color: var(--mk, var(--fv-green)) !important; }
.fv-item.is-current .fv-item__n { background: var(--mk, var(--fv-gold)) !important; border-color: var(--mk, var(--fv-gold)) !important; color: #fff !important; }
.fv-cat__name { display: inline-flex; align-items: center; }
.fv-cat__row.is-field .fv-cat__n, .fv-cat__n { font-size: .78rem; }
.fv-pv__name { display: flex; align-items: center; gap: .5rem; }
.fv-pv__n { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mk, var(--fv-green)); color: #fff; font-size: .82rem; font-weight: 800; }
.fv-pv__cat { display: inline-flex; align-items: center; }
.fv-pv__field { margin: .4rem 0; padding: .7rem .8rem; border-radius: 10px; background: var(--fv-bg); border: 1px dashed var(--fv-line); font-size: .86rem; color: var(--fv-muted); }
.fv-pv__loc.is-field { color: var(--fv-muted); }

/* home: one row per case */
.fv-crows { background: #fff; border: 1px solid var(--fv-line); border-radius: 16px; overflow: hidden; box-shadow: var(--fv-shadow); }
.fv-crows__head { display: none; }
.fv-crows__list { list-style: none; margin: 0; padding: 0; }
.fv-crow + .fv-crow { border-top: 1px solid var(--fv-line2); }
.fv-crow__a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "tx st" "pj pj" "meta meta" "pr pr" "tm go"; gap: .3rem .75rem; padding: .9rem 1rem; color: inherit; text-decoration: none; }
.fv-crow__a:hover { background: var(--fv-bg); }
.fv-crow__a:focus-visible { outline: 3px solid var(--fv-gold); outline-offset: -3px; }
.fv-crow__k { display: none; }
.fv-crow__tx { grid-area: tx; display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--fv-muted); min-width: 0; }
.fv-crow__pj { grid-area: pj; min-width: 0; } .fv-crow__pj strong { font-size: 1.02rem; font-weight: 800; }
.fv-crow__ty, .fv-crow__ci, .fv-crow__sy { font-size: .84rem; color: var(--fv-muted); }
.fv-crow__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 0 .35rem; min-width: 0; }
.fv-crow__meta > span + span::before { content: '· '; color: var(--fv-soft); }
.fv-crow__st { grid-area: st; justify-self: end; }
.fv-crow__pr { grid-area: pr; display: flex; align-items: center; gap: .6rem; } .fv-crow__pr .fv-progress__bar { max-width: none; }
.fv-crow__n { font-size: .8rem; font-weight: 700; color: var(--fv-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fv-crow__tm { grid-area: tm; font-size: .78rem; color: var(--fv-soft); align-self: center; }
.fv-crow__rs { grid-area: meta; }
.fv-crow__go { grid-area: go; justify-self: end; display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; font-size: .88rem; color: var(--fv-green); }
.fv-crow.is-reviewer_request .fv-crow__go, .fv-crow.is-needs_completion .fv-crow__go { color: var(--fv-warn); }

@media (min-width: 1024px) {
  .fv-crows__head, .fv-crow__a { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(170px, 1.6fr) .9fr .7fr .8fr minmax(170px, 1.1fr) minmax(120px, .9fr) minmax(120px, .9fr) 128px; grid-template-areas: none; align-items: center; gap: .75rem; padding: .75rem 1.1rem; }
  .fv-crows__head { font-size: .76rem; font-weight: 700; color: var(--fv-muted); background: var(--fv-bg); border-bottom: 1px solid var(--fv-line); }
  .fv-crow__a > span { grid-area: auto !important; }
  .fv-crow__meta { display: contents; } .fv-crow__meta > span + span::before { content: none; }
  .fv-crow__st { justify-self: start; }
  .fv-crow__go { justify-self: end; }
  .fv-crows--rv .fv-crows__head, .fv-crows--rv .fv-crow__a { grid-template-columns: minmax(150px, 1fr) minmax(200px, 1.7fr) .8fr minmax(170px, 1.2fr) minmax(170px, 1.1fr) minmax(130px, .9fr) 110px; }
}

/* field step */
.fv-step__flag--field { background: var(--fv-bg); color: var(--fv-muted); border: 1px dashed var(--fv-line); }
.fv-step__cat { display: inline-flex; align-items: center; }
.fv-reqbox { margin: .4rem 0 .6rem; padding: .65rem .85rem; border-radius: 12px; background: var(--fv-warn-bg); border: 1px solid #EBD9B4; display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.fv-reqbox strong { color: var(--fv-warn); }
.fv-strip { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; gap: .4rem; overflow-x: auto; }
.fv-strip li { flex: 0 0 72px; }
.fv-ask__h { font-size: .95rem; font-weight: 800; margin: .7rem 0 .45rem; }
.fv-answer--muted.is-on { background: #F1F0EC; border-color: var(--fv-muted); color: var(--fv-ink); }
.fv-answer--warn.is-on { background: var(--fv-warn-bg); border-color: var(--fv-warn); color: var(--fv-warn); }
.fv-impacts { display: grid; gap: .4rem; }
.fv-impact { text-align: start; min-height: 46px; padding: .55rem .8rem; border-radius: 10px; border: 1.5px solid var(--fv-line); background: #fff; font: inherit; font-weight: 700; font-size: .9rem; color: var(--fv-ink); cursor: pointer; }
.fv-impact.is-on { border-color: var(--fv-gold); background: var(--fv-gold-l); }
.fv-impact--minor.is-on { border-color: var(--fv-ok); background: var(--fv-ok-bg); color: var(--fv-ok); }
.fv-impact--needs_more.is-on { border-color: var(--fv-warn); background: var(--fv-warn-bg); color: var(--fv-warn); }
.fv-impact--major.is-on { border-color: var(--fv-bad); background: var(--fv-bad-bg); color: var(--fv-bad); }
.fv-impact:focus-visible { outline: 3px solid var(--fv-gold); outline-offset: 2px; }
.fv-ask .fv-label { margin-top: .7rem; }
.fv-note-hint { display: block; font-size: .78rem; color: var(--fv-muted); margin-top: .2rem; }
.fv-note-hint.is-req { color: var(--fv-bad); font-weight: 700; }
.fv-resline { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .7rem 0 .2rem; font-size: .86rem; font-weight: 700; }
.fv-ask__more { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem; }

/* summary */
.fv-tally--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fv-tally--4 .is-ok_note b { color: var(--fv-ok); }
.fv-tally--4 li.is-ok_note { background: #F3F8F4; }
@media (max-width: 479.98px) { .fv-tally--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fv-tally--sm b { font-size: 1.3rem; } .fv-tally--sm { margin: .5rem 0; }
.fv-block { margin: .6rem 0; font-weight: 700; }
.fv-routehint { margin: .5rem 0; padding: .55rem .8rem; border-radius: 10px; font-size: .88rem; font-weight: 700; }
.fv-routehint.is-ok { background: var(--fv-ok-bg); color: var(--fv-ok); } .fv-routehint.is-bad { background: var(--fv-bad-bg); color: var(--fv-bad); }
.fv-restrow__note { display: block; color: var(--fv-ink); margin-top: .15rem; }
.fv-restrow__txt .fv-small { display: inline-flex; align-items: center; flex-wrap: wrap; }
.fv-reqsec { border-color: #EBD9B4; background: #FFFCF6; }

/* report: status banner, send panel, colour dots */
.fv-stbanner { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; padding: .8rem 1rem; border-radius: 14px; border: 1px solid var(--fv-line); background: #fff; margin: 0 0 .8rem; }
.fv-stbanner p { margin: 0; flex: 1 1 260px; font-size: .9rem; }
.fv-stbanner__k { font-size: .78rem; color: var(--fv-muted); font-weight: 700; }
.fv-stbanner.is-bad { border-color: #E8CFC7; background: #FFFaF8; } .fv-stbanner.is-ok { border-color: #D3E6DA; }
.fv-send { margin-top: 5mm; padding: 1rem 1.1rem; border-radius: 14px; border: 1.5px solid #D3E6DA; background: var(--fv-ok-bg); font-family: var(--fv-report-font); }
.fv-send h3 { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 800; }
.fv-send p { margin: 0 0 .5rem; font-size: .9rem; }
.fv-send--bad { border-color: #E8CFC7; background: var(--fv-bad-bg); }
.fv-send__list { margin: 0 0 .6rem; padding-inline-start: 1.1rem; font-size: .88rem; }
.fv-send .fv-btn { margin-top: .6rem; }
.fvr-cd { display: inline-block; width: 2mm; height: 2mm; border-radius: 50%; margin-inline-end: 1.2mm; vertical-align: .1em; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fvr-card__t { display: flex; align-items: flex-start; justify-content: space-between; gap: 3mm; border-inline-start: 1.2mm solid var(--mk, var(--fv-gold)); padding-inline-start: 2.5mm; }
.fvr-card__t > div { min-width: 0; }
.fvr-card__res { flex: 0 0 auto; white-space: nowrap; font-size: 9pt; }
.fvr-route { margin: 2.5mm 0 0; font-size: 9.5pt; color: var(--mut, #6B675F); }
.fvr-route b { color: var(--ink, #1B1B18); }
@media print { .fv-stbanner, .fv-send { display: none !important; } }

/* reviewer final check */
.fv-rvw__bar { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 1rem; }
.fv-rvw__badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 100px; background: var(--fv-green); color: #fff; font-weight: 800; font-size: .82rem; }
body.fv-final-mode .fv-rvw__badge { background: var(--fv-ink2); }
.fv-rvw__head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.fv-rvw__head .fv-h1 { margin: .1rem 0; }
.fv-rvw__grid { display: grid; gap: 1rem; }
.fv-rvw__main, .fv-rvw__side { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1200px) { .fv-rvw__grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .fv-rvw__side { position: sticky; top: 90px; } }
@media (min-width: 1700px) { .fv-rvw__grid { grid-template-columns: minmax(0, 1fr) 400px; } }
.fv-rvw__k { display: block; font-size: .78rem; font-weight: 700; color: var(--fv-muted); }
.fv-rvw__big { display: block; font-size: 1.7rem; font-weight: 800; color: var(--fv-ok); line-height: 1.25; }
.fv-rvw__sum { border-top: 1px solid var(--fv-line2); padding-top: .6rem; margin-top: .4rem; } .fv-rvw__sum p { margin: .2rem 0 0; }
.fv-rvw__img { width: 100%; height: auto; display: block; border-radius: 10px; }
.fv-rvw .fv-cmp { display: grid; grid-template-columns: 1fr; gap: .7rem; }
@media (min-width: 768px) { .fv-rvw .fv-cmp { grid-template-columns: 1fr 1fr; align-items: start; } }
.fv-rvcs { display: grid; gap: .9rem; }
@media (min-width: 1600px) { .fv-rvcs { grid-template-columns: 1fr 1fr; } }
.fv-rvc { border: 1px solid var(--fv-line); border-radius: 14px; padding: .8rem .9rem; background: #fff; border-inline-start: 4px solid var(--mk, var(--fv-green)); min-width: 0; }
.fv-rvc header { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; margin-bottom: .55rem; }
.fv-rvc h3 { font-size: 1rem; font-weight: 800; margin: 0; flex: 1 1 200px; }
.fv-rvc__cat { width: 100%; font-size: .76rem; color: var(--fv-muted); font-weight: 700; display: inline-flex; align-items: center; }
.fv-rvc__tag { font-size: .72rem; font-weight: 800; padding: .12rem .5rem; border-radius: 100px; background: var(--fv-gold-l); color: var(--fv-gold-d); }
.fv-rvc__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .6rem 0 0; }
.fv-rvc__facts dt { font-size: .74rem; color: var(--fv-muted); font-weight: 700; } .fv-rvc__facts dd { margin: .15rem 0 0; font-size: .86rem; font-weight: 600; }
@media (max-width: 599.98px) { .fv-rvc__facts { grid-template-columns: 1fr; } }
.fv-rvc__note { margin: .5rem 0 0; font-size: .88rem; } .fv-rvc__ai { margin: .3rem 0 0; font-size: .8rem; color: var(--fv-muted); }
.fv-rvw__all summary { cursor: pointer; font-weight: 800; }
.fv-rvw__tab { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .84rem; display: block; overflow-x: auto; }
.fv-rvw__tab th, .fv-rvw__tab td { padding: .45rem .5rem; border-bottom: 1px solid var(--fv-line2); text-align: start; vertical-align: middle; }
.fv-rvw__tab th { font-size: .74rem; color: var(--fv-muted); }
.fv-rvw__acts { display: flex; flex-direction: column; gap: .55rem; } .fv-rvw__acts h2 { margin: 0; } .fv-rvw__acts p { margin: 0; }
.fv-btn--warnline { border-color: #EBD9B4 !important; color: var(--fv-warn) !important; }
.fv-rvw__q { margin: 0; padding-inline-start: 1.1rem; font-size: .88rem; display: grid; gap: .3rem; }
.fv-checks { border: 0; padding: 0; margin: .4rem 0 .6rem; display: grid; gap: .3rem; max-height: 40vh; overflow-y: auto; }
.fv-check { display: flex; align-items: flex-start; gap: .55rem; padding: .45rem .6rem; border: 1px solid var(--fv-line); border-radius: 8px; cursor: pointer; font-size: .9rem; }
.fv-check input { width: 18px; height: 18px; accent-color: var(--fv-green); margin-top: .15rem; flex: 0 0 auto; }
.fv-check:has(input:checked) { border-color: var(--fv-green); background: var(--fv-ok-bg); }
.fv-fout h2 { margin: 0 0 .4rem; } .fv-fout__st { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 .5rem; }
.fv-fout__steps { list-style: none; margin: .3rem 0 .7rem; padding: 0; display: grid; gap: .25rem; font-size: .84rem; }
.fv-fout__steps li { display: flex; gap: .45rem; align-items: center; color: var(--fv-muted); }
.fv-fout__steps li.is-done { color: var(--fv-ok); } .fv-fout__steps li.is-failed { color: var(--fv-bad); font-weight: 700; } .fv-fout__steps li.is-running { color: var(--fv-gold-d); font-weight: 700; }
.fv-fout__links { display: grid; gap: .4rem; margin-bottom: .5rem; }

/* read-only final page */
.fv-final { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--fv-line); border-radius: 18px; padding: 1.2rem 1.3rem 1.4rem; box-shadow: var(--fv-shadow); }
.fv-final__head { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--fv-line); padding-bottom: .9rem; margin-bottom: 1rem; }
.fv-final__head > div { flex: 1 1 auto; min-width: 0; text-align: center; }
.fv-final__head img { height: 44px; width: auto; flex: 0 0 auto; }
.fv-final__head img + div + img { height: 34px; }
.fv-final__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.2rem; margin: 0 0 1rem; }
.fv-final__meta dt { font-size: .78rem; color: var(--fv-muted); font-weight: 700; } .fv-final__meta dd { margin: .2rem 0 0; font-weight: 600; }
@media (min-width: 900px) { .fv-final__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fv-final__dec { font-size: 1.15rem; font-weight: 800; } .fv-final__dec.is-ok { color: var(--fv-ok); } .fv-final__dec.is-bad { color: var(--fv-bad); }
.fv-final__note { background: var(--fv-bg); border-radius: 10px; padding: .6rem .8rem; }
.fv-final__btns { display: grid; gap: .6rem; margin: .8rem 0; }
@media (min-width: 768px) { .fv-final__btns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .fv-final__head img { height: 30px; } .fv-final__head img + div + img { height: 24px; } }
span.fv-btn.is-disabled { opacity: .5; pointer-events: none; }

.fvr-ctab th:nth-child(6) { width: 30mm; } .fvr-ctab th:nth-child(5) { width: 34mm; }
.fv-crow__tx .fv-mono { white-space: nowrap; }

/* ===================================================================== v17 — marker polish (verification map, not a debug overlay) */
.fv-board { border-radius: 12px; }
.fv-mk { width: 28px; height: 28px; border: 2px solid #FFFDF8; background: var(--mk, #1F5C40); color: var(--mk-ink, #fff); font-size: 12px; font-weight: 700; letter-spacing: 0;
  box-shadow: 0 1px 3px rgba(20, 18, 14, .38), 0 0 0 .5px rgba(20, 18, 14, .18); transition: opacity .15s ease, width .15s ease, height .15s ease, box-shadow .15s ease, scale .15s ease; font-variant-numeric: tabular-nums; }
.fv-mk > b { font-weight: 700; line-height: 1; display: block; text-align: center; }
.fv-mk.is-approx { border-style: dashed; }
.fv-mk.is-dim { opacity: .4; }
.fv-mk.is-current { width: 34px; height: 34px; font-size: 14px; z-index: 7; box-shadow: 0 0 0 2px var(--mk, #1F5C40), 0 3px 10px rgba(20, 18, 14, .4); }
.fv-mk.is-focus { z-index: 6; box-shadow: 0 0 0 2px var(--mk, #1F5C40), 0 2px 6px rgba(20, 18, 14, .35); }
.fv-mk.is-expanded { z-index: 6; }
.fv-mk[hidden], .fv-mkc[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) { .fv-mk:hover, .fv-mkc:hover { scale: 1.12; z-index: 8; } }
.fv-mk:focus-visible, .fv-mkc:focus-visible { outline: 2.5px solid #FFFDF8; outline-offset: 2px; box-shadow: 0 0 0 5px var(--fv-gold); }
/* cluster: a compact count with a subtle stacked look */
.fv-mkc { position: absolute; z-index: 5; transform: translate(-50%, -50%); width: 32px; height: 32px; padding: 0; margin: 0; box-sizing: border-box; border-radius: 50%; border: 2px solid #FFFDF8;
  background: #2F2F2C; color: #fff; font: inherit; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 3px -3px 0 -1px #FFFDF8, 3px -3px 0 1px rgba(47, 47, 44, .55), 0 1px 4px rgba(20, 18, 14, .4); transition: opacity .15s ease, scale .15s ease; }
.fv-mkc::before { content: ''; position: absolute; inset: -9px; border-radius: 50%; }
.fv-mkc.is-dim { opacity: .4; }
/* micro-stem: only when a marker had to move away from its element */
.fv-stem { position: absolute; z-index: 3; height: 2px; margin-top: -1px; transform-origin: 0 50%; background: #FFFDF8; box-shadow: 0 0 0 .5px rgba(20, 18, 14, .35); pointer-events: none; transition: opacity .15s ease; }
.fv-stem::after { content: ''; position: absolute; right: -3px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--mk, #1F5C40); box-shadow: 0 0 0 1.5px #FFFDF8; }
.fv-stem.is-dim { opacity: .35; }
/* tooltip: number · name · category */
.fv-mktip { position: absolute; z-index: 20; max-width: 240px; pointer-events: none; background: rgba(27, 27, 24, .94); color: #fff; border-radius: 8px; padding: .35rem .6rem; font-size: 12px; line-height: 1.45;
  display: grid; grid-template-columns: auto 1fr; gap: 0 .45rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.fv-mktip b { grid-row: span 2; align-self: center; font-size: 13px; } .fv-mktip span { font-weight: 600; } .fv-mktip small { color: rgba(255, 255, 255, .7); font-size: 11px; }
.fv-board .fv-reg { border-color: var(--mk, var(--fv-gold)); background: color-mix(in srgb, var(--mk, #B98A3E) 12%, transparent); border-width: 2px; box-shadow: 0 0 0 1px rgba(255, 253, 248, .85); transition: opacity .15s ease; }
@media (max-width: 599.98px) { .fv-mk { width: 25px; height: 25px; font-size: 11px; } .fv-mk.is-current { width: 31px; height: 31px; font-size: 13px; } .fv-mkc { width: 29px; height: 29px; font-size: 11px; } }
/* plan side: category rows tied to the marker colours */
.fv-cat__row { padding: .7rem .9rem; min-height: 50px; transition: background-color .15s ease; }
.fv-cat .fv-cdot { width: 10px; height: 10px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--mk) 35%, transparent); }
.fv-cat:not(.is-empty):not(.is-field) .fv-cat__n { min-width: 26px; text-align: center; font-size: .82rem; font-weight: 800; color: var(--mk-ink, #fff); background: var(--mk, var(--fv-green)); border-radius: 100px; padding: .18rem .55rem; }
.fv-cat.is-field .fv-cat__n { font-size: .74rem; font-weight: 700; color: var(--fv-muted); background: transparent; border: 1px dashed #CFCAC0; border-radius: 100px; padding: .18rem .55rem; }
.fv-cat.is-field .fv-cat__name { color: var(--fv-ink); }
.fv-cat.is-open { background: color-mix(in srgb, var(--mk) 5%, #fff); }
.fv-cat.is-open > .fv-cat__row { box-shadow: inset 3px 0 0 var(--mk); }
.fv-item { transition: border-color .15s ease, background-color .15s ease; }
.fv-item.is-current { border-color: var(--mk, var(--fv-gold)); background: color-mix(in srgb, var(--mk, #B98A3E) 9%, #fff); }
.fv-item__n { min-width: 24px !important; height: 24px !important; border-radius: 12px !important; background: var(--mk) !important; border-color: var(--mk) !important; color: var(--mk-ink, #fff) !important; font-size: .74rem !important; }
.fv-plan { gap: 1.1rem; }
.fv-plan__side .fv-pv { border-inline-start: 3px solid var(--mk, var(--fv-green)); transition: border-color .15s ease; }
.fv-pv__n { color: var(--mk-ink, #fff); }
.fv-mk.is-backdrop { opacity: .4; }
.fv-mk.is-expanded { box-shadow: 0 0 0 2px var(--mk, #1F5C40), 0 2px 6px rgba(20, 18, 14, .35); }

/* ---- final result screen (v19): one presentation-ready page. Own class names (the older .fv-final rule is a flex row). */
.fv-fin2 { display: block; max-width: 1080px; margin: 0 auto; background: #fff; border: 1px solid var(--fv-line); border-radius: 18px; padding: 1.4rem 1.6rem 1.6rem; box-shadow: var(--fv-shadow); gap: 0; align-items: stretch; }
.fv-fin2__head { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--fv-line); padding-bottom: 1rem; margin-bottom: 1.1rem; }
.fv-fin2__head > div { flex: 1 1 auto; min-width: 0; text-align: center; display: flex; flex-direction: column; gap: .2rem; }
.fv-fin2__head img { height: 46px; width: auto; flex: 0 0 auto; } .fv-fin2__head img:last-child { height: 36px; }
.fv-fin2__head .fv-h1 { margin: .1rem 0; font-size: 1.6rem; }
.fv-fin2__sub { color: var(--fv-muted); font-weight: 600; }
.fv-fin2__dec { border-radius: 14px; padding: 1rem 1.25rem; background: var(--fv-bg); border-inline-start: 6px solid var(--fv-muted); margin-bottom: 1.2rem; }
.fv-fin2__dec > span { font-size: .8rem; font-weight: 700; color: var(--fv-muted); }
.fv-fin2__dec b { display: block; font-size: 1.55rem; line-height: 1.3; margin: .15rem 0 .35rem; }
.fv-fin2__dec p { margin: 0 0 .3rem; font-size: 1rem; } .fv-fin2__dec small { color: var(--fv-muted); }
.fv-fin2__dec.is-ok { background: #EAF4EE; border-color: #1E6B45; } .fv-fin2__dec.is-ok b { color: #1E6B45; }
.fv-fin2__dec.is-bad { background: #F7EAE6; border-color: #A13D2D; } .fv-fin2__dec.is-bad b { color: #A13D2D; }
.fv-fin2__sec { margin-top: 1.3rem; } .fv-fin2__sec > h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 .65rem; }
.fv-fin2__kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.fv-fin2__kpis > div { border-radius: 12px; padding: .75rem .5rem; text-align: center; background: var(--fv-bg); border: 1px solid var(--fv-line); }
.fv-fin2__kpis b { display: block; font-size: 1.7rem; line-height: 1.1; } .fv-fin2__kpis span { font-size: .82rem; font-weight: 700; color: var(--fv-muted); }
.fv-fin2__kpis .is-ok b { color: #1E6B45; } .fv-fin2__kpis .is-info b { color: #9A6B00; } .fv-fin2__kpis .is-bad b { color: #A13D2D; } .fv-fin2__kpis .is-warn b { color: #8A5A00; }
.fv-fin2__kpis .is-zero b { color: #B8B3A8; }
.fv-fin2__duo { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fv-fin2__duo figure { margin: 0; } .fv-fin2__duo figcaption { text-align: center; font-weight: 700; margin-top: .35rem; }
.fv-fin2 .fvr-shot { aspect-ratio: 4 / 3; border-radius: 12px; }
.fv-fin2__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fv-fin2__notes li { background: var(--fv-bg); border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.fv-fin2__notes b { font-size: .95rem; } .fv-fin2__notes span { font-size: .92rem; }
.fv-fin2__ai { font-size: .8rem; color: var(--fv-muted); margin: .5rem 0 0; }
.fv-fin2__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.fv-fin2__cards .fvr-card { padding: .8rem .9rem; gap: .5rem; border-radius: 12px; }
.fv-fin2__cards .fvr-card__t { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.fv-fin2__cards .fvr-card__t h3 { font-size: 1rem; } .fv-fin2__cards .fvr-card__t span { font-size: .75rem; }
.fv-fin2__cards .fvr-pair { gap: .5rem; } .fv-fin2__cards .fvr-pair figcaption { font-size: .78rem; }
.fv-fin2__cards .fvr-shot { aspect-ratio: 4 / 3; border-radius: 8px; }
.fv-fin2__cards .fvr-res { gap: .5rem; } .fv-fin2__cards .fvr-res__insp b { font-size: .95rem; } .fv-fin2__cards .fvr-res__insp p, .fv-fin2__cards .fvr-gist, .fv-fin2__cards .fvr-lim { font-size: .85rem; margin: 0; }
.fv-fin2__cards .fvr-res__insp, .fv-fin2__cards .fvr-res__ai { padding: .45rem .6rem; border-radius: 8px; } .fv-fin2__cards .fvr-b { font-size: .8rem; padding: .15rem .55rem; }
.fv-fin2__cards .fvr-k { font-size: .72rem; }
.fv-fin2__btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-bottom: .5rem; }
.fv-fin2__btns .fv-btn { width: 100%; justify-content: center; min-height: 52px; }
@media (max-width: 899.98px) { .fv-fin2__cards, .fv-fin2__btns { grid-template-columns: 1fr 1fr; } .fv-fin2__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599.98px) {
  .fv-fin2 { padding: 1rem .85rem 1.1rem; border-radius: 14px; }
  .fv-fin2__head img { height: 30px; } .fv-fin2__head img:last-child { height: 24px; } .fv-fin2__head .fv-h1 { font-size: 1.25rem; }
  .fv-fin2__dec b { font-size: 1.2rem; }
  .fv-fin2__duo, .fv-fin2__cards { grid-template-columns: 1fr; }
  .fv-fin2__cards .fvr-pair { grid-template-columns: 1fr 1fr; } .fv-fin2__cards .fvr-res { grid-template-columns: 1fr; }
  .fv-fin2__btns { grid-template-columns: 1fr 1fr; }
}
/* breadcrumb on the service page (portal pattern: الرئيسية ← الخدمات الإلكترونية ← التحقق الميداني) */
.fv-crumbs.breadcrumb { margin: 0 0 .9rem !important; padding: 0; font-size: .9rem; background: none; }
@media print { .fv-crumbs { display: none !important; } }
.fv-crumbs .breadcrumb-item.active { color: var(--fv-ink, #1B1B18); font-weight: 600; }
body.fv-final-mode .fv-rvw__bar { max-width: 1080px; margin-inline: auto; }
.fv-page .container:has(> .fv-field) > .fv-crumbs { display: none; }
/* final screen: frames follow the image (no letterbox bars); grid cells may shrink so nothing is clipped */
.fv-fin2__duo .fvr-shot, .fv-fin2__cards .fvr-shot { aspect-ratio: auto; height: auto; background: none; }
.fv-fin2__duo .fvr-shot .fv-photo__fit, .fv-fin2__cards .fvr-shot .fv-photo__fit { position: relative; inset: auto; height: auto; }
.fv-fin2__duo .fvr-shot img, .fv-fin2__cards .fvr-shot img { height: auto; }
.fv-fin2__duo > figure, .fv-fin2__cards > *, .fv-fin2__cards .fvr-pair > figure, .fv-fin2__cards .fvr-res > * { min-width: 0; }
.fv-fin2__cards .fvr-card__t > div { min-width: 0; } .fv-fin2__cards .fvr-card__res { flex: 0 0 auto; white-space: nowrap; }
.fv-fin2__cards .fvr-pair { align-items: start; }
.fv-fin2__cards .fvr-card > * { min-width: 0; max-width: 100%; }
.fv-fin2__cards .fvr-card__t h3 { white-space: normal; overflow-wrap: anywhere; }
/* final screen cards: show the inspector's note and the analysis note in full (the PDF keeps its one-line limits) */
.fv-fin2__cards .fvr-card__t h3, .fv-fin2__cards .fvr-res__insp p, .fv-fin2__cards .fvr-card > .fvr-lim { white-space: normal; overflow: visible; text-overflow: clip; }
.fv-fin2__cards .fvr-card > .fvr-gist { display: block; -webkit-line-clamp: unset; overflow: visible; }
.fv-fin2__drive { margin: .2rem 0 .4rem; font-size: .92rem; display: flex; flex-wrap: wrap; gap: .3rem .45rem; align-items: baseline; }
.fv-fin2__drive a { font-weight: 700; color: var(--fv-green, #14573A); }
