/* «Огляд» (plan B2) — ported verbatim from the redesign prototype
   .claude/redesign/src/screens/app-overview.html (one-column layout, owner decision 7 Oct 2026).
   Only the prototype design-viewer rules are dropped. Laravel additions are at the end. */
.ov4 { --g: 16px; gap: var(--g); }   /* card gap 16 px, as every cabinet screen (decisions.md, design-system phase) */
.ov4 .ico-sm { flex: none; }
/* prototype-only switcher (10 states) */
.ov4-proto { display: inline-flex; align-items: center; gap: 8px; padding: 3px 3px 3px 10px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); font-size: 11.5px; color: var(--ink-3); max-width: 100%; }
.ov4-proto .seg { background: transparent; padding: 0; overflow-x: auto; scrollbar-width: none; }
.ov4-proto > span { white-space: nowrap; align-self: flex-start; line-height: 30px; }
.page-head:has(.ov4-proto) > div:first-child { flex: 1 1 auto; }
@media (max-width: 720px) { .ov4-proto { width: 100%; padding-left: 3px; } .ov4-proto > span { display: none; } }
/* jump to the urgent rows (D1): at every width since the page became one column (owner, 7 Oct) — «Рішення» are the 4th card */
.ov4-jump { display: inline-flex; justify-self: start; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 8px; background: var(--bad-wash); color: var(--bad-ink); font: 500 13px/1 var(--f-ui); }
.ov4-jump::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.ov4-jump[hidden] { display: none !important; }

/* ---- layout: ONE column at every width (owner, 7 Oct 2026): readiness → what to fix first → week → decisions.
   DOM order = reading order; the same order on desktop and phone */
.ov5-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "ix" "fix" "week" "decs"; gap: var(--g); }
.ov5-grid > .ov4-ix { grid-area: ix; } .ov5-grid > .ov5-fix { grid-area: fix; } .ov5-grid > .ov4-sum { grid-area: week; } .ov5-grid > .ov5-decs { grid-area: decs; }
.ov4-ix, .ov4-sum, .ov5-fix, .ov5-decs { display: flex; flex-direction: column; min-width: 0; }
.ov4-ix { background: linear-gradient(180deg, color-mix(in srgb, var(--s1) 5%, var(--panel)) 0%, var(--panel) 46%); }
.ov4-ix-body, .ov4-sum-body { flex: 1; display: flex; flex-direction: column; }
.ov4-cardh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 0; min-height: 52px; }
.ov4-cardh h2 { font: 500 14px/20px var(--f-ui); letter-spacing: -0.01em; display: flex; align-items: center; gap: 4px; }
.ov4-cardh small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; text-wrap: pretty; }
.ov4-cardh .btn { flex: none; }
.ov4-meta { font-size: 12px; color: var(--ink-3); text-align: right; white-space: nowrap; line-height: 1.45; }
.ov4-meta span { display: block; color: var(--ink-2); }
.ov5-svc > span { display: block; }
.ov5-svc > span.ov5-m-next { display: none; }
@media (max-width: 520px) { .ov4-meta { display: none; } .ov5-svc > span.ov5-m-next { display: block; } }   /* on a phone the service line under the score names both dates */

/* ⓘ «Як рахуємо готовність» */
.ov4-how { position: relative; display: inline-block; }
.ov4-how > summary { list-style: none; cursor: pointer; color: var(--ink-4); display: inline-grid; place-items: center; width: 22px; height: 20px; border-radius: 6px; min-height: 0; position: relative; }
.ov4-how > summary::after { content: ""; position: absolute; inset: -8px; }
.ov4-how > summary:hover, .ov4-how[open] > summary { color: var(--ink); background: var(--wash); }
.ov4-how > summary::-webkit-details-marker { display: none; }
.ov4-how:not([open]) > div { display: none; }
.ov4-how > div { position: absolute; z-index: 9; top: 28px; left: -12px; width: min(390px, calc(100vw - 56px)); padding: 14px 16px; border-radius: 12px; background: var(--pop-bg, var(--panel)); box-shadow: 0 0 0 1px var(--ring), var(--shadow-pop); font: 400 12.5px/1.5 var(--f-ui); color: var(--ink-2); display: grid; gap: 10px; text-wrap: pretty; letter-spacing: 0; }
.ov4-how b { font-weight: 500; color: var(--ink); }
.ov4-how table { border-collapse: collapse; width: 100%; font-size: 12px; }
.ov4-how td { padding: 5px 0; border-top: 1px solid var(--hair); vertical-align: top; }
.ov4-how td small { display: block; color: var(--ink-3); font-size: 11.5px; }
.ov4-how td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; padding-left: 12px; }
@media (max-width: 720px) { .ov4-ix { position: relative; } .ov4-how { position: static; } .ov4-how > div { left: 12px; right: 12px; width: auto; top: 62px; } }

