/*
 * UI v2 — prices screens (design "Mondigo képernyőterv 3": 23 Áraim,
 * 24 Szokásos munkák). Served and injected only with QQ_UI_V2=1; every
 * selector is scoped under html.ui-v2 (tools/ui-v2-flag-contract_test).
 * Components come from mg.css; this file only lays them out and frames the
 * established import / templates panels while they are shown in v2.
 * Money is never animated; motion reads the mg tokens (zero under reduced motion).
 */

/* ---- the v2 screens replace the established view (only once prices.js ran) ---- */
html.ui-v2 body.v2-prices #view-templates > :where(:not(#v2-prices):not(#v2-pr-sheet)) { display: none !important; }
html.ui-v2 body.v2-prices main:has(> #view-templates:not(.hidden)) { padding: 0; }
html.ui-v2 body.v2-prices #view-templates { background: var(--mg-bg-page); }
html.ui-v2 body.v2-pr-on-sheet { overflow: hidden; }

html.ui-v2 .v2-prices-root { display: block; max-width: var(--mg-content-max); margin: 0 auto; padding: 0 var(--mg-space-16) var(--mg-space-24); min-height: calc(100vh - 140px); }
html.ui-v2 .v2-prices-root,
html.ui-v2 .v2-prices-root *,
html.ui-v2 #v2-pr-sheet,
html.ui-v2 #v2-pr-sheet * { box-sizing: border-box; }
/* :where() keeps the reset below the mg component sizes (e.g. .mg-seg button 14px). */
html.ui-v2 :where(.v2-prices-root) :where(button) { font-family: inherit; }
html.ui-v2 :where(.v2-prices-root) :where(input) { font-family: inherit; }
html.ui-v2 :where(.v2-prices-root) :where(select) { font-family: inherit; }
html.ui-v2 :where(#v2-pr-sheet) :where(button) { font-family: inherit; }
html.ui-v2 :where(#v2-pr-sheet) :where(input) { font-family: inherit; }
html.ui-v2 :where(#v2-pr-sheet) :where(select) { font-family: inherit; }
html.ui-v2 .v2-prices-root :focus-visible,
html.ui-v2 #v2-pr-sheet :focus-visible { outline: 3px solid var(--mg-focus-ring); outline-offset: 2px; }
html.ui-v2 .v2-pr-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

/* ---- header, segmented control, blocks ---- */
html.ui-v2 .v2-pr-head { display: flex; flex-direction: column; gap: var(--mg-space-4); padding: var(--mg-space-6) var(--mg-space-4) 0; }
html.ui-v2 .v2-pr-head .mg-h1:focus { outline: none; }
html.ui-v2 .v2-pr-seg { margin-top: var(--mg-space-14); }
html.ui-v2 .v2-pr-seg button { white-space: nowrap; padding: 0 var(--mg-space-6); overflow: hidden; text-overflow: ellipsis; }
html.ui-v2 .v2-pr-block { margin-top: var(--mg-space-12); }
html.ui-v2 .v2-pr-back { margin: var(--mg-space-4) 0 0 calc(-1 * var(--mg-space-6)); padding-left: 0; }
html.ui-v2 .v2-pr-note { margin: var(--mg-space-12) var(--mg-space-4) 0; font-size: 14px; line-height: 1.45; color: var(--mg-text-muted); }
html.ui-v2 .v2-pr-meta { margin: 0; font-size: 14px; color: var(--mg-text-muted); }
/* Section title: title-3 18/800 (D4 type scale). */
html.ui-v2 .v2-pr-h2 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
html.ui-v2 .v2-pr-rows-title { margin: var(--mg-space-24) var(--mg-space-4) var(--mg-space-8); }
html.ui-v2 .v2-pr-rows-title + .v2-pr-block { margin-top: 0; }
html.ui-v2 .v2-pr-list .mg-group-head:first-child { margin-top: var(--mg-space-14); }
html.ui-v2 .v2-pr-list > .mg-card:first-child { margin-top: var(--mg-space-12); }
html.ui-v2 .v2-pr-list .mg-group-head { margin-bottom: var(--mg-space-6); }
html.ui-v2 .v2-pr-empty { padding-top: var(--mg-space-32); padding-bottom: var(--mg-space-8); }

/* search tools: category chips + order switch */
html.ui-v2 .v2-pr-tools { display: flex; align-items: center; gap: var(--mg-space-8); margin-top: var(--mg-space-10); flex-wrap: wrap; }
html.ui-v2 .v2-pr-chips { flex: 1 1 100%; padding-bottom: var(--mg-space-2); }
html.ui-v2 .v2-pr-chips .mg-fchip { flex: none; }
html.ui-v2 .v2-pr-sort { margin-left: auto; }

/* notices and offers */
html.ui-v2 .v2-pr-block.mg-notice { align-items: flex-start; }
html.ui-v2 .v2-pr-block.mg-notice > span:last-child { display: flex; flex-direction: column; gap: var(--mg-space-4); }
html.ui-v2 .v2-pr-block.mg-notice strong { font-size: 15px; }
html.ui-v2 .v2-pr-offer { display: flex; flex-direction: column; gap: var(--mg-space-10); }
html.ui-v2 .v2-pr-offer p { margin: 0; font-size: 15px; line-height: 1.45; }
html.ui-v2 .v2-pr-offer > .mg-link { align-self: flex-start; }
html.ui-v2 .v2-pr-acts { display: flex; gap: var(--mg-space-8); }
html.ui-v2 .v2-pr-acts > .mg-btn-sec { flex: 1 1 0; }
html.ui-v2 .v2-pr-danger-btn { border-color: var(--mg-danger); color: var(--mg-danger); }

/* disclosure cards (pricing order, usual-job help) */
html.ui-v2 .v2-pr-details > summary { min-height: var(--mg-touch-min); display: flex; align-items: center; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--mg-text-primary); }
html.ui-v2 .v2-pr-details p { margin: 0 0 var(--mg-space-8); font-size: 14px; line-height: 1.5; color: var(--mg-text-on-tint); }
html.ui-v2 .v2-pr-help { display: flex; flex-direction: column; gap: var(--mg-space-6); }
html.ui-v2 .v2-pr-help ol { margin: 0; padding: 0 0 0 var(--mg-space-20); font-size: 14px; line-height: 1.5; color: var(--mg-text-on-tint); }

/* ---- 24 list: usual-job cards ---- */
html.ui-v2 .v2-pr-pkg { display: flex; align-items: center; gap: var(--mg-space-12); padding: var(--mg-space-14); min-height: var(--mg-row-min); }
html.ui-v2 .v2-pr-pkg__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--mg-space-4); }
html.ui-v2 .v2-pr-pkg__name { font-size: 16px; font-weight: 700; }
html.ui-v2 .v2-pr-pkg__meta { font-size: 14px; line-height: 1.4; color: var(--mg-text-muted); }
html.ui-v2 .v2-pr-pkg__amt { font-size: 17px; font-weight: 800; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- 24 opened / wizard: lines and forms ---- */
html.ui-v2 .v2-pr-form { display: flex; flex-direction: column; gap: var(--mg-space-12); }
html.ui-v2 .v2-pr-form .mg-grid2 { align-items: end; }
html.ui-v2 .v2-pr-select { appearance: auto; -webkit-appearance: auto; }
html.ui-v2 .v2-pr-lines { list-style: none; margin: 0; padding: 0; overflow: hidden; }
html.ui-v2 .v2-pr-line { display: flex; flex-direction: column; gap: var(--mg-space-8); padding: var(--mg-space-12) var(--mg-space-14); }
html.ui-v2 .v2-pr-line + .v2-pr-line { border-top: 1px solid var(--mg-divider); }
html.ui-v2 .v2-pr-line__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--mg-space-10); }
html.ui-v2 .v2-pr-line__name { font-size: 15px; font-weight: 700; }
html.ui-v2 .v2-pr-line__price { font-size: 14px; color: var(--mg-text-secondary); white-space: nowrap; font-variant-numeric: tabular-nums; }
html.ui-v2 .v2-pr-line__ctl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--mg-space-8); }
html.ui-v2 .v2-pr-line__acts { display: flex; align-items: center; gap: var(--mg-space-4); justify-content: flex-end; }
html.ui-v2 .v2-pr-line__acts .mg-ib { border: 1.5px solid var(--mg-border-control); font-size: 18px; font-weight: 700; }
html.ui-v2 .v2-pr-line__acts .mg-ib:disabled { opacity: .4; cursor: not-allowed; }
html.ui-v2 .v2-pr-lines .mg-input { min-width: 0; }
html.ui-v2 .v2-pr-foot { display: flex; flex-direction: column; gap: var(--mg-space-10); margin-top: var(--mg-space-16); }
html.ui-v2 .v2-pr-foot .mg-danger,
html.ui-v2 .v2-pr-foot .mg-link { align-self: center; }
html.ui-v2 .mg-price .mg-btn-sec--inline { flex: none; }

