/* Vehicle assessment — glob.ge visual language. Noto Sans Georgian, ink #222,
   greys, and one accent: brand red #ca3438, used only for heavy damage and
   "damaged" states. No orange or yellow. Light only, like glob.ge.
   Type scale 13 / 15 / 17 / 20 / 26. Spacing on an 8px grid. */
.gr-report {
  min-width: 0;
  --ink: #222222;
  --ink-2: #4a4e57;
  --ink-3: #7b7f87;
  --line: #e6e6e6;
  --line-2: #d4d6d9;
  --soft: #f6f6f6;
  --red: #ca3438;
  --red-soft: #f7e3e3;
  --g1: #d9dbdf;
  --g2: #a3a8b0;
  background: #fff;
  color: var(--ink);
  font-family: "Noto Sans Georgian", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  box-shadow: 5px 5px 10px 5px #f2f2f2;
  border: 1px solid #efefef;
}
.gr-report * { box-sizing: border-box; }
.gr-report h2, .gr-report h3, .gr-report p, .gr-report ul, .gr-report dl, .gr-report dd, .gr-report figure { margin: 0; }
.gr-report h2 { border: 0; padding: 0; }
.gr-report a { color: var(--ink); }
.gr-muted { color: var(--ink-3); }

/* Header */
.gr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 32px 32px 24px; border-bottom: 1px solid var(--line); }
.gr-doc { font-size: 13px; color: var(--ink-3); }
.gr-report .gr-car-name { font-size: 26px; line-height: 1.3; font-weight: 700; margin: 4px 0; overflow-wrap: anywhere; }
.gr-sub { color: var(--ink-3); font-size: 13px; }
.gr-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gr-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 24px 32px; }
.gr-hero { background: var(--soft); aspect-ratio: 4 / 3; overflow: hidden; }
.gr-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-facts { display: grid; align-content: start; }
.gr-facts > div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gr-facts dt { color: var(--ink-3); font-size: 13px; padding-top: 2px; }
.gr-facts dd { overflow-wrap: anywhere; }
.gr-strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 32px 24px; }
.gr-strip button { flex: none; width: 96px; height: 72px; border: 0; padding: 0; background: var(--soft) center / cover no-repeat; cursor: zoom-in; }
.gr-strip button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Sections */
.gr-sec { padding: 32px; border-top: 1px solid var(--line); }
.gr-sec > h2 { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.gr-sec > h2 small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 8px; }
.gr-sub-h { font-size: 15px; font-weight: 600; margin: 24px 0 8px !important; }
.gr-lead { color: var(--ink-2); margin-bottom: 16px !important; max-width: 72ch; }
.gr-note { margin-top: 16px !important; color: var(--ink-2); }

/* Assessment */
.gr-verdict { padding: 16px 20px; background: var(--soft); margin-bottom: 16px; }
.gr-verdict-word { font-size: 20px; font-weight: 700; line-height: 1.4; }
.gr-v-stop .gr-verdict-word { color: var(--red); }
.gr-verdict-why { color: var(--ink-2); margin-top: 2px !important; }
.gr-headline { font-size: 17px; font-weight: 600; min-height: 1.5em; }
.gr-clean { margin-top: 8px !important; color: var(--ink-2); }

/* Tables */
.gr-table-wrap { overflow-x: auto; }
.gr-table { width: 100%; border-collapse: collapse; }
.gr-table th, .gr-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.gr-table thead th { font-size: 13px; font-weight: 400; color: var(--ink-3); border-bottom: 1px solid var(--line-2); white-space: nowrap; padding-top: 0; }
.gr-table tbody th { font-weight: 600; }