/* ---- hero: score left, chart right ---- */
.ov4-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 20px 32px; padding: 14px 20px 20px; align-items: stretch; flex: 1; }
@media (max-width: 760px) { .ov4-hero { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 18px; gap: 24px; } }
.ov4-score { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.ov4-num { font: 500 88px/0.9 var(--f-display); letter-spacing: -0.06em; color: var(--ink); margin-left: -4px; }
.ov4-num span { font-size: 20px; letter-spacing: -0.02em; color: var(--ink-3); margin-left: 6px; font-weight: 400; }
.ov4-num.ov5-was { color: var(--ink-4); }
.ov4-drow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.ov4-delta { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 8px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.ov4-delta svg.lucide { width: 17px; height: 17px; stroke-width: 2.3; }
.ov4-delta.good { background: var(--good-wash); color: var(--good-ink); }
.ov4-delta.bad { background: var(--bad-wash); color: var(--bad-ink); }
.ov4-delta.flat { background: var(--wash); color: var(--ink-2); }
.ov5-dtx { font-size: 13px; color: var(--ink-2); }
.ov4-why { font: 500 15px/1.45 var(--f-ui); color: var(--ink); letter-spacing: -0.012em; text-wrap: pretty; max-width: 36ch; }
.ov4-why-soft { font-weight: 400; color: var(--ink-2); }
.ov5-svc { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
.ov5-foot { margin-top: auto; align-self: stretch; display: grid; gap: 12px; padding-top: 4px; }
.ov5-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ov5-acts > .btn { flex: 1 1 auto; justify-content: center; }
.ov5-nw { white-space: nowrap; }
.ov5-prev-why { font-size: 13px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; max-width: 40ch; }
/* scanning / first scan / no data */
.ov5-prev { font-size: 12.5px; color: var(--ink-3); margin-top: -4px; }
.ov5-run { align-self: stretch; display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 1px var(--ring); }
.ov5-run-h { display: flex; align-items: flex-start; gap: 8px; font: 500 13.5px/1.4 var(--f-ui); color: var(--ink); text-wrap: pretty; }
.ov5-run-h svg.lucide { width: 16px; height: 16px; margin-top: 1px; color: var(--s1); flex: none; }
@keyframes ov5-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) { .ov5-run-h svg.lucide, .ov5-spin { animation: ov5-spin 1.1s linear infinite; } }
.ov5-run-bar { height: 6px; border-radius: 3px; background: var(--wash-2); overflow: hidden; }
.ov5-run-bar i { display: block; height: 100%; border-radius: 3px; background: var(--s1); }
.ov5-run p { font-size: 12.5px; color: var(--ink-3); text-wrap: pretty; }
.ov5-skel { display: block; width: 168px; max-width: 70%; height: 72px; border-radius: 14px; background: linear-gradient(90deg, var(--wash) 0%, var(--wash-2) 50%, var(--wash) 100%); background-size: 200% 100%; }
@keyframes ov5-shim { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: no-preference) { .ov5-skel, .ov5-sk-bar i { animation: ov5-shim 1.6s linear infinite; } }
.ov5-nd-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--warn-wash); color: var(--warn-ink); }
.ov5-nd-h { font: 500 22px/1.25 var(--f-display); letter-spacing: -0.025em; text-wrap: balance; }
.ov5-nd-top { display: flex; align-items: center; gap: 14px; }   /* icon beside the title, so the ChetverBot instruction fits without growing the card */
.ov5-nd-top > .ov5-nd-ic { flex: none; }
/* «Недостатньо даних»: what to allow, by name, and an ⓘ-style popover «Що таке ChetverBot» */
.ov5-nd-do { position: relative; max-width: 38ch; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ov5-nd-t { font-weight: 500; color: var(--ink); }
.ov5-bot { display: inline; }
.ov5-bot > summary { display: inline; list-style: none; cursor: pointer; font-size: 13px; color: var(--ink-2); white-space: nowrap; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.ov5-bot > summary::-webkit-details-marker { display: none; }
.ov5-bot > summary:hover, .ov5-bot[open] > summary { color: var(--ink); }
.ov5-bot:not([open]) > .ov5-bot-pop { display: none; }
.ov5-bot-pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: -12px; width: min(364px, calc(100vw - 40px)); padding: 14px 16px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-pop); display: grid; gap: 8px; justify-items: start; font: 400 12.5px/1.5 var(--f-ui); color: var(--ink-2); text-wrap: pretty; white-space: normal; }
.ov5-bot-pop b { font-weight: 500; color: var(--ink); }
.ov5-ua { justify-self: stretch; padding: 6px 10px; border-radius: 8px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--ring); font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 760px) { .ov5-nd-do { max-width: none; } .ov5-bot > summary { padding: 6px 0; } .ov5-bot-pop { left: 0; right: 0; width: auto; } }