/* ---- 23 edit / add sheet ---- */
html.ui-v2 .v2-pr-backdrop { position: fixed; inset: 0; z-index: var(--mg-z-backdrop); overflow-y: auto; }
html.ui-v2 .v2-pr-sheet { max-height: 92vh; overflow-y: auto; animation: v2-pr-rise var(--mg-motion-base) var(--mg-ease-standard); }
html.ui-v2 .v2-pr-sheet-meta { margin: calc(-1 * var(--mg-space-6)) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--mg-space-8); font-size: 14px; color: var(--mg-text-muted); }
html.ui-v2 .v2-pr-sheet .mg-sheet__foot > .mg-danger,
html.ui-v2 .v2-pr-sheet .mg-sheet__foot > .mg-link { align-self: center; }
@keyframes v2-pr-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html.ui-v2 .v2-pr-sheet { animation: none; }
}

/* ---- the established import and templates panels inside a v2 frame ---- */
html.ui-v2 #v2-pr-legacy { display: none; }
html.ui-v2 .v2-prices-root[data-legacy="1"] #v2-pr-legacy { display: flex; flex-direction: column; gap: var(--mg-space-12); margin-top: var(--mg-space-14); }
html.ui-v2 #v2-pr-legacy > *:not(.hidden) { display: block; background: var(--mg-bg-card); border: 1px solid var(--mg-border-card); border-radius: var(--mg-radius-card); box-shadow: var(--mg-shadow-card); padding: var(--mg-space-14) var(--mg-space-16); margin: 0; color: var(--mg-text-primary); font-family: var(--font-mg-sans); }
html.ui-v2 #v2-pr-legacy h2,
html.ui-v2 #v2-pr-legacy h3 { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; margin: var(--mg-space-6) 0; }
html.ui-v2 #v2-pr-legacy .setting-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mg-text-secondary); }
html.ui-v2 #v2-pr-legacy .muted,
html.ui-v2 #v2-pr-legacy p { font-size: 14px; line-height: 1.45; color: var(--mg-text-secondary); }
html.ui-v2 #v2-pr-legacy input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
html.ui-v2 #v2-pr-legacy select,
html.ui-v2 #v2-pr-legacy textarea { min-height: var(--mg-touch-min); border: 1.5px solid var(--mg-border-control); border-radius: var(--mg-radius-input); padding: 0 var(--mg-space-12); font-size: 16px; background: var(--mg-bg-card); color: var(--mg-text-primary); width: 100%; }
html.ui-v2 #v2-pr-legacy label { font-size: 13px; font-weight: 600; color: var(--mg-text-secondary); }
html.ui-v2 #v2-pr-legacy label.check { font-size: 15px; font-weight: 400; color: var(--mg-text-primary); display: flex; gap: var(--mg-space-10); align-items: center; min-height: var(--mg-touch-min); }
html.ui-v2 #v2-pr-legacy .btn { min-height: var(--mg-touch-min); border: 1.5px solid var(--mg-border-control); border-radius: var(--mg-radius-control); background: var(--mg-bg-card); color: var(--mg-text-primary); font-size: 15px; font-weight: 600; box-shadow: none; padding: 0 var(--mg-space-14); }
html.ui-v2 #v2-pr-legacy .btn.cta,
html.ui-v2 #v2-pr-legacy .btn:not(.ghost):not(.danger) { background: var(--mg-action); border-color: var(--mg-action); color: var(--mg-on-action); }
html.ui-v2 #v2-pr-legacy .btn.danger { border-color: var(--mg-danger); color: var(--mg-danger); background: var(--mg-bg-card); }
html.ui-v2 #v2-pr-legacy .linkbtn { min-height: var(--mg-touch-min); color: var(--mg-action); font-weight: 700; }
html.ui-v2 #v2-pr-legacy .item { border-left: none; border: 1px solid var(--mg-divider); border-radius: var(--mg-radius-input); background: var(--mg-bg-card); }
html.ui-v2 #v2-pr-legacy .import-panel { border: none; padding: 0; margin: 0; background: transparent; }
html.ui-v2 #v2-pr-legacy :focus-visible { outline: 3px solid var(--mg-focus-ring); outline-offset: 2px; }

