/* P2 · Prüfen und Prüfplatz. Alle Farben und Bausteine stammen aus P0. */
.p2-shell { display: grid; grid-template-columns: 72px minmax(0, 1fr); height: 100dvh; background: var(--desk); }
.p2-shell #main { margin: 0; padding: 0; min-width: 0; overflow: hidden; }
.p2-rail { display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--side); border-right: 1px solid var(--line); padding: 12px 8px; overflow-y: auto; }
.p2-rail .brand { height: 40px; padding: 0; margin: 0 0 8px; }
.p2-rail .brand svg { width: 36px; height: 36px; color: var(--accent-ink); }
.p2-rail nav, .p2-rail-bottom { display: grid; gap: 8px; width: 100%; justify-items: center; }
.p2-rail .btn { position: relative; width: 48px; height: 44px; padding: 12px; color: var(--muted); }
.p2-rail .btn svg { width: 22px; height: 22px; }
.p2-rail [aria-current=page] { color: var(--accent-ink); background: var(--accent-soft); border-left: 3px solid var(--accent-ink); }
.p2-rail .count { position: absolute; right: -2px; bottom: -4px; background: var(--accent); color: var(--on-accent); font-size: 14px; padding: 0 5px; min-width: 20px; border-radius: var(--pill); }
.p2-rail-setup { border-top: 1px solid var(--line); padding-top: 16px; }
.p2-rail-bottom { margin-top: auto; padding-top: 16px; }
.p2-rail .person-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--pill); background: var(--sunken); font-size: 14px; color: var(--ink); font-weight: 600; text-decoration: none; }
.p2-review { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 560px; grid-template-rows: 56px auto minmax(0, 1fr); height: 100%; min-width: 0; }
.p2-reviewbar { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 20px; background: var(--desk); border-bottom: 1px solid var(--line); z-index: 4; }
.p2-reviewbar .rnav { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.p2-reviewbar .rnav__btn { min-width: 36px; width: 36px; height: 36px; padding: 8px; }
.p2-review-tools { display: flex; align-items: center; gap: 12px; }
.p2-review-tools select { width: 100px; }
.p2-review .p2-offline { grid-column: 1 / -1; grid-row: 2; margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--check-line); background: var(--check-bg); color: var(--check); padding: 12px 20px; }
.p2-review .p2-offline[hidden] { display: none; }
.p2-review .review-doc { grid-column: 1; grid-row: 3; min-height: 0; overflow: auto; background: var(--desk); padding: 20px 28px 40px; scroll-behavior: smooth; }
.p2-review .review-doc .pages { width: 100%; max-width: 900px; margin: 0 auto; }
.p2-review .review-doc.z125 .pages { width: 125%; max-width: 1125px; }
.p2-review .review-doc.z150 .pages { width: 150%; max-width: 1350px; }
.p2-review .page-img { background: var(--paper); box-shadow: var(--shadow-pop); border: 0; border-radius: 0; }
.p2-review .mark, .p2-review .mark.ok, .p2-review .mark.dim { background: var(--marker-wash); box-shadow: none; border: 0; border-radius: 2px; }
.p2-review .mark.warn { background: var(--marker-wash-soft); border: 2px solid var(--unsure); box-shadow: none; }
.p2-review .mark.on { background: var(--marker-wash); border: 2px solid var(--accent); box-shadow: none; }
.p2-review .mark.on::after { content: ''; position: absolute; right: -7px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: var(--pill); background: var(--accent); }
.p2-review .review-side { grid-column: 2; grid-row: 3; min-width: 0; overflow: hidden; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--surface); }
.p2-review .rhead { padding: 16px; flex-shrink: 0; }
.p2-review .rhead .fname { font: 700 22px/1.3 var(--head); white-space: normal; overflow-wrap: anywhere; margin: 0; }
.p2-review .rmeta { margin: 2px 0 0; overflow-wrap: anywhere; }
.p2-review .rstate { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.p2-review .rstate > b { font: 700 30px/1.2 var(--head); color: var(--ink); }
.p2-review .rstate > span { color: var(--muted); font-size: 15px; }
.p2-review .rstate.done { justify-content: space-between; gap: 8px; }
.p2-review .rstate.done > b { font: 600 14px/1.5 var(--body); color: var(--safe); background: var(--safe-bg); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; }
.p2-approved svg { width: 18px; height: 18px; }
.p2-review .review-fields { min-height: 0; flex: 1; overflow: auto; padding: 12px 16px 24px; }
.p2-review .rulebox { margin: 0 0 16px; border: 0; background: transparent; padding: 0; }
.p2-review .rule-res { padding: 6px 0; font-size: 15px; }
.p2-review .rule-res.ok { color: var(--safe); background: transparent; }
.p2-review .rule-res.lv-fehler { color: var(--error); background: transparent; }
.p2-review .rule-res.lv-warnung { color: var(--check); background: transparent; }
.p2-review .rule-res svg { width: 20px; height: 20px; flex-shrink: 0; }
.p2-review .qcard { margin: 0 0 16px; padding: 16px; border: 2px solid var(--accent); border-radius: var(--r-card); background: var(--surface); box-shadow: none; }
.p2-review .qtop { margin: 0 0 8px; gap: 12px; }
.p2-review .qtop h3 { font: 700 20px/1.3 var(--head); }
.p2-review .src { font-size: 14px; color: var(--accent-ink); white-space: nowrap; }
.p2-review .v2-nah { display: block; margin: 0 0 8px; height: 64px; max-height: 88px; min-height: 0; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background-color: var(--paper); }
.p2-review .v2-nah rect { fill: var(--marker-wash); stroke: var(--unsure); stroke-width: 2; vector-effect: non-scaling-stroke; }
.p2-review .qwhy { color: var(--muted); margin: 8px 0; font-size: 15px; line-height: 1.4; }
.p2-review .qask { font-weight: 700; margin: 8px 0; font-size: 15px; line-height: 1.4; }
.p2-review .answers { display: grid; grid-template-columns: 1fr; gap: 8px; }
.p2-review .ans.value { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 10px 16px; color: var(--ink); border: 1px solid var(--accent-line); border-radius: var(--r-ctl); background: var(--surface); text-align: left; font-size: 16px; font-weight: 700; }
.p2-review .ans.value:hover, .p2-review .ans.value[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); }
.p2-review .ans .src2 { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }
.p2-review .ans .k { font-size: 14px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); min-width: 26px; min-height: 28px; display: grid; place-items: center; }
.p2-review .answers.small { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; gap: 8px; }
.p2-review .answers.small .btn { padding: 0 6px; font-size: 14px; white-space: normal; line-height: 1.2; }
.p2-review .qother { padding: 12px 0; }
.p2-review .qother .btn.primary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.p2-review .allfields { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); }
.p2-review .allfields > summary { min-height: 48px; padding: 12px 16px; font-size: 15px; }
.p2-review .vfield { margin: 0; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.p2-review .vfield-top { align-items: center; }
.p2-review .vfield input:not([type=checkbox]) { margin-top: 6px; font-variant-numeric: tabular-nums; }
.p2-review .vfield-sub { font-size: 14px; flex-wrap: wrap; }
.p2-review .p2-values { margin: 0; padding: 4px 16px; border: 1px solid var(--line); border-radius: var(--r-card); }
.p2-review .p2-values > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.p2-review .p2-values > div:last-child { border-bottom: 0; }
.p2-review .p2-values dt { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.p2-review .p2-values dt svg { color: var(--safe); width: 18px; height: 18px; flex-shrink: 0; }
.p2-review .p2-values dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.p2-review .rfoot { flex-shrink: 0; padding: 12px 16px; background: var(--surface); gap: 8px; z-index: 3; }
.p2-review .rfoot .lead { display: flex; gap: 12px; flex-wrap: nowrap; }
.p2-review .rfoot .lead > .btn { flex: 1; min-width: 0; }
.p2-review .rfoot p { margin: 0; }
.p2-review .keys { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 14px; }
.p2-review .keys kbd { font-size: 14px; background: var(--surface); color: var(--muted); border-color: var(--line-strong); }
.p2-review .keys .linkish { font-size: 14px; }
.p2-review .p2-defer { border: 1px solid var(--line); background: var(--surface); padding: 20px; border-radius: var(--r-card); }
.p2-defer h2 { font: 700 20px/1.3 var(--head); margin: 0 0 20px; }
.p2-defer .reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; padding: 0; margin: 0 0 16px; gap: 12px; }
.p2-defer .reasons label { min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); display: flex; align-items: center; gap: 8px; padding: 10px; font-size: 14px; }
.p2-defer .reasons label:has(:checked) { border-color: var(--accent); background: var(--accent-soft); }
.p2-defer textarea { min-height: 96px; resize: vertical; }
.p2-defer > .row { margin-top: 16px; }
.p2-defer > .row > .btn { flex: 1; }
.p2-review .p2-reading, .p2-review .p2-partial { padding: 20px; margin: 0 0 16px; }
.p2-reading h2 { font: 700 28px/1.3 var(--head); }
.p2-reading-steps { list-style: none; padding: 0; margin: 28px 0; }
.p2-reading-steps li { position: relative; display: flex; gap: 16px; min-height: 80px; }
.p2-reading-steps li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 1px; background: var(--line-strong); }
.p2-step-icon { flex: 0 0 32px; height: 32px; border: 2px dashed var(--line-strong); border-radius: var(--pill); display: grid; place-items: center; }
.p2-step-icon svg { width: 20px; height: 20px; }
.p2-reading-steps .done .p2-step-icon { background: var(--safe); border: 0; color: var(--on-accent); }
.p2-reading-steps .running .p2-step-icon { border: 2px solid var(--accent); }
.p2-reading-steps .running .p2-step-icon::after { content: ''; width: 14px; height: 14px; border-radius: var(--pill); background: var(--accent); }
.p2-reading-steps p { margin-top: 4px; }
.p2-partial h2 { margin-bottom: 16px; }
.p2-is-reading .page-img::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--accent); opacity: .3; filter: blur(3px); animation: p2-read-scan 12s linear infinite; pointer-events: none; }
@keyframes p2-read-scan { from { top: 0; } to { top: calc(100% - 8px); } }
.p2-review .p2-error-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 32px; }
.p2-error-state h2 { font: 700 28px/1.3 var(--head); }
.p2-error-state > .btn { width: 100%; }
.p2-error-icon { position: relative; color: var(--muted); }
.p2-error-icon > svg:first-child { width: 72px; height: 72px; }
.p2-error-icon > svg:last-child { position: absolute; width: 72px; height: 72px; left: 0; top: 0; color: var(--check); }
.p2-connector { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: hidden; }
.p2-connector path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.p2-connector circle { fill: var(--accent); }
.p2-review .v2-abgleich { margin: 0 0 16px; }
.p2-review .v2-abgleich .v2-ok { background: transparent; padding: 4px 0; }
.p2-review .v2-verlauf { margin-top: 16px; }
.p2-review .v2-vier { margin: 0 0 16px; padding: 16px; border-radius: var(--r-card); }
.p2-review .p2-bank { border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; margin-top: 16px; }
.p2-bank h2 { margin: 0 0 16px; font: 700 20px/1.3 var(--head); }
.p2-bank p { margin: 8px 0 16px; }
.p2-review .p2-bank .v2-telefon { margin-top: 16px; }
.p2-bank .v2-telefon[hidden] { display: none; }
body:has(.p2-shell) .demo-bar { position: relative; }
body:has(.p2-shell).demo-mode .p2-shell { height: calc(100dvh - var(--demo-bar-h, 44px)); }
@media (max-width: 1300px) and (min-width: 861px) { .p2-review { grid-template-columns: minmax(0, 1fr) minmax(420px, 44%); } .p2-reviewbar { gap: 8px; padding-inline: 12px; } .p2-review-tools { gap: 8px; } }
@media (max-width: 1100px) and (min-width: 861px) { .p2-original span { display: none; } .p2-review .rhead, .p2-review .review-fields, .p2-review .rfoot { padding-inline: 16px; } .p2-review .qcard { padding: 16px; } }
@media (max-width: 860px) {
  .p2-shell { display: block; height: auto; min-height: 100dvh; }
  .p2-rail { display: none; }
  .p2-shell #main { overflow: visible; padding: 0; }
  .p2-review { height: auto; display: flex; flex-direction: column; }
  .p2-reviewbar { position: sticky; top: 0; height: 56px; padding: 8px 12px; gap: 4px; }
  .p2-reviewbar .rnav { gap: 0; font-size: 14px; }
  .p2-reviewbar .rnav__btn { width: 28px; min-width: 28px; padding: 4px; }
  .p2-reviewbar .p2-back { padding: 0 4px; min-width: 0; font-size: 14px; gap: 2px; }
  .p2-review-tools { gap: 0; }
  .p2-review-tools select { width: 76px; font-size: 14px; }
  .p2-review-tools .p2-original, .p2-review-tools .trial { display: none; }
  .p2-review .review-doc, .p2-review .review-side { display: flex !important; }
  .p2-review .review-doc { position: relative; display: block !important; height: var(--p2-paper-h, 32dvh); min-height: 0; max-height: 38dvh; flex: none; padding: 8px 12px; }
  .p2-review .review-side { overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
  .p2-review .review-fields { overflow: visible; padding: 6px 12px 24px; }
  .p2-review .rhead { padding: 8px 12px 4px; }
  .p2-review .rhead .fname { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .p2-review .rmeta { display: none; }
  .p2-review .rstate { margin-top: 4px; }
  .p2-review .rstate > b { font-size: 24px; }
  .p2-review .rstate { gap: 16px; }
  .p2-review .qcard { padding: 10px; }
  .p2-review .qtop h3 { font-size: 18px; }
  .p2-review .v2-nah { height: 64px; }
  .p2-review .qwhy, .p2-review .qask { font-size: 14px; margin: 6px 0; }
  .p2-review .answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p2-review .answers.small { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
  .p2-review .ans.value { padding: 8px; font-size: 15px; }
  .p2-review .ans .k { display: none; }
  .p2-review .answers.small .btn { min-height: 44px; }
  .p2-review .rfoot { position: sticky; bottom: 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .p2-review .rfoot .lead { gap: 8px; }
  .p2-review .p2-defer-button { flex: 0 0 48px !important; padding: 10px; }
  .p2-defer-button > span { display: none; }
  .p2-review .keys, .p2-connector { display: none; }
  .p2-review .rfoot .btn { min-height: 48px; height: auto; }
  .p2-review .p2-offline { position: sticky; top: 56px; z-index: 3; }
  .p2-review .p2-error-state { min-height: 400px; padding: 32px 20px; }
  .p2-review .p2-values { padding-inline: 12px; }
  .p2-defer .reasons { gap: 8px; }
  .p2-review .p2-defer { padding: 16px; }
  body:has(.p2-shell).demo-mode .p2-shell { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .p2-review *, .p2-review *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .p2-is-reading .page-img::after { top: 40%; } }
/* P2 · Prüfen-Liste und Sammelfreigabe. In web/index.html nach ziel.css einbinden. */
.p2-list-tools { align-items: stretch; gap: 10px; }
.p2-search, .p2-select { display: flex; align-items: center; gap: 8px; }
.p2-search { position: relative; }
.p2-search > svg, .p2-select > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.p2-search input { padding-left: 2px; min-width: 240px; }
.p2-select { padding: 0 10px; border: 1px solid var(--input-line); border-radius: var(--r-ctl); background: var(--surface); }
.p2-select select { border: 0; min-height: 40px; padding: 0; background: transparent; }
.p2-tabs button { gap: 8px; }
.p2-tabs button[data-leer=true] { color: var(--muted); opacity: 1; }
.p2-tabs .count, .p2-tabs .count.warn { background: var(--sunken); color: var(--muted); }
.p2-tabs .count.active { background: var(--accent); color: var(--on-accent); }
.p2-tabs button[data-leer=true] .count { background: var(--sunken); color: var(--muted); opacity: 1; }
.p2-doc-table { min-width: 900px; }
.p2-doc-table th:first-child, .p2-doc-table td:first-child { width: 42px; }
.p2-doc-table td { vertical-align: middle; }
.p2-doc-table .p2-check { text-align: center; }
.p2-doc-table .p2-check input, .p2-doc-card > input { width: 20px; height: 20px; accent-color: var(--accent); }
.p2-doc-table .brief { min-width: 190px; }
.p2-doc-table .brief b { display: block; }
.p2-subline { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.p2-amount { font-weight: 600; white-space: nowrap; }
.p2-more svg { width: 20px; height: 20px; color: var(--muted); }
.p2-list .opentag.safe { background: var(--safe-bg); color: var(--safe); }
.p2-list .opentag.clarify { background: var(--check-bg); color: var(--check); }
.p2-list .opentag.rule { background: var(--error-bg); color: var(--error); }
.p2-batch-table-wrap .opentag.eyes { margin-left: 6px; background: var(--check-bg); color: var(--check); }
.p2-selection-bar { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 16px; margin: 18px -24px -24px; padding: 14px 24px; background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px var(--shadow-alpha-soft); }
.p2-selection-bar > span { margin-right: auto; }
.p2-batch-table-wrap { max-height: 340px; overflow: auto; margin: 18px 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.p2-batch-table-wrap table { margin: 0; }
.p2-batch-table-wrap tfoot { border-top: 2px solid var(--line-strong); }
.p2-doc-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.p2-doc-card > div { min-width: 0; }
.p2-doc-card > div:only-child { grid-column: 1 / -1; }
.p2-card-amount { float: right; font-weight: 700; color: var(--ink); }
.p2-doc-card .opentag { margin-top: 6px; }
@media (max-width: 720px) {
  .p2-list-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .p2-search { grid-column: 1 / -1; }
  .p2-search input { min-width: 0; width: 100%; }
  .p2-select select { width: 100%; }
  .p2-selection-bar { margin: 14px -16px -16px; padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .p2-selection-bar > span { width: 100%; }
  .p2-selection-bar .btn { flex: 1; }
}
.p2-review .vfield { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; align-items: center; }
.p2-review .vfield-top { margin: 0; flex-wrap: wrap; gap: 6px; }
.p2-review .vfield-top .src { width: 100%; }
.p2-review .vfield input:not([type=checkbox]) { margin-top: 0; text-align: right; }
.p2-review .vfield-sub, .p2-review .vfield > .error-text, .p2-review .vfield > .quote { grid-column: 1 / -1; }
.p2-field-status { display: inline-flex; align-items: center; color: var(--safe); }
.p2-field-status.pending { color: var(--check); font-size: 20px; }
.p2-field-status svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .p2-review .vfield { grid-template-columns: minmax(0, 1fr); } .p2-review .vfield input:not([type=checkbox]) { text-align: left; } }
.p2-tabs [role=tab][data-leer] { display: inline-flex; }
.p2-list .p2-more { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-ctl); background: transparent; cursor: pointer; }
.p2-list .p2-more:hover { background: var(--sunken); }
.p2-list .p2-doc-table th:nth-child(3), .p2-list .p2-doc-table td.p2-amount, .p2-batch-table-wrap .num { text-align: right; }
.p2-list .p2-search { border: 1px solid var(--input-line); border-radius: var(--r-ctl); padding-left: 12px; background: var(--surface); }
.p2-list .p2-search input { border: 0; }
.p2-list .p2-selection-bar { bottom: 0; margin-inline: 0; box-shadow: none; }
@media (max-width: 860px) { .p2-list .p2-selection-bar { bottom: calc(64px + env(safe-area-inset-bottom)); } .p2-tabs { overflow-x: auto; } .p2-tabs [role=tab] { padding-inline: 10px; } }
.p2-document-menu { position: relative; }
.p2-document-menu summary { list-style: none; }
.p2-document-menu summary::-webkit-details-marker { display: none; }
.p2-document-menu .shell-menu { z-index: 6; position: absolute; right: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); border-radius: var(--r-card); padding: 6px; }
@media (max-width: 860px) {
  .p2-review .review-side:has(.rfoot) { padding-bottom: var(--p2-foot-h, 104px); }
  .p2-review .rfoot { position: fixed; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); }
}

/* P2b · Nacharbeit nach Opus-Sichtprüfung. */
.p2-tabs [role=tab] { color: var(--muted); opacity: 1; }
.p2-tabs [role=tab][aria-selected=true] { color: var(--ink); }
.p2-tabs .count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; padding: 0 6px; }
.p2-list .p2-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; white-space: nowrap; }
.p2-list .opentag { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.p2-status-more { color: var(--muted); font-size: 14px; flex: none; }
.p2-received { white-space: nowrap; }
.p2-subline { max-width: 280px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p2-checklist { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.p2-checklist .v2-abgleich, .p2-checklist .rulebox { margin: 0; flex: 0 1 auto; min-width: 0; }
.p2-checklist .v2-abgleich ul { margin: 0; }
.p2-checklist .v2-ok, .p2-checklist .rule-res { padding: 0; font-size: 14px; gap: 6px; }
.p2-checklist .v2-ok svg, .p2-checklist .rule-res svg { width: 18px; height: 18px; }
.p2-checklist:has(.v2-hw), .p2-checklist:has(.rule-res:not(.ok)) { flex-direction: column; align-items: stretch; }
.p2-review .v2-hw.warnung { background: var(--check-bg); color: var(--check); border-color: var(--check-line); opacity: 1; }
.p2-review .v2-hw.warnung span, .p2-review .v2-hw.warnung svg { color: inherit; opacity: 1; }
.p2-bank-title { display: block; margin-bottom: 4px; font-weight: 700; }
.p2-nav-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 360px; }
.p2-reviewbar .rnav { min-width: 0; flex-shrink: 1; }
.p2-zoom-menu, .p2-fullscreen { display: none; }
body:has(.p2-shell .p2-review) .toast-host { bottom: var(--pc-toast-bottom, 12px); left: var(--pc-toast-left, 84px); right: auto; width: var(--pc-toast-width, calc(100vw - 656px)); max-height: var(--pc-toast-height, 64px); overflow: auto; margin: 0; pointer-events: auto; }
@media (max-width: 860px) {
  .p2-review .p2-zoom-desktop { display: none; }
  .p2-zoom-menu { display: block; position: relative; }
  .p2-zoom-menu summary { list-style: none; width: 44px; height: 44px; padding: 12px; }
  .p2-zoom-menu summary::-webkit-details-marker { display: none; }
  .p2-zoom-options { position: absolute; right: 0; top: 100%; padding: 6px; min-width: 120px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); box-shadow: var(--shadow-pop); }
  .p2-zoom-options .btn { min-height: 44px; }
  .p2-nav-title { max-width: 160px; }
  .p2-review .p2-fullscreen { display: flex; position: sticky; top: 0; z-index: 2; margin: 0 0 8px auto; min-height: 44px; }
  .p2-review.p2-paper-full .review-doc { position: fixed; inset: 0; height: 100dvh; max-height: none; z-index: 20; padding: 12px; }
  .p2-review .p2-stop-reason { font-size: 14px; line-height: 1.4; }
  .p2-checklist { gap: 10px; margin-bottom: 8px; }
  .p2-checklist .v2-ok, .p2-checklist .rule-res { font-size: 14px; line-height: 1.3; }
  .p2-list .opentag { max-width: min(280px, calc(100vw - 130px)); }
}
@media (min-width: 861px) and (max-height: 950px) {
  .p2-review .qcard { padding: 12px; }
  .p2-review .v2-nah { height: 64px; }
  .p2-review .qwhy { font-size: 14px; }
  .p2-review .qwhy, .p2-review .qask { margin-block: 6px; }
  .p2-review .answers.small { margin-top: 8px; }
  .p2-review .keys { line-height: 1.3; }
}
@media (max-width: 860px) {
  .p2-review .p2-fullscreen { width: fit-content; margin-bottom: -44px; }
}
body:has(.p2-selection-bar) .toast-host { bottom: calc(var(--p2-selection-h, 100px) + 12px); }
@media (max-width: 860px) { body:has(.p2-selection-bar) .toast-host { bottom: calc(var(--p2-selection-h, 180px) + 80px + env(safe-area-inset-bottom)); } }