/* ---- chart «Як змінюється готовність сайту»: one point per check, values written on the points, event markers ① ② ③ ----
   plot = HTML (dots and labels stay round at any width) + one SVG polyline with a non-scaling stroke; y 50–80, x inset 7–93 % */
.ov5-tr { min-width: 0; display: flex; flex-direction: column; }
.ov5-tr-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ov5-tr-h b { font: 500 13px/18px var(--f-ui); color: var(--ink); letter-spacing: -0.005em; }
.ov5-ch { position: relative; height: 168px; margin: 40px 2px 0 28px; }
.ov5-ch-g { position: absolute; left: 0; right: 0; top: var(--y); border-top: 1px solid var(--grid); }
.ov5-ch-g b { position: absolute; right: calc(100% + 8px); top: -7px; font: 400 11px/14px var(--f-ui); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ov5-ch-a { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--s1) 17%, transparent) 0%, color-mix(in srgb, var(--s1) 0%, transparent) 100%); }
.ov5-ch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ov5-ch polyline { fill: none; stroke: var(--s1); stroke-width: 2.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ov5-ch polyline.pend { stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 3 4; }
.ov5-pt { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--panel); box-shadow: 0 0 0 2px var(--s1); }
.ov5-pt.last { background: var(--s1); box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px color-mix(in srgb, var(--s1) 35%, transparent); }
.ov5-pt b { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); font: 500 11.5px/1 var(--f-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov5-pt.last b { color: var(--ink); font-weight: 600; font-size: 13px; }
.ov5-pt.pend { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--panel); box-shadow: none; border: 1.5px dashed var(--ink-3); }
.ov5-pt.pend b { color: var(--ink-3); font-weight: 500; }
.ov5-ev { position: absolute; left: var(--x); top: -36px; height: calc(var(--y) + 14px); width: 16px; margin-left: -8px; display: flex; flex-direction: column; align-items: center; }
.ov5-ev::after { content: ""; flex: 1; width: 0; border-left: 1px dashed var(--ink-4); margin-top: 3px; }
.ov5-ch-x { position: relative; height: 14px; margin: 10px 2px 0 28px; }
.ov5-ch-x span { position: absolute; left: var(--x); transform: translateX(-50%); font-size: 11px; line-height: 14px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ov5-ch-x span.dim { color: var(--ink-4); }
.ov5-ch-note { z-index: 1; background: var(--panel); position: absolute; left: 22%; right: 0; top: 18%; bottom: 18%; display: grid; place-content: center; text-align: center; gap: 4px; padding: 0 12px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--ink) 16%, transparent); font-size: 12.5px; color: var(--ink-3); text-wrap: balance; }
.ov5-ch-note b { font-weight: 500; color: var(--ink); font-size: 13px; }
.ov4-nn { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 1.2px var(--ink-3); font: 600 10px/1 var(--f-ui); color: var(--ink); }
.ov4-nn.na { box-shadow: none; border: 1.2px dashed var(--ink-3); background: transparent; }
.ov5-evs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.ov5-evs li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; text-wrap: pretty; }
.ov5-evs li .ov4-nn { margin-top: 0; }
.ov4-empty-in { flex: 1; min-height: 210px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--ring); display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 20px; color: var(--ink-3); font-size: 12.5px; margin-top: 10px; }
.ov4-empty-in svg.lucide { width: 22px; height: 22px; color: var(--ink-4); }
.ov4-empty-in b { color: var(--ink); font-weight: 500; font-size: 13.5px; }
.ov4-empty-in p { max-width: 34ch; text-wrap: pretty; }