/* ---- 23: prices learned from earlier quotes ---- */
html.ui-v2 .v2-pr-note--tight { margin: 0 var(--mg-space-4) var(--mg-space-8); }
html.ui-v2 .v2-pr-learned + .v2-pr-learned { border-top: 1px solid var(--mg-divider); }
html.ui-v2 .v2-pr-learned__row { cursor: default; padding-bottom: var(--mg-space-6); }
html.ui-v2 .v2-pr-learned__acts { padding: 0 var(--mg-space-14) var(--mg-space-12); }
html.ui-v2 .v2-pr-learned__acts .mg-btn-sec { font-size: 14px; }
html.ui-v2 .v2-pr-diff { margin: 0 var(--mg-space-14) var(--mg-space-10); display: flex; gap: var(--mg-space-10); align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--mg-review-text); font-weight: 600; }
html.ui-v2 .v2-pr-diff .mg-rv { width: 24px; height: 24px; font-size: 13px; flex: none; }
html.ui-v2 .mg-prices > .v2-pr-callout { margin-top: var(--mg-space-2); }
html.ui-v2 .v2-pr-empty__learn { font-size: 14px; }

/* ---- desktop: list + detail (≥1024 px) ---- */
@media (min-width: 1024px) {
  html.ui-v2 .v2-prices-root { max-width: 760px; padding: 0 var(--mg-space-24) var(--mg-space-32); }
  html.ui-v2 .v2-prices-root:has(.v2-pr-split) { max-width: 1200px; }
  html.ui-v2 .v2-pr-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--mg-space-32); align-items: start; }
  html.ui-v2 .v2-pr-split__detail { position: sticky; top: 72px; max-height: calc(100vh - 96px); overflow-y: auto; padding: 0 var(--mg-space-4) var(--mg-space-16); }
  html.ui-v2 .v2-pr-split__detail .v2-pr-back { display: none; }
  html.ui-v2 .v2-pr-pkg[aria-current="true"] { border: 2px solid var(--mg-selected); background: var(--mg-selected-soft); }
  /* The price sheet becomes a detail panel beside the list. */
  html.ui-v2 .v2-pr-backdrop { justify-content: flex-end; align-items: stretch; background: var(--mg-backdrop); }
  html.ui-v2 .v2-pr-sheet { max-width: 460px; max-height: none; height: 100%; border-radius: var(--mg-radius-sheet) 0 0 var(--mg-radius-sheet); animation: none; }
  html.ui-v2 .v2-pr-sheet .mg-sheet__grip { display: none; }
}

