/* F7: "Seiten bearbeiten" (app/ui/assets/page-edit-v1.js). Samo tokeni. */
.scrim.pe-scrim { padding: 12px; }
.scrim .pe-modal { width: min(1120px, 100%) !important; max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.pe-modal .pe-mb { flex: 1; min-height: 0; overflow: auto; }
.pe-file { margin-bottom: 8px; }
.pe-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.pe-sum { margin-left: auto; color: var(--v5-ink2, var(--ink)); font-weight: 600; }
.pe-add { margin-bottom: 10px; }
.pe-add input { width: 100%; }
.pe-hits { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; max-height: 220px; overflow: auto; }
.pe-hit { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; text-align: left; padding: 6px 8px; border: 1px solid var(--v5-line, var(--line));
  border-radius: var(--v5-r-sm, var(--r-sm)); background: var(--v5-card, var(--card)); color: var(--v5-ink, var(--ink)); cursor: pointer; min-width: 0; }
.pe-hit:hover { background: var(--v5-bg2, var(--bg)); }
.pe-hit .ell { min-width: 0; }
.pe-srcs { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 8px; }
.pe-src { min-width: 0; overflow-wrap: anywhere; }
.pe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; padding: 4px 2px 8px; }
.pe-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--v5-line, var(--line));
  border-radius: var(--v5-r-sm, var(--r-sm)); background: var(--v5-card, var(--card)); cursor: grab; min-width: 0; }
.pe-tile.cut { border-left: 4px solid var(--v5-info, var(--blue)); }
.pe-tile.cut::before { content: ""; position: absolute; left: -8px; top: 0; bottom: 0; width: 3px; background: var(--v5-info, var(--blue)); border-radius: var(--v5-r-pill, var(--r-sm)); }
.pe-tile.over { outline: 2px dashed var(--v5-info, var(--blue)); outline-offset: 2px; }
.pe-tile.drag { opacity: .45; }
.pe-tile.del .pe-img { opacity: .3; }
.pe-tile.del .pe-cap { text-decoration: line-through; }
.pe-docl { min-height: 1.3em; font-weight: 600; color: var(--v5-info, var(--blue)); font-size: var(--v5-t-sm, var(--fs-xs)); }
.pe-img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--v5-bg2, var(--bg)); overflow: hidden;
  border-radius: var(--v5-r-xs, var(--r-sm)); }
.pe-img img { max-width: 100%; max-height: 100%; display: block; background: var(--v5-card, var(--card)); box-shadow: var(--v5-sh, none); transition: transform var(--v5-dur-1, .12s) var(--v5-ease, ease); }
.pe-img img.r90 { transform: rotate(90deg); }
.pe-img img.r180 { transform: rotate(180deg); }
.pe-img img.r270 { transform: rotate(270deg); }
.pe-cap { color: var(--v5-muted, var(--muted)); font-size: var(--v5-t-sm, var(--fs-xs)); }
.pe-blank { color: var(--v5-warn, var(--amber)); }
.pe-act { display: flex; gap: 2px; justify-content: space-between; }
.pe-b { flex: 1; min-width: 0; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent;
  border-radius: var(--v5-r-xs, var(--r-sm)); background: none; color: var(--v5-muted, var(--muted)); cursor: pointer; }
.pe-b:disabled { opacity: .35; cursor: default; }
.pe-b:not(:disabled):hover, .pe-b:focus-visible { background: var(--v5-bg2, var(--bg)); color: var(--v5-ink, var(--ink)); }
.pe-b.on { color: var(--v5-info, var(--blue)); border-color: var(--v5-info, var(--blue)); }
.pe-tile.del .pe-b[data-pe="del"] { color: var(--v5-bad, var(--red)); border-color: var(--v5-bad, var(--red)); }
.pe-hint { margin-top: 6px; }
.pe-warn { color: var(--v5-warn, var(--amber)); }
.pe-warn:empty { display: none; }
@media (max-width: 520px) {
  .scrim.pe-scrim { padding: 0; }
  .scrim .pe-modal { max-height: 100vh; height: 100vh; border-radius: 0; }
  .pe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
  .pe-sum { margin-left: 0; width: 100%; }
  .pe-b { height: 34px; }
}