/* ---- 5 components: a tile each; the tile is the <summary> of its detail sheet ---- */
.ov4-cap { border-top: 1px solid var(--hair); background: var(--panel-2); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 12px 12px 12px; display: grid; gap: 8px; margin-top: auto; }
.ov4-cap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; padding: 2px 8px 0; font-size: 12.5px; color: var(--ink-3); }
.ov4-cap-head b { font-weight: 500; color: var(--ink); font-size: 13px; }
.ov5-comps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ov5-slot { min-width: 0; display: flex; }
.ov5-slot > * { flex: 1; min-width: 0; }
.ov5-tile { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 8px 8px 10px; border-radius: 10px; text-align: left; min-width: 0; transition: background-color .12s ease, box-shadow .15s ease; }
summary.ov5-tile { cursor: pointer; }
summary.ov5-tile::-webkit-details-marker { display: none; }
summary.ov5-tile:hover, .ov5-c[open] > summary.ov5-tile { background: var(--panel); box-shadow: 0 0 0 1px var(--ring), 0 1px 2px rgba(0, 0, 0, .04); }
summary.ov5-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.ov5-tile > * { max-width: 100%; }
.ov4-slot-bar { align-self: stretch; display: block; height: 10px; border-radius: 5px; background: var(--wash-2); overflow: hidden; margin-bottom: 4px; }
.ov4-slot-bar i { display: block; height: 100%; border-radius: 5px; background: var(--s1); }
.ov5-tile.dim .ov4-slot-bar i { background: color-mix(in srgb, var(--s1) 45%, var(--wash-2)); }
.ov5-tile.na .ov4-slot-bar { background: transparent; box-shadow: inset 0 0 0 1px var(--wash-2); }
.ov5-sk-bar { background: transparent !important; box-shadow: inset 0 0 0 1px var(--wash-2); }
.ov5-sk-bar i { width: 100%; background: linear-gradient(90deg, transparent 0%, var(--wash) 50%, transparent 100%) !important; background-size: 200% 100% !important; }
.ov4-slot-v { font: 500 18px/1.1 var(--f-display); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov4-slot-v small { font: 400 12px var(--f-ui); color: var(--ink-3); letter-spacing: 0; }
.ov5-tile.dim .ov4-slot-v { color: var(--ink-3); }
.ov5-dash { color: var(--ink-3) !important; }
.ov5-na-v { font: 500 12.5px/1.3 var(--f-ui) !important; letter-spacing: 0 !important; color: var(--ink-3) !important; white-space: normal !important; }
.ov4-mv { font: 500 12px/1 var(--f-ui); font-style: normal; margin-left: 6px; letter-spacing: 0; color: var(--ink-3); cursor: help; }
.ov4-slot-n { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.3; text-wrap: pretty; }
.ov4-slot-n svg.lucide { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-left: 2px; color: var(--ink-3); transition: transform .15s ease, color .15s ease; }
summary.ov5-tile:hover .ov4-slot-n svg.lucide { color: var(--ink); transform: translateX(2px); }
.ov4-slot-h { font-size: 11.5px; color: var(--ink-3); line-height: 1.35; text-wrap: pretty; }
.ov4[data-vstate="scan"] .ov5-tile .ov4-slot-v { color: var(--ink-3); }
.ov4[data-vstate="scan"] .ov5-tile .ov4-slot-bar i { background: color-mix(in srgb, var(--s1) 40%, var(--wash-2)); }
.ov5-hp { display: block; color: var(--good-ink); font-weight: 500; }
.ov5-upd { display: inline-flex; align-items: center; gap: 5px; color: var(--s1); font-weight: 500; }
.ov5-upd::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (max-width: 760px) {
  .ov4-cap { padding: 10px 8px 8px; gap: 4px; }
  .ov5-comps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ov5-slot + .ov5-slot { border-top: 1px solid var(--hair); }
  .ov5-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 11px 8px; border-radius: 8px; }
  .ov5-tile .ov4-slot-n { grid-row: 1; grid-column: 1; font-size: 13.5px; }
  .ov5-tile .ov4-slot-v { grid-row: 1; grid-column: 2; font-size: 15px; justify-self: end; }
  .ov5-tile .ov4-slot-h { grid-row: 2; grid-column: 1 / -1; font-size: 12px; }
  .ov5-hp { display: inline; } .ov5-hp::before { content: " · "; color: var(--ink-3); font-weight: 400; }
  .ov5-tile .ov4-slot-bar { grid-row: 3; grid-column: 1 / -1; height: 6px; margin: 4px 0 0; }
}

/* ---- detail sheet: right-side panel on a computer, full-height bottom sheet on a phone ----
   details[data-pop]: Esc, the scrim and «×» close it (data-pop-close); the first child is an empty <i hidden> so the shell's
   «scroll the popover into view» step has nothing to scroll for a fixed panel */