/* ---- I1–I3 Behozás: price list and earlier quotes (native v2) ---- */
html.ui-v2 .v2-imp-choices { gap: var(--mg-space-12); }
html.ui-v2 .v2-imp-choice { display: flex; align-items: flex-start; gap: var(--mg-space-14); padding: var(--mg-space-16); min-height: var(--mg-row-min); }
html.ui-v2 .v2-imp-choice__icon { width: 40px; height: 40px; flex: none; border-radius: var(--mg-radius-input); background: var(--mg-bg-sunken); color: var(--mg-text-on-tint); display: inline-flex; align-items: center; justify-content: center; }
html.ui-v2 .v2-imp-choice__icon svg { width: 22px; height: 22px; }
html.ui-v2 .v2-imp-choice__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--mg-space-4); }
html.ui-v2 .v2-imp-choice__title { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: var(--mg-space-8); }
html.ui-v2 .v2-imp-choice__desc { font-size: 15px; line-height: 1.45; color: var(--mg-text-secondary); }
html.ui-v2 .v2-imp-choice__io { margin-top: var(--mg-space-8); display: flex; flex-direction: column; gap: var(--mg-space-2); padding: var(--mg-space-10) var(--mg-space-12); border-radius: var(--mg-radius-input); background: var(--mg-bg-page); font-size: 15px; line-height: 1.45; color: var(--mg-text-primary); }
html.ui-v2 .v2-imp-choice__io b { font-weight: 700; }
html.ui-v2 .v2-imp-choice .mg-row__chev { width: 20px; height: 20px; flex: none; align-self: center; color: var(--mg-text-muted); }
html.ui-v2 .v2-imp-choice--off { box-shadow: none; background: transparent; border-style: dashed; }
html.ui-v2 .v2-imp-choice--off .v2-imp-choice__title { color: var(--mg-text-secondary); }

