/*
 * Plan-Widgets (PlanWidgetBase, plan-widget-base.js) — Kachel + Vollbild, Präfix eepw-.
 * Konzept v3 „Pläne PDF/DXF/Flurkarte“, Mockup_Export_Widget.html. Farben nur über --ees-*
 * (ee-shell-tokens.css) mit Fallbacks; Bausteine eep-* (i, Fehler, Fortschritt, Blattliste,
 * Bühne) kommen aus ee-electrical.css (unverändert).
 * @since 2.25.762
 */
.eepw { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--ees-text, var(--ee-text-primary)); }
.eepw-tile { cursor: pointer; height: 100%; }
.eepw-tile:focus-visible { outline: 2px solid var(--ees-accent, #0a84ff); outline-offset: 2px; border-radius: 10px; }
.eepw-meta { font-size: 11.5px; color: var(--ees-text-dim, var(--ee-text-tertiary)); }

/* Mini-Blatt */

/* Kennzahlen */
.eepw-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.eepw-tile .eepw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.eepw-kpi { display: flex; flex-direction: column; padding: 5px 7px; border-radius: 8px; background: var(--ees-surface-2, var(--ee-bg-primary)); min-width: 0; }
.eepw-kpi b { font-size: 13px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; } /* wraps instead of "… | • Batteri" on narrow tiles */
.eepw-kpi span { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ees-text-dim, var(--ee-text-tertiary)); }

/* Zeile: Chips + Download */
.eepw-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.eepw-line > .eepw-btn, .eepw-line > a.eepw-btn { margin-left: auto; }
/* Trassenplanung (widget-route-plan.js): „Trasse bearbeiten“ unter der Kachel */
.eepw-route-edit { margin-top: 6px; }
.eepw-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 650; white-space: nowrap; background: var(--ees-surface-3, var(--ee-bg-elevated-2)); color: var(--ees-text-2, #3a3a3c); }
.eepw-chip.g { background: color-mix(in srgb, var(--ees-accent-strong, #30d158) 16%, transparent); color: var(--ees-accent-strong, #248a3d); }
.eepw-chip.o { background: var(--ees-warn-soft, #fff4e0); color: var(--ees-warn, #b25000); }
.eepw-chip.b { background: color-mix(in srgb, var(--ees-info, #0a84ff) 14%, transparent); color: var(--ees-info, #0a64c8); }
.eepw-chip.d { background: var(--ees-surface-3, var(--ee-bg-elevated-2)); color: var(--ees-text-dim, var(--ee-text-tertiary)); }

/* Knöpfe */
.eepw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 12px; border: 1px solid var(--ees-border, var(--ee-border-medium)); border-radius: 9px; background: var(--ees-surface, var(--ee-bg-elevated)); color: var(--ees-text, var(--ee-text-primary)); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.eepw-btn svg { width: 14px; height: 14px; }
.eepw-btn.s { padding: 4px 9px; font-size: 11.5px; }
.eepw-btn.p { border-color: transparent; background: var(--ees-accent, #0a84ff); color: var(--ee-text-on-accent); }
.eepw-btn:disabled { opacity: .5; cursor: default; }
.eepw-link { padding: 0; border: 0; background: none; color: var(--ees-info, #0a84ff); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* Hinweise */
.eepw-hint { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; font-size: 11.5px; }
.eepw-hint span { min-width: 0; }
.eepw-hint .eepw-link { margin-left: auto; }
.eepw-hint.o { background: var(--ees-warn-soft, #fff4e0); color: var(--ees-text, #1d1d1f); }
.eepw-hint.i { background: color-mix(in srgb, var(--ees-info, #0a84ff) 10%, transparent); }
.eepw-error .eepw-action span { font-weight: 700; }
.eepw-error .eepw-btn { margin-top: 6px; }
.eepw-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 9px; background: color-mix(in srgb, var(--ees-accent-strong, #30d158) 12%, transparent); font-size: 12px; }
.eepw-ok svg { width: 14px; height: 14px; }
.eepw-ok ul { flex-basis: 100%; margin: 4px 0 0 18px; padding: 0; }
.eepw-err-inline { color: var(--ees-danger, #d70015); font-size: 11.5px; margin-right: auto; }

/* Vollbild */
.eepw-full { gap: 10px; height: 100%; }
.eepw-mh { display: flex; align-items: center; gap: 8px; }
.eepw-tbk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ees-border, var(--ee-border-medium)); border-radius: 10px; background: var(--ees-surface-2, var(--ee-bg-primary)); }
.eepw-tsum { flex: 1 1 auto; min-width: 0; color: var(--ees-text-2, #3a3a3c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eepw-tform { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; margin-top: 8px; padding: 10px; border: 1px solid var(--ees-border, var(--ee-border-medium)); border-radius: 10px; }
.eepw-tf { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--ees-text-dim, var(--ee-text-tertiary)); }
.eepw-tf > span { display: flex; align-items: center; gap: 4px; }
/* Plankopf automatisch (26.10.2026): Herkunft, manuell, fehlt */
.eepw-tsrc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 10.5px; line-height: 1.3; color: var(--ees-text-dim, var(--ee-text-muted)); }
.eepw-tsrc .eepw-link { font-size: 10.5px; padding: 0; }
.eepw-tsrc.is-miss { color: #b25000; }
.eepw-tsrc.is-miss.is-permit { color: #c4271b; }
.eepw-tsrc a { color: inherit; text-decoration: underline; }
.eepw-tf input.is-miss, .eepw-tf select.is-miss, .eepw-tf textarea.is-miss { border-color: #f0a35c; background: #fffaf3; }
.eepw-tf input.is-permit, .eepw-tf select.is-permit, .eepw-tf textarea.is-permit { border-color: #ff6b5e; background: #fff6f5; }
.eepw-tf input[readonly] { background: var(--ees-surface-2, var(--ee-bg-primary)); color: var(--ees-text-dim, var(--ee-text-tertiary)); }
.eepw-req { color: #c4271b; font-style: normal; font-weight: 600; }
.eepw-tform-lead { margin: 0 0 8px; }
.eepw-tf input, .eepw-tf select, .eepw-tf textarea, .eepw-side select, .eepw-side textarea { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--ees-border, var(--ee-border-medium)); border-radius: 8px; background: var(--ees-surface, var(--ee-bg-elevated)); color: var(--ees-text, var(--ee-text-primary)); font: inherit; }
.eepw-tform-act { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.eepw-tgrp, .eepw-tform > .eepw-gate, .eepw-tform > [data-eepw-gate] { grid-column: 1 / -1; }
.eepw-tgrp h5, .eepw-legal summary { display: flex; align-items: center; gap: 4px; margin: 4px 0 6px; font-size: 12px; font-weight: 600; color: var(--ees-text, var(--ee-text-primary)); }
.eepw-legal summary { cursor: pointer; }
.eepw-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; }
.eepw-ptab { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.eepw-ptab th { text-align: left; font-weight: 500; color: var(--ees-text-dim, var(--ee-text-tertiary)); padding: 2px 4px; }
.eepw-ptab td { padding: 2px 4px; }
.eepw-ptab input, .eepw-ptab select { width: 100%; box-sizing: border-box; padding: 4px 6px; border: 1px solid var(--ees-border, var(--ee-border-medium)); border-radius: 6px; font: inherit; }
.eepw-gate ul { margin: 4px 0 6px 16px; padding: 0; }

.eepw-fs { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; margin-top: 10px; min-height: 0; }
.eepw-pv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; min-height: 0; }
.eepw-sheets { display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.eepw-stage { min-height: 420px; }
.eepw-stage .eep-stage-frame { width: 100%; min-height: 480px; border: 0; background: var(--ee-bg-elevated); }
.eepw-zoom { margin: 4px 0 0; font-size: 11px; color: var(--ees-text-dim, var(--ee-text-tertiary)); }

.eepw-side { display: flex; flex-direction: column; gap: 10px; }
.eepw-sec { display: flex; flex-direction: column; gap: 7px; padding: 10px; border: 1px solid var(--ees-border, var(--ee-border-medium)); border-radius: 12px; background: var(--ees-surface, var(--ee-bg-elevated)); }
.eepw-sec { color: var(--ees-text, var(--ee-text-primary)); }
/* 26.10.2026: Abschnittstitel lesbar (vorher geerbte, blasse Farbe des Vollbilds) */
.eepw-sec h4 { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--ees-text, var(--ee-text-primary)); opacity: 1; letter-spacing: 0; text-transform: none; }
.eepw-seg { display: flex; padding: 2px; border-radius: 9px; background: var(--ees-surface-3, var(--ee-bg-elevated-2)); }
.eepw-seg button { flex: 1 1 0; padding: 5px 6px; border: 0; border-radius: 7px; background: none; color: var(--ees-text-2, #3a3a3c); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.eepw-seg button.on { background: var(--ees-surface, var(--ee-bg-elevated)); color: var(--ees-text, var(--ee-text-primary)); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.eepw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eepw-slot { display: flex; flex-direction: column; gap: 3px; }
.eepw-lbl { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ees-text-dim, var(--ee-text-tertiary)); }
.eepw-in.calc { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border: 1px dashed var(--ees-border, var(--ee-border-medium)); border-radius: 8px; font-size: 12px; }
.eepw-in.calc em { font-style: normal; font-size: 10.5px; color: var(--ees-text-dim, var(--ee-text-tertiary)); }
.eepw-tg { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.eepw-tg > span:first-child { flex: 1 1 auto; }
.eepw-tg.is-dis { color: var(--ees-text-dim, var(--ee-text-tertiary)); }
.eepw-sw { margin-left: 4px; }
.eepw-gen { width: 100%; }
.eepw-h { margin: 0; font-size: 11px; color: var(--ees-text-dim, var(--ee-text-tertiary)); }
.eepw-job { display: flex; flex-direction: column; gap: 4px; }

/* Versionsliste */
.eepw-vinfo { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; }
.eepw-files { list-style: none; margin: 6px 0 0; padding: 0; }
.eepw-files a { display: inline-flex; align-items: center; gap: 6px; }
.eepw-files svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
    .eepw-fs, .eepw-pv { grid-template-columns: 1fr; }
    .eepw-sheets { flex-direction: row; }
}

/* ── 2.25.767: Kontrast + Kachel (Till 26.10.2026 „kleines Widget … abgeschnitten, Kontraste“) ──
 * Modul-Widgets und Vollbild sind IMMER dunkel (ee-widget-styles.css). Die --ees-* Tokens folgen
 * aber prefers-color-scheme — auf einem Mac im Hellmodus wurde Text dunkel auf dunkel. Darum hier
 * der dunkle Satz fest (WCAG AA auf #1c1c1e: #fff 17:1, .76 10:1, .6 6,8:1; Knopf #fff auf #2E8540 4,6:1). */
/* Dark glass everywhere (Till 01.11.2026: "hell modus wieder weg"): the fixed dark --ees-* set
 * keeps the module widgets and their fullscreen on the dark kit regardless of the OS setting. */
.eepw, .eepf, .ee-fullscreen-container:has(.eepw) {
  color-scheme: dark;
  --ees-surface: rgba(255,255,255,.06); --ees-surface-2: rgba(255,255,255,.05); --ees-surface-3: rgba(255,255,255,.10);
  --ees-text: #fff; --ees-text-2: rgba(255,255,255,.88); --ees-text-dim: rgba(255,255,255,.76); --ees-text-faint: rgba(255,255,255,.6);
  --ees-border: rgba(255,255,255,.12); --ees-border-strong: rgba(255,255,255,.2);
  --ees-field: rgba(0,0,0,.28); --ees-menu-bg: #14161c;
  --ees-accent: #2E8540; --ees-accent-strong: #30d158; --ees-accent-text: #fff;
  --ees-warn: #ff9f0a; --ees-warning: #ff9f0a; --ees-warn-soft: rgba(255,159,10,.14);
  --ees-danger: #ff453a; --ees-info: #0a84ff; --ees-success: #30d158;
  color: var(--ees-text);
}
.eepw-chip.b, .eepw-link { color: #64d2ff; }
.eepw-chip.b { background: rgba(100,210,255,.14); }
.eepw-hint.o { color: var(--ee-text-primary); box-shadow: inset 0 0 0 1px rgba(255,159,10,.35); }
.eepw-lbl { color: var(--ees-text-dim); font-weight: 600; }
.eepw textarea, .eepw input, .eepw select { color: var(--ees-text); background: var(--ees-field); border-color: var(--ees-border-strong); }

/* Kachel (2.25.13xx, Till 02.11.2026): Papier-Vorschau füllt die Fläche, eine Meta-Zeile, Kennzahlen in einer Reihe,
 * ein Hinweis mit einer Aktion, Status + PDF + Menü. Breite Karten (Container-Abfrage): Vorschau links, Angaben rechts. */
.eepw-tile { min-height: 0; overflow: hidden; container: eepw-tile / inline-size; }
.eepw-tl { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 0; }
.eepw-tl-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: none; }
.eepw-meta { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.eepw-meta > span { overflow: hidden; text-overflow: ellipsis; }
.eepw-meta > * + span::before { content: "·"; margin-right: 6px; color: var(--ees-text-faint); }
.eepw-meta .eepw-mv { color: var(--ees-text); font-weight: 700; }
.eepw-meta .eepw-chip { margin-left: auto; flex: none; }
.eepw-tile .eepw-kpis { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; }
.eepw-tile .eepw-kpi { padding: 6px 8px; gap: 1px; }
.eepw-tile .eepw-kpi b { font-size: 13px; line-height: 1.25; white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.eepw-tile .eepw-kpi span { white-space: nowrap; overflow: hidden; }
.eepw-tile .eepw-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Hinweis: nie abgeschnitten, eine Aktion */
.eepw-callout { display: flex; align-items: flex-start; gap: 8px; padding: 7px 9px; border-radius: 10px; font-size: 11.5px; line-height: 1.35;
  background: var(--ees-warn-soft); box-shadow: inset 0 0 0 1px rgba(255,159,10,.35); }
.eepw-callout-ic { flex: none; display: inline-flex; color: var(--ees-warn); padding-top: 1px; }
.eepw-callout-ic svg { width: 14px; height: 14px; }
.eepw-callout-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.eepw-callout-tx b { font-weight: 650; color: var(--ees-text); }
.eepw-callout-tx small { font-size: 11px; color: var(--ees-text-dim); }
.eepw-callout .eepw-link { flex: none; align-self: center; }
/* Status + Aktionen */
.eepw-acts { display: flex; align-items: center; gap: 8px; min-width: 0; }
.eepw-acts-r { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.eepw-state { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--ees-warn); }
.eepw-state > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eepw-state-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ees-warn); box-shadow: 0 0 0 3px rgba(255,159,10,.18); }
.eepw-state .eepw-link { flex: none; }
.eepw-state-why { font-style: normal; }
.eepw-meta .eepw-chip::before { content: none; }
.eepw-menu { position: relative; }
.eepw-menu > summary { list-style: none; padding: 4px 7px; }
.eepw-menu > summary::-webkit-details-marker { display: none; }
.eepw-menu > summary svg { width: 14px; height: 14px; fill: currentColor; }
.eepw-menu-pop { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; min-width: 190px; padding: 5px;
  border-radius: 11px; background: var(--ees-menu-bg); box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px var(--ees-border); }
.eepw-mi { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 0; border-radius: 7px; background: none; color: var(--ees-text); font: inherit; font-size: 12px; font-weight: 550; text-align: left; text-decoration: none; cursor: pointer; }
.eepw-mi svg { width: 13px; height: 13px; }
.eepw-mi:hover, .eepw-mi:focus-visible { background: var(--ees-surface-3); outline: none; }
.eepw-mi.is-note { cursor: default; font-size: 11px; color: var(--ees-text-faint); }
.eepw-mi.is-note:hover { background: none; }

/* Vorschau: helles Blatt mit leichtem Schatten auf der dunklen Karte, füllt die Fläche */
.eepw-mini { position: relative; flex: 1 1 0; min-height: 120px; border-radius: 10px; overflow: hidden; padding: 10px; background: var(--ees-surface-2); }
.eepw-paper { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.35); }
.eepw-mini.is-real .eepw-mini-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; opacity: 0; transition: opacity .2s; }
.eepw-mini.is-real.is-fit .eepw-mini-frame { opacity: 1; }
/* 2.25.808: Theme-`iframe{max-width: 100%}` darf die Kachel-Miniatur nicht klemmen */
.eepw-mini.is-real .eepw-mini-frame { max-width: none !important; max-height: none !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; }
.eepw-mini-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none !important; object-fit: contain; opacity: 0; transition: opacity .2s; }
.eepw-mini.is-fit .eepw-mini-img { opacity: 1; }
.eepw-mini-cap { position: absolute; left: 16px; bottom: 15px; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 650; color: #fff; background: rgba(28,28,30,.72); }
.eepw-tile:hover .eepw-paper { box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 26px rgba(0,0,0,.45); }
/* Skizze ohne Version: Rahmen und Reihen auf dem Papier */
.eepw-mini-sk { position: absolute; inset: 0; width: 100%; height: 100%; }
.eepw-mini-sk .pp { fill: #fff; }
.eepw-mini-sk .fr, .eepw-mini-sk .tb { fill: none; stroke: #c7c7cc; stroke-width: 1; }
.eepw-mini-sk .rw { fill: #3FA14D; opacity: .55; }
.eepw-mini-sk .k { fill: none; stroke: #ff9f0a; stroke-width: 1.4; }
.eepw-mini-sk .l { stroke: #aeaeb2; stroke-width: .8; }
.eepw-mini.is-empty .eepw-mini-sk .rw { opacity: .25; }
.eepw-mini-empty { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 40px); padding: 3px 10px; border-radius: 999px; text-align: center; font-size: 11px; font-weight: 600;
  color: #fff; background: rgba(28,28,30,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eepw-mini.is-err .eepw-mini-empty { color: #ffb340; }
/* Breite Karte: Vorschau links über die volle Höhe, Angaben rechts */
@container eepw-tile (min-width: 640px) {
  .eepw-tl { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 12px; }
  .eepw-tl > .eepw-mini { min-height: 0; height: 100%; }
  .eepw-tl-info { justify-content: space-between; min-height: 0; overflow: auto; }
  .eepw-tl-info .eepw-kpis { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}
/* Schmale Karte: Kennzahlen dürfen umbrechen, Aktionen bleiben eine Zeile */
@container eepw-tile (max-width: 360px) {
  /* schmal: Kennzahlen als eine wischbare Zeile, Hinweis nur mit Kopfzeile (voller Text im Tooltip/Vollbild) */
  .eepw-tile .eepw-kpis { display: flex; overflow-x: auto; scrollbar-width: none; }
  .eepw-tile .eepw-kpis::-webkit-scrollbar { display: none; }
  .eepw-tile .eepw-kpi { flex: 1 0 auto; max-width: 72%; }
  .eepw-tile .eepw-kpi b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .eepw-tile .eepw-callout-tx small { display: none; }
  .eepw-tile .eepw-mini { min-height: 56px; padding: 6px; }
  .eepw-tile .eepw-kpi { padding: 4px 7px; }
  .eepw-tl { gap: 6px; }
  .eepw-tl-info { gap: 5px; }
  .eepw-callout { padding: 5px 8px; }
  .eepw-meta .eepw-who { display: none; }
  .eepw-state-why { display: none; }
}
/* „i“ auf dunkel: ruhiger Ring statt weißer Scheibe (Kontrast Glyph 9,9:1) */
.eepw .eep-i, .eepf .eep-i { background: transparent; border-color: var(--ee-text-faint); color: var(--ee-text-secondary); }
.eepw .eep-i:hover, .eepw .eep-i:focus, .eepf .eep-i:hover, .eepf .eep-i:focus { color: #64d2ff; border-color: #64d2ff; }

/* ── Mockup v4 (Zeichnungs-Widget): Maßstab-Chips, Passprüfung, Ebenen-Zähler. Nur dunkel (Till 29.10.2026),
 * Farben aus dem dunklen Satz oben: Warnung #ff9f0a, Info #64d2ff, OK #30d158. */
.eepw-sec h4 .eepw-sum { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ees-text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eepw-sec h4 .eepw-sum + .eep-i { margin-left: 2px; }
.eepw-slot.is-wide { gap: 6px; }
.eepw-scs { display: flex; flex-wrap: wrap; gap: 5px; }
.eepw-sc { padding: 4px 9px; border: 1px solid var(--ees-border-strong); border-radius: 999px; background: var(--ees-surface); color: var(--ees-text-2); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.eepw-sc em { font-style: normal; font-weight: 500; color: var(--ees-text-dim); }
.eepw-sc.lo { border-style: dashed; }
.eepw-sc.on { border-color: #64d2ff; background: rgba(100,210,255,.16); color: var(--ee-text-on-accent); }
.eepw-sc.on em { color: #64d2ff; }
.eepw-sc:hover:not(:disabled) { border-color: var(--ee-text-faint); }
.eepw-sc:focus-visible { outline: 2px solid #64d2ff; outline-offset: 1px; }
.eepw-sc:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.eepw-own { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ees-text-dim); }
.eepw-own > span:first-child { font-weight: 600; }
.eepw-own-in { display: inline-flex; align-items: center; gap: 4px; color: var(--ees-text); font-weight: 600; }
.eepw-own input { width: 86px; padding: 4px 6px; border: 1px solid var(--ees-border-strong); border-radius: 7px; font: inherit; font-size: 12px; }
.eepw-own small { margin-left: auto; font-size: 10.5px; color: var(--ees-text-faint); }
.eepw-sc-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 6px 8px; border-radius: 8px; font-size: 11px; line-height: 1.35; }
.eepw-sc-hint > span { flex: 1 1 180px; }
.eepw-sc-hint.w { color: var(--ee-text-on-accent); background: rgba(255,159,10,.14); box-shadow: inset 0 0 0 1px rgba(255,159,10,.4); }
.eepw-sc-hint.i { color: var(--ees-text-2); background: rgba(100,210,255,.10); box-shadow: inset 0 0 0 1px rgba(100,210,255,.3); }
.eepw-fit { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 8px; font-size: 11px; line-height: 1.35; color: var(--ees-text-2); }
.eepw-fit b { font-size: 11.5px; }
.eepw-fit.ok { background: rgba(48,209,88,.12); box-shadow: inset 0 0 0 1px rgba(48,209,88,.35); }
.eepw-fit.ok b { color: var(--ee-status-success); }
.eepw-fit.no { background: rgba(255,159,10,.12); box-shadow: inset 0 0 0 1px rgba(255,159,10,.4); }
.eepw-fit.no b { color: var(--ee-status-warning); }
/* Ebenen: Untertext je Schalter */
.eepw-tg.has-sub { align-items: flex-start; }
.eepw-tg-sub { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 400; color: var(--ees-text-faint); }

/* Tile status line: version, date, author and the chip keep a gap and wrap as
   whole items (the chip no longer inherits the tall tile line height); the
   "Neu erzeugen" link keeps its distance from the reason text. */
.eepw-tl-info .eepw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.eepw-tl-info .eepw-meta .eepw-chip { line-height: 1.4; }
.eepw-state .eepw-link { margin-left: 6px; }