.ov5-c > .ov5-scrim, .ov5-c > .ov5-sheet { display: none; }
.ov5-c[open] > .ov5-scrim { display: block; position: fixed; inset: var(--viewer-h, 0px) 0 0 0; z-index: 40; background: rgba(12, 12, 12, .3); cursor: pointer; animation: scrim-in .2s ease; }
.ov5-c[open] > .ov5-sheet { display: flex; flex-direction: column; position: fixed; z-index: 41; top: calc(var(--viewer-h, 0px) + 8px); right: 8px; bottom: 8px; width: min(480px, calc(100vw - 16px)); border-radius: 16px; background: var(--pop-bg); box-shadow: var(--shadow-pop); overflow: hidden; cursor: auto; animation: ov5-in .24s var(--ease) both; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ov5-c[open] > .ov5-scrim { background: rgba(0, 0, 0, .55); } }
:root[data-theme="dark"] .ov5-c[open] > .ov5-scrim { background: rgba(0, 0, 0, .55); }
@keyframes ov5-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes ov5-up { from { opacity: .4; transform: translateY(32px); } to { opacity: 1; transform: none; } }
.ov4 > *:has(.ov5-c[open]) { animation: none; }
.page.ov4 > .ov5-grid:has(.ov5-c[open]) { z-index: 45; }   /* the entrance transform would pin the fixed panel to the card */
@media (max-width: 760px) {
  .ov5-c[open] > .ov5-sheet { top: calc(var(--viewer-h, 0px) + 44px); left: 0; right: 0; bottom: 0; width: auto; border-radius: 18px 18px 0 0; animation-name: ov5-up; }
  html:has(.ov5-c[open]) { overflow: hidden; }
}
.ov5-sh-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.ov5-sh-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px 16px 16px 20px; border-bottom: 1px solid var(--hair); }
.ov5-sh-top::before { content: none; }
@media (max-width: 760px) { .ov5-sh-top { padding-top: 22px; } .ov5-sh-top::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--wash-2); } }
.ov5-sh-k { font-size: 12px; color: var(--ink-3); }
.ov5-sh-top h3 { font: 500 20px/1.25 var(--f-display); letter-spacing: -0.022em; margin-top: 2px; text-wrap: balance; }
.ov5-sh-d { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin-top: 4px; text-wrap: pretty; }
.ov5-sh-x { width: 32px; height: 32px; margin-top: -4px; }
.ov5-sh-sum { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--hair); background: var(--panel-2); }
.ov5-sh-v { font: 500 34px/1 var(--f-display); letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov5-sh-v small { font: 400 14px var(--f-ui); color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.ov5-sh-sum .ov4-slot-bar { margin: 0; height: 8px; }
.ov5-sh-cnt { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); }
.ov5-sh-cnt span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ov5-sh-cnt span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); }
.ov5-sh-cnt .p::before { background: var(--warn); } .ov5-sh-cnt .g::before { background: var(--good); } .ov5-sh-cnt .n::before { background: transparent; box-shadow: inset 0 0 0 1.2px var(--ink-4); }
.ov5-sh-pot { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); text-wrap: pretty; }
.ov5-sh-pot b { font-weight: 500; color: var(--good-ink); }
.ov5-sh-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--s1); font-weight: 500; }
.ov5-sh-why { padding: 14px 20px 4px; font-size: 13px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.ov5-chks { list-style: none; margin: 0; padding: 6px 0 4px; }
.ov5-chk { display: grid; gap: 6px; padding: 14px 20px; justify-items: start; }
.ov5-chk + .ov5-chk { border-top: 1px solid var(--hair); }
.ov5-chk-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; width: 100%; }
.ov5-chk-h .ov4-plus { margin-left: auto; }
.ov5-st { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ov5-st svg.lucide { width: 13px; height: 13px; stroke-width: 2.2; }
.ov5-st.bad { background: var(--warn-wash); color: var(--warn-ink); }
.ov5-st.good { background: var(--good-wash); color: var(--good-ink); }
.ov5-st.na { background: var(--wash); color: var(--ink-3); }
.ov5-chk-t { font: 500 14px/1.35 var(--f-ui); color: var(--ink); letter-spacing: -0.005em; text-wrap: pretty; }
.ov5-chk-c { font-size: 12px; color: var(--ink-3); margin-top: -3px; text-wrap: pretty; }
.ov5-chk-pg { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; text-wrap: pretty; }
.ov5-chk-pg .mono, .ov5-case .mono { font-size: 12px; color: var(--ink-2); }
.ov5-chk-d { font-size: 13px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.ov5-chk-r { font-size: 13px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.ov5-chk-r b { font-weight: 500; }
.ov5-chk.ok { padding-top: 11px; padding-bottom: 11px; gap: 4px; }
.ov5-chk.ok .ov5-chk-t { font-size: 13.5px; color: var(--ink-2); font-weight: 450; }
.ov5-cases { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.ov5-case { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--hair); justify-items: start; }
.ov5-case-h { display: flex; align-items: center; gap: 8px; width: 100%; flex-wrap: wrap; }
.ov5-case-h .ov4-plus, .ov5-case-h .tag { margin-left: auto; }
.ov5-go { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0; font: 500 13px/1.3 var(--f-ui); color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; text-align: left; }
.ov5-go:hover { text-decoration-color: var(--ink); }
.ov5-go svg.lucide { transition: transform .15s ease; }
.ov5-go:hover svg.lucide { transform: translateX(2px); }
.ov5-sh-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; padding: 10px 20px 12px; border-top: 1px solid var(--hair); background: var(--panel-2); font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.ov5-sh-foot .btn { margin-left: -9px; }
.ov5-sh-fine { padding: 12px 20px 20px; border-top: 1px solid var(--hair); font-size: 12px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
@media (max-width: 760px) { .ov5-sh-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }
.ov4-plus { font: 500 12px/1 var(--f-ui); color: var(--good-ink); background: var(--good-wash); border-radius: 6px; padding: 5px 7px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- «Що виправити насамперед» (#ov-fix) ---- */
.ov5-fixes { list-style: none; margin: 12px 0 0; padding: 0; flex: 1; display: flex; flex-direction: column; counter-reset: fx; }
.ov5-fx { flex: 1; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px 14px; align-content: center; padding: 13px 20px; border-top: 1px solid var(--hair); counter-increment: fx; }
.ov5-fx::before { content: counter(fx); grid-row: 1 / span 3; align-self: start; width: 24px; height: 24px; border-radius: 7px; background: var(--wash); display: grid; place-items: center; font: 500 12px/1 var(--f-ui); color: var(--ink-2); }
.ov5-fx > * { grid-column: 2; min-width: 0; }
.ov5-fx-k { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; color: var(--ink-3); min-height: 24px; }
.ov5-pri { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.ov5-pri::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); }
.ov5-pri.high::before { background: var(--bad); }
.ov5-pri.mid::before { background: var(--warn); }
.ov5-fx-pg { color: var(--ink); font-weight: 500; }
.ov5-fx-pg .mono { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.ov5-fx-k .ov4-plus { margin-left: auto; }
.ov5-fx-t { font-size: 13.5px; line-height: 1.5; color: var(--ink); text-wrap: pretty; max-width: 74ch; }
.ov5-fx-m { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-3); }
.ov5-fx-m .ov5-go { margin-left: auto; }
.ov5-fx-m .tag { font-weight: 450; }
.ov5-fx.sm { flex: 0 0 auto; gap: 2px 14px; padding-top: 11px; padding-bottom: 11px; }
.ov5-fx.sm::before { grid-row: 1 / span 2; }
.ov5-fx.sk { gap: 9px 14px; }
.ov5-fx.sk .ov5-sk-l { display: block; height: 10px; border-radius: 5px; background: var(--wash); }
.ov5-fx.sk .ov5-fx-k { justify-content: space-between; }
.ov5-fx.sk .ov5-sk-chip { width: 64px; height: 20px; border-radius: 6px; }
.ov5-fx.sk::before { color: transparent; }
.ov5-fix-msg { display: flex; align-items: center; gap: 8px; padding: 0 20px 12px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 520px) {
  .ov5-fx { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; } .ov5-fx::before { display: none; } .ov5-fx > * { grid-column: 1; }
  .ov5-fx-k > span[aria-hidden] { display: none; }
  .ov5-fx-pg { flex: 1 1 auto; } .ov5-fx-k .ov4-plus { margin-left: 0; }
  .ov5-fx-k { row-gap: 6px; } .ov5-pri { flex: 1 0 100%; }
}
.ov4-foot-row { margin-top: auto; padding: 10px 14px 10px 20px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-3); background: var(--panel-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.ov4-foot-row > span { min-width: 0; text-wrap: pretty; }
.ov4-foot-row .btn { flex: none; }
.ov4-foot-row[hidden] { display: none !important; }
.ov5-fix .ov4-foot-row { align-items: flex-start; font-size: 12px; line-height: 1.45; }
.ov5-fix .ov4-foot-row > span { flex: 1 1 260px; }
@media (max-width: 620px) { .ov5-fix .ov4-foot-row { flex-direction: column; padding-right: 20px; } .ov5-fix .ov4-foot-row > span { flex: none; } .ov5-fix .ov4-foot-row .btn { margin-left: -9px; } }
.ov4-foot-link { width: 100%; text-align: left; padding-right: 20px; color: var(--ink-2); font-weight: 500; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.ov4-foot-link > svg.lucide { color: var(--ink-4); }
.ov4-foot-link:hover { color: var(--ink); background: var(--wash); }
.ov4-foot-link:hover > svg.lucide { color: var(--ink); }

/* ---- week summary (#ov-week) ---- */
.ov4-sum-body { padding: 12px 20px 4px; }
.ov4-verdict { font: 500 18px/1.4 var(--f-display); letter-spacing: -0.022em; text-wrap: pretty; color: var(--ink); }
.ov4-verdict span { color: var(--ink-3); }
.ov4-feed { list-style: none; margin: 14px 0 0; padding: 0; display: grid; flex: 1 0 auto; align-content: stretch; }   /* spare height goes to the rows, never to a band above the footer */
.ov4-feed li { border-top: 1px solid var(--hair); display: flex; flex-direction: column; justify-content: center; }
.ov4-ev { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 12px; align-items: center; width: 100%; padding: 12px 0; text-align: left; }
.ov4-ev > svg.lucide { color: var(--ink-4); }
.ov4-ev:hover b { text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 2px; }
.ov4-ev.static { grid-template-columns: 30px minmax(0, 1fr); }
.ov4-ev.static:hover b { text-decoration: none; }
.ov4-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--wash); color: var(--ink-3); align-self: start; }
.ov4-ic svg.lucide { width: 15px; height: 15px; }
.ov4-ic.good { background: var(--good-wash); color: var(--good-ink); }
.ov4-ic.warn { background: var(--warn-wash); color: var(--warn-ink); }
.ov4-ic.bad { background: var(--bad-wash); color: var(--bad-ink); }
.ov4-ic.info { background: var(--info-wash); color: var(--info-ink); }
.ov4-ev-t b { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.35; text-wrap: pretty; }
.ov4-ev-t small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; text-wrap: pretty; }
.ov4-when { white-space: nowrap; }
.ov4-soon { margin-top: 10px; border-top: 1px solid var(--hair); padding-top: 12px; padding-bottom: 12px; }
.ov4-soon h3 { font: 500 12px var(--f-ui); color: var(--ink-3); margin-bottom: 6px; }
.ov4-soon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.ov4-soon li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; text-wrap: pretty; }
.ov4-soon li span { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ov4-sum-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--hair); background: var(--panel-2); border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 12px; color: var(--ink-3); }
.ov4-sum-foot > span { flex: 1; min-width: 0; text-wrap: pretty; }
.ov4-sum-foot[hidden] { display: none !important; }
.ov4-mail { white-space: nowrap; }
.ov4-sum-foot > svg.lucide { align-self: flex-start; margin-top: 2px; }
.ov4-flink { display: inline; font: inherit; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 2px; min-height: 0; padding: 0; white-space: nowrap; }
.ov4-flink:hover { text-decoration-color: var(--ink); }

/* ---- «Рішення, що чекають» (#ov-decs) / «Перші кроки» ---- */
.ov4-then-l { font-size: 12px; color: var(--ink-3); padding: 10px 20px 6px; }
.ov4-decs { margin-top: 12px; position: relative; }
.ov4-dec { display: grid; grid-template-columns: 88px minmax(0, 1fr) 16px; gap: 2px 12px; align-items: start; padding: 13px 20px 13px 22px; border-top: 1px solid var(--hair); text-align: left; width: 100%; position: relative; transition: background-color .12s ease; }
button.ov4-dec:hover { background: var(--panel-2); }
/* urgency = an 8 px dot + a grey label, as on «Рішення» and «Що покращити» (no coloured bar, no coloured text) */
.ov4-dec-k { font-size: 12px; font-weight: 500; color: var(--ink-2); grid-row: 1 / span 3; padding-top: 1px; display: inline-flex; align-items: center; gap: 7px; align-self: start; white-space: nowrap; }
.ov4-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex: none; }
.ov4-dec.urg .ov4-dot { background: var(--bad); }
.ov4-dec p { grid-column: 2; font-size: 13.5px; font-weight: 500; line-height: 1.4; text-wrap: pretty; overflow-wrap: anywhere; }
.ov4-dec small { grid-column: 2; font-size: 12px; color: var(--ink-3); text-wrap: pretty; }
.ov4-dec-d { grid-column: 2; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; margin-top: 3px; }
.ov4-dec > svg.lucide { grid-column: 3; grid-row: 1 / span 3; align-self: center; color: var(--ink-4); }
@media (max-width: 520px) { .ov4-dec { grid-template-columns: minmax(0, 1fr) 16px; } .ov4-dec-k { grid-row: auto; } .ov4-dec p, .ov4-dec small, .ov4-dec-d { grid-column: 1; } .ov4-dec > svg.lucide { grid-column: 2; grid-row: 1 / span 4; } }
.ov4-decs .lock-veil { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.ov4-decs.locked { flex: 1; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; }
.ov4-decs.locked > [inert] { flex: 1; display: flex; flex-direction: column; }
.ov4-decs.locked > [inert] > .ov4-dec { flex: 1; align-content: center; }
.ov4-decs.locked .ov4-dec, .ov4-decs.locked .ov4-done { filter: blur(3px); pointer-events: none; }
.ov4-done { border-top: 1px solid var(--hair); }
/* the card stretches to the fix list: the spare height goes to the urgent rows (content centred), never to an empty band */
.ov5-decs .ov4-decs:not(.locked) { flex: 1; display: flex; flex-direction: column; }
.ov5-decs .ov4-decs:not(.locked) > .ov4-dec { flex: 1; align-content: center; }
.ov5-decs .ov4-done + .ov4-foot-row { margin-top: 0; }
.ov4-done .ov4-then-l { padding-top: 12px; }
.ov4-done-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 12px; align-items: center; width: 100%; padding: 6px 20px 14px 22px; text-align: left; }
.ov4-done-row b { display: block; font-weight: 500; font-size: 13px; line-height: 1.35; }
.ov4-done-row small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; text-wrap: pretty; }
.ov4-done-row > svg.lucide { color: var(--ink-4); }
.ov4-done-row:hover b { text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 2px; }
.ov4-ok { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--good-wash); color: var(--good-ink); }
.ov4-ok svg.lucide { width: 14px; height: 14px; stroke-width: 2.4; }
@media (max-width: 520px) { .ov4-done-row { padding: 6px 16px 14px; } }
.ov4-prog { display: inline-flex; gap: 4px; align-items: center; height: 24px; }
.ov4-prog i { width: 14px; height: 6px; border-radius: 3px; background: var(--wash-2); }
.ov4-prog i.on { background: var(--s1); }
.ov4-steps { margin-top: 12px; flex: 1; display: flex; flex-direction: column; }
.ov4-step { flex: 1; display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px; gap: 12px; align-items: center; width: 100%; padding: 11px 20px 11px 22px; border-top: 1px solid var(--hair); text-align: left; transition: background-color .12s ease; }
button.ov4-step:hover { background: var(--panel-2); }
.ov4-step b { display: block; font-weight: 500; font-size: 13.5px; line-height: 1.35; }
.ov4-step small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; text-wrap: pretty; }
.ov4-step.done b { color: var(--ink-2); }
.ov4-step > svg.lucide { color: var(--ink-4); }
.ov4-todo-c { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-4); }
.ov4-run-c { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--s1); }
.ov4-run-c svg.lucide { width: 18px; height: 18px; }
@media (max-width: 520px) { .ov4-step { padding: 11px 16px; } }