html.ui-v2 .v2-imp-drop { display: flex; flex-direction: column; align-items: stretch; gap: var(--mg-space-10); }
html.ui-v2 .v2-imp-drop__lead { margin: 0; font-size: 15px; line-height: 1.45; color: var(--mg-text-secondary); }
html.ui-v2 .v2-imp-pick { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--mg-space-8); cursor: pointer; }
html.ui-v2 .v2-imp-pick svg { width: 20px; height: 20px; flex: none; }
html.ui-v2 .v2-imp-pick:focus-within { outline: 3px solid var(--mg-focus-ring); outline-offset: 2px; }
/* The real file input stays in the label (its accessible name), visually hidden. */
html.ui-v2 .v2-imp-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
html.ui-v2 .v2-imp-chosen { margin: 0; font-size: 15px; line-height: 1.4; color: var(--mg-text-primary); overflow-wrap: anywhere; }
html.ui-v2 .v2-imp-chosen--none { color: var(--mg-text-muted); }

html.ui-v2 .v2-imp-kpis { margin-top: var(--mg-space-14); }
html.ui-v2 .v2-imp-kpis .mg-kpi__value { font-size: 22px; }
html.ui-v2 .v2-imp-seg { display: flex; flex-direction: column; gap: var(--mg-space-6); }
html.ui-v2 .v2-imp-seg .mg-seg button { padding: 0 var(--mg-space-6); line-height: 1.2; }
html.ui-v2 .v2-imp-check + .mg-error { margin-top: calc(-1 * var(--mg-space-4)); }
html.ui-v2 .v2-imp-attest .mg-check__text { font-size: 15px; line-height: 1.5; }
html.ui-v2 .v2-imp-wait { display: flex; align-items: center; justify-content: center; gap: var(--mg-space-12); min-height: var(--mg-touch-min); font-size: 15px; color: var(--mg-text-secondary); }
html.ui-v2 .v2-imp-rows .mg-price { cursor: default; }
html.ui-v2 .v2-imp-rows .mg-price__meta { flex-wrap: wrap; }

/* per-file state */
html.ui-v2 .v2-imp-files { list-style: none; margin: 0; padding: 0; overflow: hidden; }
html.ui-v2 .v2-imp-file-row { display: flex; align-items: center; justify-content: space-between; gap: var(--mg-space-10); padding: var(--mg-space-12) var(--mg-space-14); min-height: var(--mg-touch-min); }
html.ui-v2 .v2-imp-file-row + .v2-imp-file-row { border-top: 1px solid var(--mg-divider); }
html.ui-v2 .v2-imp-file-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--mg-space-2); }
html.ui-v2 .v2-imp-file-row__name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
html.ui-v2 .v2-imp-file-row__meta { font-size: 14px; color: var(--mg-text-muted); }
html.ui-v2 .v2-imp-file-row__state { flex: none; max-width: 55%; white-space: normal; text-align: right; }