/* Condition by system: one tile each */
.gr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.gr-tile { display: grid; gap: 2px; align-content: start; padding: 12px 16px; border: 1px solid var(--line); }
.gr-tile-name { font-size: 13px; color: var(--ink-3); }
.gr-tile .gr-state { font-size: 15px; }
.gr-tile small { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.gr-tile-bad { border-color: #efc4c5; background: #fdf6f6; }

/* Four states: ok / bad / check / unknown */
.gr-state { display: inline-flex; align-items: center; gap: 8px; }
.gr-state i { flex: none; width: 10px; height: 10px; display: inline-block; }
.gr-state-ok i { border-radius: 50%; background: var(--g2); }
.gr-state-bad { color: var(--red); font-weight: 600; }
.gr-state-bad i { background: var(--red); }
.gr-state-check { font-weight: 600; }
.gr-state-check i { border: 2px solid var(--ink); border-radius: 50%; }
.gr-state-unknown { color: var(--ink-3); }
.gr-state-unknown i { border: 2px dashed var(--g2); border-radius: 50%; }

/* Damage */
/* Car drawings: left side, top, right side */
.gr-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gr-view { min-width: 0; }
.gr-view figcaption { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.cv { display: block; width: 100%; height: auto; overflow: visible; }
.cv-p { fill: #fff; stroke: #868b93; stroke-width: 1.3; stroke-linejoin: round; }
.cv-glassy, .cv-glass { fill: #eaeef2; }
.cv-glass { stroke: #868b93; stroke-width: 1.1; stroke-linejoin: round; }
.cv-wheel circle { fill: #34373c; }
.cv-wheel .cv-rim { fill: #dadde1; }
.cv-wheel .cv-hub { fill: #868b93; }
.cv-tyre { fill: #3a3d42; }
.cv-p.cv-d3 { fill: #f2c4c5; stroke: var(--red); stroke-width: 1.6; }
.cv-p.cv-d2 { fill: #f9e1e1; stroke: var(--red); stroke-width: 1.4; }
.cv-p.cv-d1 { fill: #e9ebee; stroke: #6b7078; }
.cv-wheel.cv-d3 circle:first-child, .cv-wheel.cv-d2 circle:first-child { fill: var(--red); }
.cv-pin circle { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.cv-pin-heavy circle { fill: var(--red); }
.cv-pin text { fill: #fff; font-size: 14px; font-weight: 700; text-anchor: middle; font-family: Arial, Helvetica, sans-serif; }
.cv-pin.gr-lit circle { stroke-width: 4; }
.cv-cap { fill: var(--ink-3); font-size: 13px; }
.gr-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 13px; color: var(--ink-3); margin: 8px 0 24px !important; }
.gr-legend span { white-space: nowrap; }
.gr-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; border: 1px solid; }
.gr-legend i.gr-d3 { background: #f2c4c5; border-color: var(--red); }
.gr-legend i.gr-d2 { background: #f9e1e1; border-color: var(--red); }
.gr-legend i.gr-d1 { background: #e9ebee; border-color: #6b7078; }
.gr-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 12px; color: #fff; font-size: 12px; font-weight: 700; background: var(--ink); }
.gr-num-heavy { background: var(--red); }
.gr-damage td:first-child { width: 40px; }
.gr-crop-cell { width: 104px; }
.gr-crop { display: block; width: 96px; height: 72px; background: var(--soft) center / cover no-repeat; }
.gr-crop-whole { background-size: cover; background-position: center; opacity: .9; }
.gr-archive { margin-top: 6px !important; font-size: 13px; color: var(--red); }
.gr-crop-none { background: repeating-linear-gradient(135deg, var(--soft) 0 6px, #fff 6px 12px); }
.gr-part-cell { font-weight: 600; min-width: 140px; }
.gr-part-cell small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.gr-damage td:nth-child(5) { white-space: nowrap; }
.gr-sev { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-size: 13px; }
.gr-sev i { width: 5px; height: 12px; background: var(--g1); display: inline-block; }
.gr-sev i:last-of-type { margin-right: 6px; }
.gr-sev1 i:nth-child(1), .gr-sev2 i:nth-child(-n+2) { background: var(--ink); }
.gr-sev3 i { background: var(--red); }
.gr-sev3 { color: var(--red); font-weight: 600; }
.gr-scale { margin-top: 16px !important; font-size: 13px; color: var(--ink-3); }
.gr-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gr-photo { scroll-margin-top: 24px; }
.gr-photo-img { position: relative; background: #111; cursor: zoom-in; }
.gr-photo-img img { display: block; width: 100%; height: auto; }
.gr-photo-img svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gr-mark path { fill: var(--red); fill-opacity: .07; stroke: var(--red); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .95)); transition: fill-opacity .15s; }
.gr-mark-heavy path { fill-opacity: .16; }
.gr-mark.gr-lit path { fill-opacity: .36; stroke-width: 3; }
.gr-photo-img .gr-num { position: absolute; transform: translate(-50%, -50%); min-width: 26px; height: 26px; border-radius: 13px; font-size: 13px; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .35); transition: transform .15s; }
.gr-photo-img .gr-num.gr-lit { transform: translate(-50%, -50%) scale(1.15); }
tr.gr-lit > td { background: var(--soft); }
.gr-photo figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; font-size: 13px; color: var(--ink-2); }
.gr-photo figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.gr-num-sm { min-width: 20px; height: 20px; border-radius: 10px; font-size: 11px; }

/* What photos cannot show */
.gr-check td:nth-child(2) { min-width: 140px; }
.gr-check td:nth-child(3), .gr-check td:nth-child(4) { color: var(--ink-2); min-width: 200px; }
.gr-risk { white-space: nowrap; font-size: 13px; }
.gr-risk-stop { color: var(--red); font-weight: 600; }
.gr-risk-warn { color: var(--ink); font-weight: 600; }
.gr-risk-note { color: var(--ink-3); }

/* Costs */
.gr-costs th { width: 24%; }
.gr-cost-val { width: 20%; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gr-costs td:last-child { color: var(--ink-2); }
.gr-costs tr:first-child > * { border-top: 1px solid var(--line); }

/* Next step: a manager calls every customer */
.gr-next { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding: 24px 32px; background: var(--soft); border-top: 1px solid var(--line); }
.gr-next h2 { font-size: 17px; font-weight: 600; }
.gr-next p { color: var(--ink-2); max-width: 60ch; }
.gr-next-call { display: grid; justify-items: end; gap: 0; }
.gr-next-call span { font-size: 13px; color: var(--ink-3); }
.gr-report .gr-phone { font-size: 20px; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gr-report .gr-phone:hover { color: var(--red); }

.gr-foot { padding: 16px 32px 24px; font-size: 13px; color: var(--ink-3); }

/* Explanations on tap / hover */
.gr-term { position: relative; border-bottom: 1px dotted currentColor; cursor: help; outline: none; }
.gr-tip { display: none; position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: min(300px, 76vw); padding: 10px 12px; background: #222; color: #fff; font-size: 13px; font-weight: 400; line-height: 1.55; }
.gr-term:hover .gr-tip, .gr-term:focus .gr-tip { display: block; }

.gr-shimmer { display: inline-block; min-width: 60%; min-height: 1.1em; background: linear-gradient(90deg, #f1f1f1, #e4e4e4, #f1f1f1); background-size: 200% 100%; animation: gr-sh 1.2s linear infinite; }
@keyframes gr-sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .gr-shimmer { animation: none; } }
/* Marks still being drawn on the server. */
.gr-marks-pending { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #f4f4f4; margin-bottom: 8px; }
.gr-marks-pending b { display: block; font-size: 15px; }
.gr-marks-pending p { margin: 2px 0 0; color: #4a4e57; font-size: 14px; }
.gr-spin { flex: none; width: 18px; height: 18px; margin-top: 3px; border: 2px solid #e3e4e6; border-top-color: #ca3438; border-radius: 50%; animation: gr-spin .9s linear infinite; }
@keyframes gr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gr-spin { animation: none; } }
@media print { .gr-marks-pending { display: none; } }

.gr-full { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.gr-full > img, .gr-full .gr-photo-img { max-width: 96vw; max-height: 92vh; }
.gr-full .gr-photo-img img { max-height: 92vh; width: auto; max-width: 96vw; }
.gr-full > button { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* Tablets */
@media (max-width: 860px) {
  .gr-intro { grid-template-columns: 1fr; gap: 16px; }
  .gr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-photos { grid-template-columns: 1fr; }
}
/* Phones */
@media (max-width: 600px) {
  .gr-report { box-shadow: none; border-left: 0; border-right: 0; }
  .gr-head, .gr-intro, .gr-sec, .gr-foot, .gr-next { padding-left: 16px; padding-right: 16px; }
  .gr-sec { padding-top: 24px; padding-bottom: 24px; }
  .gr-strip { padding: 0 16px 16px; }
  .gr-report .gr-car-name { font-size: 22px; }
  .gr-facts > div { grid-template-columns: 1fr; gap: 0; }
  .gr-views { grid-template-columns: 1fr; gap: 8px; }
  .gr-view .cv-top { max-width: 88%; margin: 0 auto; }
  .gr-tiles { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); margin-top: 16px; }
  .gr-tile { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
  .gr-tile-bad { background: none; }
  .gr-tile-name { font-size: 15px; color: var(--ink); font-weight: 600; }
  .gr-tile small { grid-column: 1 / -1; }
  .gr-next-call { justify-items: start; }
  .gr-costs tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .gr-costs th, .gr-costs td { border: 0 !important; padding: 0; width: auto !important; }
  .gr-costs td:last-child { grid-column: 1 / -1; }
  .gr-damage thead, .gr-check thead { display: none; }
  .gr-damage tr { display: grid; grid-template-columns: 28px 96px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .gr-damage td { border: 0; padding: 0; min-width: 0 !important; width: auto !important; }
  .gr-damage td:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
  .gr-damage td:nth-child(2) { grid-column: 2; grid-row: 1 / span 3; }
  .gr-damage td:nth-child(3) { grid-column: 3; grid-row: 1; }
  .gr-damage td:nth-child(5) { grid-column: 3; grid-row: 2; color: var(--ink-2); }
  .gr-damage td:nth-child(6) { grid-column: 3; grid-row: 3; }
  .gr-damage td:nth-child(4) { grid-column: 1 / -1; grid-row: 4; padding-top: 8px; }
  .gr-check tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .gr-check td { border: 0; padding: 0; min-width: 0 !important; }
  .gr-check td:nth-child(3)::before { content: 'რატომ: '; font-weight: 600; color: var(--ink); }
  .gr-check td:nth-child(4):not(:empty)::before { content: 'როგორ ამოწმებენ: '; font-weight: 600; color: var(--ink); }
  .gr-table-wrap { overflow: visible; }
}

/* Evidence workspace: scoped navigation and a keyboard-accessible photo viewer. */
.gr-report { box-shadow: 0 16px 48px #20242a08; border-color: #e3e5e8; }
.gr-head { padding: 36px; background: #fafafa; }
.gr-doc { text-transform: uppercase; letter-spacing: .05em; }
.gr-report .gr-car-name { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; }
.gr-intro { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 36px; padding: 32px 36px 20px; }
.gr-hero { border-radius: 4px; }
.gr-strip { padding: 0 36px 28px; gap: 6px; }
.gr-strip button { border-radius: 3px; }
.gr-nav { position: sticky; top: 0; z-index: 12; display: flex; overflow-x: auto; background: #202225; padding: 0 24px; }
.gr-nav button { white-space: nowrap; border: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; padding: 20px 16px; cursor: pointer; }
.gr-nav button span { color: #aaa; margin-right: 10px; font-size: 11px; }
.gr-nav button:hover { background: #36383b; }
.gr-nav button:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.gr-sec { scroll-margin-top: 72px; padding: 36px; }
.gr-sec:focus { outline: none; }
.gr-verdict { border-left: 3px solid currentColor; padding: 22px 24px; }
.gr-v-stop { border-left-color: var(--red); }
.gr-tiles { gap: 12px; }
.gr-tile { padding: 18px; }
.gr-views { background: #fafafa; border: 1px solid var(--line); padding: 20px 12px; margin-bottom: 24px; }
.gr-damage tbody tr:hover { background: #fafafa; }
.gr-viewer { width: min(1200px,96vw); max-height: 94dvh; padding: 0; border: 1px solid #444; background: #17191c; color: white; font: 14px "Noto Sans Georgian",sans-serif; }
.gr-viewer::backdrop { background: #090b0eeb; }
.gr-viewer-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #ffffff24; }
.gr-viewer-bar span { margin-right: auto; }
.gr-viewer button { color: white; background: #303236; border: 1px solid #56585b; padding: 9px 14px; font: inherit; cursor: pointer; }
.gr-viewer button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.gr-viewer-stage { display: flex; justify-content: center; padding: 16px; }
.gr-viewer-stage > img, .gr-viewer-stage .gr-photo-img { max-height: 70dvh; max-width: 100%; width: auto; }
.gr-viewer-stage .gr-photo-img img { max-height: 70dvh; width: auto; max-width: 100%; display: block; }
.gr-viewer-caption { padding: 8px 24px 24px; display:flex; gap: 16px; flex-wrap:wrap; }
.gr-viewer-caption .gr-num { margin-right: 8px; }
.gr-hide-marks .gr-photo-img svg, .gr-hide-marks .gr-photo-img > .gr-num { visibility: hidden; }
@media(max-width:700px) { .gr-intro { grid-template-columns:1fr; padding:20px; gap:20px; } .gr-head,.gr-sec { padding:24px 20px; } .gr-strip { padding:0 20px 20px; } .gr-nav { padding:0 4px; } .gr-nav button { padding:18px 12px; } .gr-nav button span { display:none; } }
@media print { .gr-nav,.gr-viewer { display:none !important; } .gr-report { box-shadow:none; } .gr-sec { scroll-margin:0; } }

/* Body with a side rail. Narrow: the rail is the sticky menu bar and the
   brief is hidden (the same facts open the assessment section). Wide: a
   sticky column with the section menu and the answer in brief. */
.gr-body { display: block; }
.gr-rail { position: sticky; top: 0; z-index: 12; }
.gr-brief { display: none; }
.gr-main { min-width: 0; }
@media (min-width: 1400px) {
  .gr-body { display: grid; grid-template-columns: 312px minmax(0, 1fr); border-top: 1px solid var(--line); }
  .gr-rail { align-self: start; top: 16px; padding: 36px 28px 36px 32px; background: none; }
  .gr-nav { position: static; display: grid; background: none; padding: 0; overflow: visible; border-left: 2px solid var(--line); }
  .gr-nav button { text-align: left; color: var(--ink-2); padding: 9px 16px; font-size: 14px; margin-left: -2px; border-left: 2px solid transparent; }
  .gr-nav button span { color: var(--ink-3); }
  .gr-nav button:hover { background: none; color: var(--ink); border-left-color: var(--ink); }
  .gr-nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
  .gr-brief { display: grid; gap: 12px; margin-top: 24px; padding: 20px; background: #fafafa; border: 1px solid var(--line); }
  .gr-brief-word { font-size: 17px; font-weight: 700; line-height: 1.35; }
  .gr-brief-word.gr-v-stop { color: var(--red); }
  .gr-brief dl { display: grid; gap: 0; }
  .gr-brief dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
  .gr-brief dt { color: var(--ink-3); }
  .gr-brief dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .gr-brief-call { display: grid; font-size: 13px; color: var(--ink-3); padding-top: 4px; }
  .gr-brief-call .gr-phone { font-size: 18px; }
  .gr-main > .gr-sec:first-child { border-top: 0; }
  .gr-main { border-left: 1px solid var(--line); }
  .gr-main .gr-sec { padding-left: 40px; padding-right: 36px; }
}
@media print { .gr-body { display: block; } .gr-rail { display: none; } }

/* Missing parts and removed parts lying next to the car */
.gr-mark-missing path { fill: none; stroke-dasharray: 7 5; stroke-width: 2.5; }
.gr-mark-missing.gr-lit path { fill: var(--red); fill-opacity: .12; }
.gr-mark-loose path { fill: #fff; fill-opacity: .1; stroke: #16181b; stroke-width: 2; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .95)); }
.gr-mark-loose.gr-lit path { fill-opacity: .3; }
.gr-num.gr-num-loose { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.gr-num.gr-num-loose.gr-num-heavy { color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.gr-photo-img .gr-num.gr-num-loose { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .35); }
.gr-photo-img .gr-num.gr-num-loose.gr-num-heavy { box-shadow: inset 0 0 0 2px var(--red), 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, .35); }
.gr-photo figcaption em { font-style: normal; color: var(--ink-3); }
.gr-loose-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px !important; padding: 8px 10px; background: #fafafa; border: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.gr-loose-note .gr-crop { width: 56px; height: 42px; }
.gr-loose-crop { flex: none; }
.gr-num.gr-num-tag, .gr-photo-img .gr-num.gr-num-tag { border-radius: 4px; }

/* Verdict: the size of the repair, then the rule that decides if it pays off. */
.gr-verdict-worth { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; }

/* Phones and print: smaller photo badges, captions one per line. */
@media (max-width: 600px) {
  .gr-photo-img .gr-num { min-width: 22px; height: 22px; border-radius: 11px; font-size: 12px; }
  .gr-photo figcaption { display: grid; gap: 4px; }
}
@media print {
  .gr-photo-img .gr-num { min-width: 22px; height: 22px; border-radius: 11px; font-size: 11px; }
  .gr-photo figcaption { display: grid; gap: 3px; }
  .gr-sec > h2, .gr-sub-h, .gr-headline { break-after: avoid; page-break-after: avoid; }
  .gr-scale { break-before: avoid; page-break-before: avoid; }
  .gr-costs tr, .gr-verdict, .gr-tile, .gr-next { break-inside: avoid; }
}

/* Recommendation factors under the headline */
.gr-factors { list-style: none; margin: 12px 0 0 !important; padding: 0; display: grid; gap: 6px; }
.gr-factor { display: grid; grid-template-columns: 22px 1fr; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.gr-factor i { font-style: normal; font-weight: 700; text-align: center; }
.gr-factor-plus i { color: #1f7a3f; }
.gr-factor-minus i { color: var(--red); }
.gr-factor-even i { color: var(--ink-3); }

/* Photo viewer: arrows over the photo, counter in the bar */
.gr-viewer-stage { position: relative; align-items: center; }
.gr-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 64px; display: grid; place-items: center; font-size: 34px; line-height: 1; background: rgba(23, 25, 28, .72) !important; border: 1px solid #56585b; color: #fff; cursor: pointer; }
.gr-viewer-prev { left: 12px; }
.gr-viewer-next { right: 12px; }
.gr-viewer-nav:hover { background: #303236 !important; }
.gr-viewer [data-marks][aria-pressed="false"] { opacity: .6; text-decoration: line-through; }
@media (max-width: 600px) { .gr-viewer-nav { width: 40px; height: 52px; font-size: 28px; } }
.gr-hero { cursor: zoom-in; }
/* A part without an exact outline: a thin frame around the area. */
.gr-mark-approx path { fill: var(--red); fill-opacity: .05; stroke-width: 1.5; stroke-linejoin: round; }