/* phone: every tap target at least 44 px (buttons, «Як виправити», the sheet «×», «Налаштувати» via a larger hit area) */
@media (max-width: 760px) {
  .ov5-acts > .btn { min-height: 44px; }
  .ov5-go { min-height: 44px; }
  .ov5-sh-x { width: 44px; height: 44px; margin-top: -8px; margin-right: -6px; }
  .ov4-flink { position: relative; } .ov4-flink::after { content: ""; position: absolute; inset: -13px -8px; }
}
/* ---- Laravel port additions (plan B2) — not in the prototype ---- */
/* The prototype's design-viewer bar (shell.html «not part of the product»: --viewer-h: 48px) does not exist here;
   without this the scrim and the component sheet start 48 px down if B1 ported that token. */
.ov4 { --viewer-h: 0px; }
/* Rows and cells are links here (buttons in the prototype). Lowest specificity, so every prototype rule still wins. */
:where(.ov4) a { color: inherit; text-decoration: none; }
a.ov4-dec:hover { background: var(--panel-2); }
/* Inline SVGs from App\Services\Cabinet\Overview\Icons: the shell's lucide sizes, in case B1 did not port them. */
:where(.ov4 svg.lucide) { width: 16px; height: 16px; stroke-width: 1.75; flex: none; }
:where(.ov4 svg.lucide.ico-sm) { width: 14px; height: 14px; }
/* «Перевірка сайту не вдалася» (failed state) reuses the progress box without the spinner. */
.ov5-run.failed { background: var(--warn-wash); box-shadow: none; }
.ov5-run.failed .ov5-run-h svg.lucide { animation: none; color: var(--warn-ink); }
/* Disabled «Перевірити повторно» and its one-line reason. */
.ov5-acts > .btn[disabled] { opacity: .55; cursor: not-allowed; }
.ov5-recheck-why { font-size: 12px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
.ov5-acts > form[hidden] { display: none; }
/* Local stand switcher: nine states plus the Max / Pro / Basic sites do not fit one row at 1440 — the plan
   segment wraps to a second row instead of hiding «Деталізація» under the overflow. */
.ov4-proto { flex-wrap: wrap; }


/* A queued check is waiting, not processing pages. */
.ov5-run.waiting .ov5-run-h svg.lucide { animation: none; }
