/* The report the customer sees, in the email frame's brand. Used by the
   customer's page and by the preview in the app; everything is scoped to
   .view-card so it cannot touch the app around it. */
.view-card { --black: #0e0f11; --red: #d9212b; --yellow: #f2b705; --ink: #1f2124; --muted: #6b6f75; --paper: #fffdfa; --cream: #f4f1ec; }
.view-card { color: var(--ink); font-family: 'DM Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 28px rgba(14,15,17,0.14); }
.view-head { background: var(--black); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.view-brand { color: #fff; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-style: italic; font-size: 26px; text-transform: uppercase; }
.view-logo { width: 150px; height: auto; display: block; }
.view-plate { display: inline-block; background: #f6d33c; color: #14171b; border: 2px solid #1b1d20; border-radius: 8px; padding: 3px 12px; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: 2.5px; white-space: nowrap; }
.view-stripe { height: 10px; background: linear-gradient(to bottom, var(--yellow) 0 50%, var(--red) 50% 100%); }
.view-card *, .view-card { box-sizing: border-box; }
.view-body { padding: 26px 22px 10px; }
.view-body h1 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1.05; margin: 0 0 8px; }
.view-message { border-left: 3px solid var(--red); padding: 2px 0 2px 14px; font-size: 16px; line-height: 1.55; margin: 0 0 24px; white-space: pre-wrap; }
.view-contact { border-top: 1px solid #e4e0d9; padding: 18px 0 8px; text-align: center; }
.view-contact p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.view-btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; padding: 12px 30px; border-radius: 10px; }
.view-foot { background: var(--cream); border-top: 1px solid #e4e0d9; padding: 14px 22px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.view-from { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.view-car-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; background: var(--cream); border-radius: 12px; padding: 16px 18px; margin: 0 0 20px; }
.view-car-name { grid-column: 1 / -1; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.1; }
.view-fact { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.view-fact.wide { grid-column: 1 / -1; }
.view-fact-label { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.view-fact-value { font-size: 15px; overflow-wrap: anywhere; }
.view-section { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.view-section-title { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 0.6px; text-transform: uppercase; }
.view-section-count { font-size: 13px; color: var(--muted); }
.view-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.view-tile { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.view-tile .mv-face { border-radius: 12px; }
.view-tile:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 12px; }
.view-tile-cap { font-size: 13px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.view-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 22px; }
@media (min-width: 560px) { .view-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* A square of a photo or video: the picture filling it, a play badge and
   the length on a video. Shared by the report's grid, the viewer's strip
   and the job's card. */
.mv-face { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #e4e0d9; }
.mv-face.video { background: #1f2124; }
.mv-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mv-badge { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(14,15,17,0.68); display: flex; align-items: center; justify-content: center; }
.mv-badge.large { width: 48px; height: 48px; }
.mv-badge .mv-glyph { width: 45%; height: 45%; margin-left: 8%; }
.mv-length { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(14,15,17,0.72); color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mv-glyph { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mv-glyph.filled { fill: #fff; stroke: none; }

/* The viewer itself: black, full screen, over everything. */
html.mv-shown, html.mv-shown body { overflow: hidden; }
.mv { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #0b0c0e; color: #fff; font-family: 'DM Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.mv-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px 18px; }
.mv-count { flex: 1; font-size: 15px; font-weight: 600; }
.mv-tools { display: flex; gap: 8px; }
.mv-tool { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,0.12); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.mv-tool:hover { background: rgba(255,255,255,0.22); }
.mv-tool:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mv-close, .mv-step { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); cursor: pointer; }
.mv-close:hover, .mv-step:hover { background: rgba(255,255,255,0.22); }
.mv-close:focus-visible, .mv-step:focus-visible, .mv-thumb:focus-visible, .mv-poster:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mv-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.mv-frame { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.mv-photo { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-select: none; }
.mv-video { display: block; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; max-height: 100%; border: 0; border-radius: 12px; background: #000; }
.mv-video.portrait { aspect-ratio: 9 / 16; width: auto; height: 100%; max-width: 100%; }
.mv-poster { position: relative; display: block; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; max-height: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #1f2124; cursor: pointer; }
.mv-poster.portrait { aspect-ratio: 9 / 16; width: auto; height: 100%; max-width: 100%; }
.mv-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-poster.waiting { cursor: default; }
.mv-play { position: absolute; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%; background: rgba(217,33,43,0.92); display: flex; align-items: center; justify-content: center; }
.mv-play .mv-glyph { width: 26px; height: 26px; margin-left: 4px; }
.mv-poster-note, .mv-wait { position: absolute; inset: auto 0 0 0; padding: 12px; font-size: 13px; line-height: 1.4; text-align: center; background: rgba(14,15,17,0.75); }
.mv-wait { position: static; border-radius: 12px; }
.mv-step { position: absolute; top: 50%; margin-top: -22px; }
.mv-step.prev { left: 8px; }
.mv-step.next { right: 8px; }
.mv-info { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px 6px; min-height: 58px; }
.mv-cap { font-size: 16px; font-weight: 600; }
.mv-meta { font-size: 13px; color: rgba(255,255,255,0.6); }
.mv-strip { display: flex; gap: 8px; padding: 10px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.mv-strip::-webkit-scrollbar { display: none; }
.mv-thumb { flex: none; width: 54px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; opacity: 0.5; transition: opacity 0.15s; }
.mv-thumb .mv-face { border-radius: 8px; }
.mv-thumb .mv-badge { width: 22px; height: 22px; }
.mv-thumb .mv-length { display: none; }
.mv-thumb.on { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.mv-hint { text-align: center; font-size: 12px; color: rgba(255,255,255,0.45); padding: 2px 0 14px; }
@media (hover: hover) and (pointer: fine) { .mv-hint { display: none; } }