/* review and candidates */
html.ui-v2 .v2-imp-doc__head { display: flex; align-items: center; justify-content: space-between; gap: var(--mg-space-10); flex-wrap: wrap; }
html.ui-v2 .v2-imp-doc--off { background: var(--mg-bg-subtle); box-shadow: none; }
html.ui-v2 .v2-imp-sub { display: flex; flex-direction: column; gap: var(--mg-space-8); padding-top: var(--mg-space-10); border-top: 1px solid var(--mg-divider); }
html.ui-v2 .v2-imp-sub > strong { font-size: 15px; }
html.ui-v2 .v2-imp-h3 { margin: var(--mg-space-4) 0 0; font-size: 15px; font-weight: 800; }
html.ui-v2 .v2-imp-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
html.ui-v2 .v2-imp-item { display: flex; flex-direction: column; gap: var(--mg-space-6); padding: var(--mg-space-10) 0; }
html.ui-v2 .v2-imp-item + .v2-imp-item { border-top: 1px solid var(--mg-divider); }
html.ui-v2 .v2-imp-item__name { font-size: 15px; font-weight: 700; }
html.ui-v2 .v2-imp-item .mg-chip { align-self: flex-start; }
html.ui-v2 .v2-imp-cand { display: flex; flex-direction: column; gap: var(--mg-space-8); }
html.ui-v2 .v2-imp-cand--conflict { border: 2px solid var(--mg-review); }
html.ui-v2 .v2-imp-cand__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--mg-space-10); }
html.ui-v2 .v2-imp-cand__name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
html.ui-v2 .v2-imp-cand__price { font-size: 17px; font-weight: 800; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
html.ui-v2 .v2-imp-cand .v2-pr-diff { margin: 0; }
html.ui-v2 .v2-imp-cand__form { gap: var(--mg-space-10); }
html.ui-v2 .v2-imp-decided { margin: 0; }
html.ui-v2 .v2-imp-pkg .v2-pr-acts { margin-top: var(--mg-space-2); }
html.ui-v2 .v2-imp .v2-pr-foot .mg-danger { margin-top: var(--mg-space-4); }
html.ui-v2 .v2-imp .v2-pr-foot .mg-link { align-self: center; }

/* I3a: what happens to the files, then the statement as one card (design 23d) */
html.ui-v2 .v2-imp-info ul { margin: var(--mg-space-8) 0 0; padding: 0 0 0 var(--mg-space-20); font-size: 15px; line-height: 1.5; color: var(--mg-text-primary); }
html.ui-v2 .v2-imp-check__title { display: block; margin-bottom: var(--mg-space-4); font-size: 16px; font-weight: 700; }
html.ui-v2 .v2-imp-attest .mg-check--card:has(.mg-check__input:checked) { border: 2px solid var(--mg-selected); }

/* I2 / I3 done (design 23c2 / 23g) */
html.ui-v2 .v2-imp-done { display: flex; flex-direction: column; align-items: center; gap: var(--mg-space-10); padding: var(--mg-space-32) var(--mg-space-8) 0; text-align: center; }
html.ui-v2 .v2-imp-done .mg-h1:focus { outline: none; }
html.ui-v2 .v2-imp-done__mark { width: 76px; height: 76px; border-radius: 50%; background: var(--mg-done-tint); color: var(--mg-own-text); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--mg-space-6); }
html.ui-v2 .v2-imp-done__mark svg { width: 36px; height: 36px; }
html.ui-v2 .v2-imp-sum { list-style: none; margin-top: var(--mg-space-24); padding: 0; overflow: hidden; }
html.ui-v2 .v2-imp-sum__row { display: flex; align-items: center; gap: var(--mg-space-14); padding: var(--mg-space-14) var(--mg-space-16); min-height: var(--mg-touch-min); }
html.ui-v2 .v2-imp-sum__row + .v2-imp-sum__row { border-top: 1px solid var(--mg-divider); }
html.ui-v2 .v2-imp-sum__row .mg-ok svg { width: 16px; height: 16px; }
html.ui-v2 .v2-imp-sum__none { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--mg-bg-sunken); color: var(--mg-text-secondary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
html.ui-v2 .v2-imp-sum__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--mg-space-2); }
html.ui-v2 .v2-imp-sum__label { font-size: 16px; font-weight: 700; }
html.ui-v2 .v2-imp-sum__desc { font-size: 14px; color: var(--mg-text-secondary); }
html.ui-v2 .v2-imp-sum__n { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
