/* Architektur-Studio: Fläche, Karten, Leisten (aus tools/ea-whiteboard.html ausgelagert, AS26 –
   die Gast-Seite tools/ea-live.html braucht dieselben Karten-Stile). */
.wrap { padding: 1.5rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem; }
.hint { color: var(--muted); font-size: .8rem; margin-top: .5rem; }

/* Feste Höhe statt min-height: sonst bestimmte die Höhe der linken
   Seitenleiste (aufgeklappte Gruppen) die Zeilenhöhe des Rasters und die
   Zeichenfläche wurde mit ihr riesig (Anwenderfund 11.11.2026). */
#editorBody { display: flex; flex-direction: column; height: 100%; min-height: 36rem; }
#editorBody > .card:first-child { flex: 0 0 auto; }

.toptoolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.toptoolbar .spacer { flex: 1; }
.cfg-body { min-width: 22rem; }
.cfg-h { margin: 0 0 .4rem; font-size: .85rem; }
.cfg-row { display: flex; align-items: center; gap: .6rem; margin: .35rem 0; }
.cfg-row > span:first-child { min-width: 8rem; color: var(--muted); font-size: .85rem; }
.toptoolbar input[type="color"] { width: 2rem; height: 1.6rem; padding: 0; border: 1px solid var(--line); border-radius: .3rem; background: none; cursor: pointer; }

.board-layout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: minmax(0, 1fr); gap: .75rem; align-items: stretch; flex: 1 1 0; min-height: 30rem; }
.board-layout.no-left { grid-template-columns: minmax(0, 1fr) auto auto; }
.board-layout.no-right { grid-template-columns: auto minmax(0, 1fr); }
.board-layout.no-left.no-right { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 60rem) { .board-layout, .board-layout.no-left, .board-layout.no-right, .board-layout.no-left.no-right { grid-template-columns: 1fr; } }

.side-left { display: flex; flex-direction: column; gap: .5rem; width: 16rem; min-height: 0; overflow-y: auto; }
.side-left > * { flex-shrink: 0; }
.side-left.collapsed { display: none; }
@media (max-width: 60rem) { .side-left { width: auto !important; } }

.ins-group { border: 1px solid var(--line); border-radius: .4rem; padding: .3rem .5rem .5rem; }
.ins-group > summary { cursor: pointer; font-weight: 600; font-size: .85rem; padding: .2rem 0; }
.ins-subgroup { margin: .3rem 0 0 .2rem; }
.ins-subgroup > summary { cursor: pointer; font-size: .8rem; color: var(--muted); padding: .15rem 0; }
.ins-btn { width: 100%; justify-content: flex-start; }
.swatch-row { display: flex; flex-wrap: wrap; gap: .35rem; padding: .35rem 0 .2rem; }
.swatch-btn { width: 1.6rem; height: 1.6rem; border: 1px solid rgba(0,0,0,.25); border-radius: .25rem; cursor: pointer; padding: 0; }
.swatch-btn.shape-circle { border-radius: 50%; }
.swatch-btn.shape-diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.swatch-btn:hover { outline: 2px solid var(--blue); }
.asset-type-quicklist { display: flex; flex-direction: column; gap: .15rem; padding: .35rem 0; }
.asset-type-row { display: flex; align-items: center; gap: .4rem; padding: .25rem .3rem; border-radius: .3rem; cursor: pointer; font-size: .8rem; background: none; border: none; text-align: left; width: 100%; color: var(--text); }
.asset-type-row:hover { background: var(--subtle); }
.asset-type-row .atr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-type-row .atr-count { color: var(--muted); font-size: .72rem; }

.side-right { width: 24rem; overflow-y: auto; margin-bottom: 0; }
.side-right.collapsed { display: none; }
.sp-tabs { display: flex; gap: .1rem; border-bottom: 1px solid var(--border, #d9d9d9); margin: -.2rem 0 .6rem; flex-wrap: wrap; }
.sp-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: .45rem .6rem; cursor: pointer; font: inherit; font-size: .85rem; color: var(--muted); }
.sp-tab.active { color: var(--blue, #0070f2); border-bottom-color: var(--blue, #0070f2); font-weight: 600; }
.sp-pane[hidden] { display: none; }
.sp-sec { margin: 0 0 .9rem; }
.sp-sec > h4 { margin: 0 0 .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.sp-row { display: flex; align-items: center; gap: .5rem; margin: .3rem 0; flex-wrap: wrap; }
.sp-row > span:first-child { min-width: 6.5rem; color: var(--muted); font-size: .85rem; }
.sp-row input[type=text] { flex: 1 1 8rem; min-width: 0; }
.sp-kv { display: grid; grid-template-columns: 6.5rem 1fr; gap: .15rem .5rem; font-size: .85rem; margin: 0; }
.sp-kv dt { color: var(--muted); } .sp-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 60rem) { .side-right { width: auto !important; } }

.panel-splitter { width: .6rem; cursor: col-resize; position: relative; }
.panel-splitter.collapsed { display: none; }
.panel-splitter::after { content: ''; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: var(--line); }
.panel-splitter:hover::after, .panel-splitter.dragging::after { background: var(--blue); }
@media (max-width: 60rem) { .panel-splitter { display: none; } }

.board-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.board-host { position: relative; flex: 1 1 0; min-height: 20rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board-host .react-flow { width: 100%; height: 100%; }
#flowMount { position: absolute; inset: 0; }

/* ---- Reiterleiste (Sheets, Muster Excel) ---- */
.sheet-bar { display: flex; align-items: center; gap: .25rem; padding: .35rem .2rem 0; flex-wrap: wrap; }
.sheet-tab { border: 1px solid var(--line); border-top: none; border-radius: 0 0 .4rem .4rem; background: var(--card); color: var(--text);
  padding: .3rem .8rem; font-size: .8rem; cursor: pointer; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-tab.hidden-sheet { opacity: .55; font-style: italic; }
.tour-stop.skip { opacity: .5; }
.sheet-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
.sheet-bar .sheet-spacer { flex: 1; }
.section-bar { padding-top: .25rem; }
.section-bar .sheet-tab { border-top: 1px solid var(--line); border-radius: .4rem; font-size: .8rem; background: rgba(0,0,0,.04); }
.section-bar .sheet-tab.active { background: var(--shell); border-color: var(--shell); }
.view-bar .sheet-tab { border-top: 1px solid var(--line); border-radius: 1rem; font-size: .8rem; background: rgba(0,0,0,.04); }
.view-bar .sheet-tab.active { background: #6a4bc2; border-color: #6a4bc2; }
.view-bar .view-label { color: var(--muted); font-size: .75rem; }
.ms-chips { display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.ms-chip { border: 1px solid var(--line); border-radius: 1rem; background: var(--card); color: var(--text); padding: .05rem .5rem; font-size: .75rem; cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; }
.ms-chip i { width: .55rem; height: .55rem; border-radius: 50%; display: inline-block; }
.ms-chip.active { outline: 2px solid var(--blue); }
.ms-marks { position: relative; flex: 1 1 12rem; min-width: 8rem; }
.ms-marks input { width: 100%; }
.ms-marks .ms-mark { position: absolute; top: -.1rem; width: 2px; height: .5rem; pointer-events: none; }
.sort-body { display: flex; flex-direction: column; gap: .5rem; min-width: min(60rem, 90vw); }
.sort-tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sort-search { border: 1px solid var(--line); border-radius: .4rem; padding: .4rem .6rem; max-height: 9rem; overflow: auto; font-size: .85rem; }
.sort-search button { display:block; width:100%; text-align:left; background:none; border:none; padding:.15rem 0; cursor:pointer; color:var(--text); }
.sort-search button:hover { color: var(--blue); }
.sort-group { border: 1px solid var(--line); border-radius: .5rem; padding: .4rem .6rem; margin-bottom: .5rem; }
.sort-group.drop { outline: 2px dashed var(--blue); }
.sort-group h4 { margin: 0 0 .3rem; display: flex; align-items: center; gap: .3rem; font-size: .85rem; }
.sort-group h4 .sort-spacer { flex: 1; }
.sort-cards { display: flex; flex-wrap: wrap; gap: .6rem; min-height: 3rem; }
.sort-card { width: 11rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--card); padding: .3rem; cursor: grab; }
.sort-card.active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.sort-card.dragging { opacity: .4; }
.sort-card.before { box-shadow: -4px 0 0 var(--blue); }
.sort-thumb { display:block; width: 100%; height: 6rem; background: rgba(0,0,0,.04); border-radius: .25rem; }
.sort-card .sort-name { font-size: .8rem; margin: .2rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-card .sort-actions { display: flex; justify-content: flex-end; }
.sheet-bar .sheet-count { color: var(--muted); font-size: .75rem; }

/* ---- Zeitleiste (AS3, neu v0.730.0): Einstellungen links, Abspielleiste unten im Sheet ---- */
.time-bar { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; padding: .2rem 0; font-size: .8rem; }
.time-cfg { display: flex; flex-direction: column; gap: .3rem; }
.time-cfg[hidden] { display: none; }
.time-bar input[type="date"], .time-player input[type="date"] { font: inherit; padding: .1rem .2rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--card); color: var(--text); min-width: 0; }
.time-range { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .4rem; align-items: center; color: var(--muted); }
.time-compare { display: flex; align-items: center; gap: .25rem; color: var(--muted); flex-wrap: wrap; }
.time-bar.scenario-on { background: color-mix(in srgb, #7b4dd8 10%, transparent); border-radius: .4rem; padding: .3rem; }
.time-player { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; z-index: 11; background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--line); border-radius: .7rem; box-shadow: var(--shadow); padding: .25rem .6rem .35rem; font-size: .8rem; color: var(--text); }
.time-player[hidden] { display: none; }
.time-player.scenario-on { border-color: #7b4dd8; }
.tp-row { display: flex; align-items: center; gap: .2rem .35rem; flex-wrap: wrap; }
.tp-sep { width: 1px; height: 1.4rem; background: var(--line); margin: 0 .2rem; }
.tp-spacer { flex: 1; }
.tp-field { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); }
.tp-field select { font: inherit; padding: .1rem .2rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--card); color: var(--text); }
.tp-track { position: relative; margin: .15rem .4rem 0; padding-top: .7rem; }
.tp-track input[type="range"] { width: 100%; margin: 0; }
.tp-events { position: absolute; left: 0; right: 0; top: 0; height: .7rem; pointer-events: none; }
.tp-ev { position: absolute; top: .05rem; width: 3px; margin-left: -1px; border-radius: 1px; pointer-events: auto; cursor: pointer; }
.tp-ev.ms { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid; margin-left: -5px; background: none !important; }
.tp-info { color: var(--muted); min-height: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 .4rem; }
.tp-info b { color: var(--text); }
.board-host.time-on .react-flow__panel.bottom { margin-bottom: calc(var(--tp-h, 5.6rem) + .6rem); }
.board-host.time-on .present-bar { bottom: calc(var(--tp-h, 5.6rem) + 1rem); }
.time-stamp { position: absolute; z-index: 9; pointer-events: none; display: flex; flex-direction: column; line-height: 1.1;
  background: color-mix(in srgb, var(--card) 85%, transparent); border-radius: .6rem; padding: .35rem .8rem; box-shadow: var(--shadow); }
.time-stamp[hidden] { display: none; }
.time-stamp .ts-period { font-size: 2rem; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.time-stamp .ts-sub { font-size: .8rem; color: var(--muted); }
.time-stamp.pos-bl { left: 3.6rem; bottom: .8rem; }
.time-stamp.pos-br { right: 13.5rem; bottom: .8rem; }
.time-stamp.pos-tl { left: .8rem; top: .8rem; }
.time-stamp.pos-tr { right: .8rem; top: .8rem; }
.board-host.time-on .time-stamp.pos-bl, .board-host.time-on .time-stamp.pos-br { bottom: calc(var(--tp-h, 5.6rem) + 1rem); }
body.presenting .time-stamp.pos-br { right: .8rem; }
.time-stamp.scenario-on { border-left: 4px solid #7b4dd8; }
.sc-list { display: flex; flex-direction: column; gap: .2rem; margin: .3rem 0 .6rem; }
.sc-row { display: flex; align-items: center; gap: .4rem; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: .35rem; }
.sc-row.active { border-color: #7b4dd8; }
.sc-row .sc-name { flex: 1; min-width: 0; }
.sc-table { border-collapse: collapse; width: 100%; font-size: .82rem; }
.sc-table th, .sc-table td { border-bottom: 1px solid var(--line); padding: .2rem .35rem; text-align: left; vertical-align: top; }
.sc-table .skip { color: var(--muted); }
.time-legend { display: inline-flex; gap: .5rem; flex-wrap: wrap; color: var(--muted); }
.time-legend .lg { display: inline-flex; align-items: center; gap: .2rem; }
.time-legend .lg i { width: .7rem; height: .7rem; border-radius: .15rem; display: inline-block; }
.ea-asset-card.lc-color { border-left-width: 6px; border-left-style: solid; }
.ea-asset-card.lc-outline { border-width: 2px; border-style: dashed; }
.ea-asset-card.lc-absent { opacity: .35; }
.ea-lc-badge { display: inline-block; margin-top: .25rem; font-size: .66rem; padding: 0 .35rem; border-radius: .6rem; color: #fff; }
.ea-chg { position: absolute; top: -.55rem; right: -.45rem; font-size: .68rem; font-weight: 700; border-radius: .6rem; padding: 0 .35rem; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ea-chg.new { background: #2b8a3e; } .ea-chg.gone { background: #b42318; } .ea-chg.changed { background: #3a86d4; }

/* ---- Navigator ---- */
.nav-list { display: flex; flex-direction: column; gap: .15rem; padding: .3rem 0; }
.nav-row { display: flex; gap: .4rem; align-items: center; padding: .25rem .35rem; border-radius: .3rem; cursor: pointer; font-size: .8rem; background: none; border: none; text-align: left; width: 100%; color: var(--text); }
.nav-row:hover { background: var(--subtle); }
.nav-row .nav-no { color: var(--muted); font-size: .72rem; min-width: 1.2rem; }

/* ---- Präsentieren ---- */
.present-bar { position: absolute; bottom: .8rem; left: 50%; transform: translateX(-50%); z-index: 10; display: none; gap: .4rem; align-items: center;
  background: var(--card); border-radius: 2rem; box-shadow: var(--shadow); padding: .3rem .8rem; font-size: .85rem; color: var(--text); }
body.presenting .present-bar { display: flex; }
body.presenting .side-left, body.presenting .side-right, body.presenting .panel-splitter, body.presenting .edit-only { display: none !important; }
body.presenting .board-layout { grid-template-columns: minmax(0, 1fr) !important; }

/* ---- Rundgang (AS16) ---- */
.laser-dot { position: absolute; z-index: 12; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: none; display: none;
  background: radial-gradient(circle, #ff2b2b 0 35%, rgba(255,43,43,.45) 60%, rgba(255,43,43,0) 72%); }
body.presenting.laser-on .laser-dot { display: block; }
body.presenting.laser-on #flowMount { cursor: none; }
.tour-stop { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: .3rem; align-items: center; padding: .25rem .3rem; border: 1px solid var(--line); border-radius: .35rem; margin-bottom: .25rem; font-size: .8rem; }
.tour-stop .tour-no { color: var(--muted); font-size: .72rem; }
.tour-stop .tour-sub { color: var(--muted); font-size: .72rem; display: block; }
.tour-stop button.mini { background: none; border: none; cursor: pointer; padding: .1rem .25rem; color: var(--text); font-size: .9rem; }
.cmt-subtabs { margin-top: .4rem; }
.cmt-item { border: 1px solid var(--line, #d9d9d9); border-radius: .4rem; padding: .4rem .5rem; margin: .35rem 0; font-size: .85rem; }
.cmt-item.resolved { opacity: .6; }
.cmt-meta { color: var(--muted); font-size: .75rem; }
.cmt-reply { margin: .25rem 0 0 .8rem; padding-left: .5rem; border-left: 2px solid var(--line, #d9d9d9); }
.cmt-spot { cursor: pointer; }
.cmt-spot:hover { background: rgba(0,112,242,.08); }
.react-flow__node.has-comment { outline: 3px solid #e9730c; outline-offset: 2px; border-radius: 4px; }
.tour-row { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: .35rem 0; }

/* ---- Vorlagen (AS6) ---- */
.tpl-body { width: min(56rem, 88vw); }
.tpl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .8rem; margin-top: .5rem; min-height: 22rem; }
.tpl-list { border: 1px solid var(--line); border-radius: .4rem; overflow: auto; max-height: 55vh; }
.tpl-group { font-size: .72rem; font-weight: 700; color: var(--muted); padding: .45rem .6rem .2rem; text-transform: uppercase; letter-spacing: .03em; }
.tpl-row { padding: .4rem .6rem; cursor: pointer; border-left: 3px solid transparent; }
.tpl-row:hover { background: var(--subtle); }
.tpl-row.active { background: var(--subtle); border-left-color: var(--blue); }
.tpl-row .tpl-name { font-weight: 600; font-size: .85rem; }
.tpl-row .tpl-meta { font-size: .72rem; color: var(--muted); }
.tpl-detail { overflow: auto; max-height: 55vh; font-size: .85rem; }
.tpl-detail h4 { margin: 0 0 .3rem; }
.tpl-detail .dlg-field { margin: .35rem 0; }

/* ---- Workshop (AS7) ---- */
.ws-row { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin: .2rem 0; }
.ws-row input[type="number"], .ws-row input[type="text"] { font: inherit; font-size: .8rem; padding: .15rem .3rem; border: 1px solid var(--line); border-radius: .3rem; background: var(--card); color: var(--text); }
.ws-row input[type="number"] { width: 3.6rem; }
.ws-row input[type="text"] { flex: 1; min-width: 6rem; }
.ws-clock { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; min-width: 3.4rem; }
.ws-sub { font-size: .72rem; color: var(--muted); margin: .4rem 0 .1rem; font-weight: 600; }
.pk-row { display: flex; align-items: center; gap: .1rem; font-size: .8rem; }
.pk-row .pk-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pk-row.done .pk-text { text-decoration: line-through; color: var(--muted); }
.ws-result { max-height: 50vh; overflow: auto; background: var(--subtle); padding: .6rem; border-radius: .3rem; font-size: .8rem; white-space: pre-wrap; margin: .4rem 0; }
.timer-chip { position: absolute; top: .6rem; right: .6rem; z-index: 11; display: flex; align-items: center; gap: .2rem; background: var(--card); color: var(--text);
  border-radius: 2rem; box-shadow: var(--shadow); padding: .1rem .2rem .1rem .7rem; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; }
.timer-chip[hidden] { display: none; }
.timer-chip.paused { opacity: .75; }
.timer-chip.expired, #presentTimer.expired { color: #fff; background: #b42318; }
#presentTimer { font-family: var(--mono); font-weight: 700; padding: 0 .4rem; border-radius: .4rem; }
.ea-votes { position: absolute; top: -.7rem; right: -.6rem; z-index: 5; background: #e8590c; color: #fff; font-weight: 700; font-size: .75rem;
  border-radius: 1rem; padding: .05rem .45rem; box-shadow: 0 1px 3px rgba(0,0,0,.3); pointer-events: none; }
body.voting .react-flow__node:not(.react-flow__node-frameCard) { cursor: copy; }
.ea-frame-slide { position: absolute; bottom: .45rem; right: .7rem; font-size: .72rem; color: rgba(29,45,62,.6); background: rgba(255,255,255,.6); border-radius: .4rem; padding: 0 .4rem; }
.nav-row .nav-hint { margin-left: auto; color: var(--muted); font-size: .68rem; white-space: nowrap; }
.nav-row.skip > span:nth-child(2) { text-decoration: line-through; color: var(--muted); }

/* ---- Asset-Karten ---- */
.ea-asset-card { position: relative; padding: .5rem .7rem; border-radius: .35rem; border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 2px 5px rgba(0,0,0,.18); width: 12rem; box-sizing: border-box; font-size: .8rem; color: #1d2d3e; }
.ea-asset-card.selected { outline: 2px solid var(--blue); }
.ea-asset-card.missing { opacity: .6; border-style: dashed; }
/* AS10: Titel max. zwei Zeilen und immer zwei Zeilen hoch -> gleiche Kartenhöhe */
.ea-card-title { font-weight: 600; line-height: 1.25; min-height: 2.5em; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ea-card-kind { opacity: .7; font-size: .68rem; margin-top: .15rem; }
.ea-asset-card .ea-open { margin-top: 0; }
/* AS5: gerenderte Bereiche */
.ea-gen { width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; background: var(--card, #fff); color: var(--text);
  border: 1px solid rgba(0,0,0,.18); border-radius: .4rem; box-shadow: 0 2px 6px rgba(0,0,0,.15); overflow: hidden; }
.ea-gen.selected { outline: 2px solid var(--blue); }
.ea-gen-head { display: flex; align-items: flex-start; gap: .4rem; padding: .4rem .6rem; border-bottom: 1px solid rgba(0,0,0,.1); flex: 0 0 auto; }
.ea-gen-title { flex: 1; min-width: 0; }
.ea-gen-title .t { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-gen-notes { font-size: .68rem; color: var(--muted); padding: .2rem .6rem; flex: 0 0 auto; }
.ea-gen-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: .5rem .6rem; font-size: .75rem; }
.ea-gen-chip { display: inline-block; padding: .2rem .45rem; border-radius: .25rem; border: 1px solid rgba(0,0,0,.15); color: #1d2d3e; cursor: pointer;
  max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.ea-gen-landscape { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.ea-gen-group { border: 1px solid rgba(0,0,0,.15); border-radius: .3rem; background: rgba(0,112,242,.05); padding: .3rem; }
.ea-gen-group-title { font-weight: 600; margin-bottom: .25rem; }
.ea-gen-group-body { display: flex; flex-wrap: wrap; gap: .3rem; align-items: flex-start; }
.ea-gen-matrix { border-collapse: collapse; }
.ea-gen-matrix th, .ea-gen-matrix td { border: 1px solid rgba(0,0,0,.15); padding: .15rem .35rem; text-align: center; white-space: nowrap; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.ea-gen-matrix tbody th { text-align: left; }
.ea-gen-matrix td.hit { background: rgba(43,138,62,.18); }
.ea-gen-rm-row { display: flex; align-items: center; gap: .4rem; height: 1.7rem; }
.ea-gen-rm-row .lbl { width: 9rem; flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-gen-rm-row .track { position: relative; flex: 1; height: 1.1rem; background: rgba(0,0,0,.04); border-radius: .2rem; }
.ea-gen-rm-row.axis .track { background: none; font-size: .65rem; color: var(--muted); }
.ea-gen-rm-row.axis .track span { position: absolute; top: 0; }
.ea-gen-rm-row .seg { position: absolute; top: 0; bottom: 0; border-radius: .15rem; }
.ea-gen-rm-row .marker { position: absolute; top: -.2rem; bottom: -.2rem; width: 2px; background: #c8322f; }
.ea-gen-graph { position: relative; }
.ea-gen-graph svg { position: absolute; left: 0; top: 0; }
.ea-gen-gnode { position: absolute; display: flex; align-items: center; }
.ea-gen-gnode .ea-gen-chip { max-width: 100%; }
.ea-gen-gnode.start .ea-gen-chip { outline: 2px solid #f2a900; }
/* AS4: Darstellung */
.ea-asset-card.dens-detail { width: 16rem; }
.ea-asset-card.lens-match { outline: 3px solid #f2a900; outline-offset: 2px; }
.ea-asset-card.lens-dim { opacity: .25; }
.ea-card-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .05rem .4rem; margin: .3rem 0 0; font-size: .7rem; }
.ea-card-rows dt { opacity: .7; white-space: nowrap; }
.ea-card-rows dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-design-src { position: absolute; top: -1.15rem; left: 0; font-size: .62rem; background: var(--card); color: var(--muted); border-radius: .2rem; padding: 0 .3rem; white-space: nowrap; }
.design-list { display: flex; flex-direction: column; gap: .15rem; margin: .2rem 0; }
.design-row { display: flex; align-items: center; gap: .35rem; font-size: .8rem; border-radius: .25rem; padding: 0 .2rem; }
.design-row.draggable { cursor: grab; }
.design-row.draggable:hover { background: var(--hover, rgba(0,0,0,.05)); }
.design-swatch { width: 1rem; height: 1rem; border-radius: .2rem; border: 2px solid rgba(0,0,0,.2); flex: 0 0 auto; }
.design-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-btnrow { display: flex; gap: .2rem; flex-wrap: wrap; }
.style-row { display: flex; align-items: center; gap: .5rem; }
.style-row input[type=color] { width: 3rem; height: 1.8rem; border: none; background: none; }
.style-fields, .lens-facets { display: flex; flex-direction: column; max-height: 12rem; overflow-y: auto; border: 1px solid var(--border, #d9d9d9); border-radius: .3rem; padding: .2rem .4rem; }
.lens-facets summary { cursor: pointer; font-weight: 600; font-size: .82rem; padding: .15rem 0; }

/* ---- Notizen ---- */
.ea-note { position: relative; width: 100%; height: 100%; padding: .55rem .7rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); box-sizing: border-box;
  font-size: .8rem; color: #1d2d3e; white-space: pre-wrap; overflow: hidden; display: flex; align-items: flex-start; }
.ea-note.shape-sticky { border-radius: 2px; }
.ea-note.shape-rect { border-radius: .6rem; }
.ea-note.shape-circle { border-radius: 50%; align-items: center; justify-content: center; text-align: center; }
.ea-note.shape-diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); align-items: center; justify-content: center; text-align: center; box-shadow: none; }
.ea-note.selected { outline: 2px solid var(--blue); }
/* AS21: Text auf der Fläche */
.ea-note-body { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.ea-note-body .ea-note-p { white-space: pre-wrap; }
.ea-note-body ul { margin: .1em 0; padding-left: 1.1em; text-align: left; white-space: normal; }
.ea-note.editing { overflow: visible; clip-path: none; }
.ea-note.editing.shape-diamond, .ea-note.editing.shape-circle { border-radius: .6rem; }
.ea-text.editing { overflow: visible; position: relative; }
.ea-inline-edit { width: 100%; height: 100%; box-sizing: border-box; resize: none; border: 0; outline: none; background: transparent;
  color: inherit; font: inherit; line-height: 1.35; padding: 0; margin: 0; text-align: inherit; white-space: pre-wrap; cursor: text; }
.ea-inline-edit::placeholder { color: inherit; opacity: .55; }
.ea-inline-bar { position: absolute; left: 0; bottom: calc(100% + 6px); display: flex; gap: 2px; padding: 2px; z-index: 5;
  background: var(--bg-card, #fff); border: 1px solid var(--border, #c5cdd3); border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.ea-inline-bar button { min-width: 26px; height: 26px; border: 0; border-radius: 4px; background: transparent; color: var(--text, #1d2d3e);
  font: 600 .85rem/1 var(--font, sans-serif); cursor: pointer; padding: 0 6px; }
.ea-inline-bar button:hover { background: rgba(0,112,242,.12); }
.ea-inline-bar button.ok { color: var(--blue, #0070f2); }

/* ---- Rahmen ---- */
.ea-frame { position: relative; width: 100%; height: 100%; border: 2px dashed rgba(29,45,62,.28); border-radius: .6rem; box-sizing: border-box; }
.ea-frame.selected { border-color: var(--blue); border-style: solid; }
.ea-frame-layout { position: absolute; top: .55rem; right: .7rem; font-size: .7rem; color: rgba(29,45,62,.55); }
.ea-frame-ai { position: absolute; bottom: .45rem; left: .7rem; font-size: .72rem; border-radius: .4rem; padding: 0 .45rem; }
.ea-frame-ai.ai { background: #dff3e4; color: #1e6b33; }
.ea-frame-ai.locked { background: #fde2e2; color: #9a2222; }
.asset-group { margin-top: .2rem; }
.asset-group > summary { cursor: pointer; font-size: .78rem; color: var(--muted); padding: .15rem 0; }
.ea-frame-title { position: absolute; top: .5rem; left: .8rem; right: .8rem; font-weight: 700; font-size: 1.05rem; color: #1d2d3e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Text ---- */
.ea-text { width: 100%; height: 100%; overflow: hidden; color: var(--text); line-height: 1.35; box-sizing: border-box; padding: .2rem; }
.ea-text.size-s { font-size: .75rem; } .ea-text.size-m { font-size: .9rem; } .ea-text.size-l { font-size: 1.15rem; }
.ea-text.size-xl { font-size: 1.9rem; font-weight: 700; }
.ea-text p { margin: 0 0 .4em; } .ea-text h1, .ea-text h2, .ea-text h3 { margin: 0 0 .3em; }
.ea-text ul, .ea-text ol { margin: 0 0 .4em; padding-left: 1.2em; }
.ea-text.selected { outline: 2px solid var(--blue); }
.ea-text a { color: inherit; text-decoration: underline; }
.kbd-table { border-collapse: collapse; font-size: .85rem; }
.kbd-table td { padding: .25rem .6rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.kbd-table td:first-child { white-space: nowrap; font-family: var(--mono); }
.kbd-table tr.kbd-sec td { font-weight: 700; border-bottom: none; padding-top: .7rem; font-family: inherit; }

/* ---- lebende Karten ---- */
.ea-card { width: 100%; height: 100%; box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.15); overflow: hidden; display: flex; flex-direction: column; color: var(--text); font-size: .8rem; }
.ea-card.selected { outline: 2px solid var(--blue); }
.ea-card.missing { border-style: dashed; opacity: .75; }
.ea-card-strip { height: .35rem; flex: 0 0 auto; }
.ea-card-body { padding: .45rem .6rem; display: flex; flex-direction: column; gap: .15rem; min-height: 0; flex: 1 1 auto; }
.ea-card-head { display: flex; align-items: flex-start; gap: .4rem; }
.ea-card-head .t { flex: 1; min-width: 0; font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; }
.ea-card-sub { color: var(--muted); font-size: .7rem; }
.ea-card-desc { opacity: .85; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ea-card-note { font-style: italic; color: var(--muted); }
/* AS-Reste: Link-Karte, Kommentar, Liste, Starter */
.ea-link-foot, .ea-link-changed, .ea-link-error { display: flex; align-items: center; gap: .4rem; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .25rem; }
.ea-link-changed { color: #b45309; font-weight: 600; }
.ea-link-error { color: #c8322f; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-link-btn { border: 1px solid var(--line); background: var(--card); color: inherit; border-radius: .3rem; font-size: .72rem; padding: .05rem .4rem; cursor: pointer; }
.ea-link-btn:disabled { opacity: .5; cursor: default; }
.ea-comment { width: 100%; height: 100%; box-sizing: border-box; background: #fff8d6; color: #3b3b2f; border: 1px solid #e6d27a; border-radius: .5rem .5rem .5rem 0; padding: .4rem .5rem; overflow: auto; font-size: .82rem; }
.ea-comment.selected { outline: 2px solid var(--blue); }
.ea-comment.resolved { opacity: .55; }
.ea-comment-head { display: flex; justify-content: space-between; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; margin-bottom: .2rem; }
.ea-comment-text { white-space: pre-wrap; }
.ea-list-rows { list-style: none; margin: .3rem 0 0; padding: 0; overflow: auto; flex: 1 1 auto; min-height: 0; }
.ea-list-row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; padding: .2rem .1rem; font-size: .78rem; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ea-list-row:hover { background: rgba(0,112,242,.08); }
.ea-list .ea-card-body { display: flex; flex-direction: column; min-height: 0; }
.ea-starter .ea-open { margin-top: .4rem; }
.ea-open { border: none; background: var(--blue); color: #fff; border-radius: .3rem; font-size: .72rem; padding: .15rem .45rem; cursor: pointer; flex: 0 0 auto; }
.ea-open:disabled { background: var(--line); cursor: default; }
.ea-preview { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: .3rem; font-size: .75rem; padding: .05rem .35rem; cursor: pointer; flex: 0 0 auto; }
.ea-preview:hover { border-color: var(--blue); color: var(--blue); }
.ea-asset-actions { display: flex; gap: .3rem; align-items: center; margin-top: .3rem; }

/* ---- Bild-Karte ---- */
.ea-image { width: 100%; height: 100%; box-sizing: border-box; position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: .4rem; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.ea-image img { flex: 1 1 auto; min-height: 0; width: 100%; display: block; pointer-events: none; background: #fff; }
.ea-image.selected { outline: 2px solid var(--blue); }
.ea-image.missing { border-style: dashed; }
.ea-image-missing { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .8rem; padding: .5rem; text-align: center; }
.ea-image-caption { flex: 0 0 auto; padding: .3rem .5rem; font-size: .78rem; color: var(--text); border-top: 1px solid var(--line); background: var(--card); }
.ea-image-zoom { position: absolute; top: .3rem; right: .3rem; border: none; border-radius: .3rem; background: rgba(0,0,0,.55); color: #fff;
  font-size: .9rem; line-height: 1; padding: .2rem .35rem; cursor: pointer; opacity: 0; transition: opacity .15s; }
.ea-image:hover .ea-image-zoom { opacity: 1; }
.ea-persona, .ea-story { width: 100%; height: 100%; box-sizing: border-box; position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: .6rem; overflow: hidden; display: flex; flex-direction: column; }
.ea-persona.selected, .ea-story.selected { outline: 2px solid var(--blue); }
.ea-persona.missing, .ea-story.missing { border-style: dashed; }
.ea-persona { align-items: center; padding: .4rem .5rem .5rem; }
.ea-persona-fig { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; justify-content: center; pointer-events: none; }
.ea-persona-fig svg { max-height: 100%; }
img.ea-persona-fig { object-fit: contain; }
.ea-persona-name { font-weight: 700; font-size: .9rem; text-align: center; color: var(--text); }
.ea-persona-name.big { font-size: 1.25rem; text-align: left; }
.ea-persona-role { font-size: .75rem; color: var(--muted); text-align: center; }
.ea-persona.profile { flex-direction: row; align-items: stretch; gap: .6rem; }
.ea-persona-figcol { flex: 0 0 34%; display: flex; }
.ea-persona-details { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: .78rem; }
.ea-persona-details .ea-persona-name, .ea-persona-details .ea-persona-role { text-align: left; }
.ea-persona-quote { font-style: italic; margin: .35rem 0; color: var(--text); }
.ea-persona-h { font-weight: 700; margin-top: .35rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.ea-persona-details ul, .persona-poster-details ul { margin: .15rem 0 0; padding-left: 1.1rem; }
.ea-persona:hover .ea-image-zoom, .ea-story:hover .ea-image-zoom { opacity: 1; }
.ea-story-head { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; padding: .4rem 2rem .4rem .6rem; background: #1d2d3e; color: #fff; }
.ea-story-title { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-story-stop { border: none; background: transparent; color: #fff; cursor: pointer; font-size: .9rem; }
.ea-story-cover { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: .4rem; padding: .6rem; overflow: hidden; }
.ea-story-desc { font-size: .82rem; color: var(--text); }
.ea-story-facts { font-size: .75rem; color: var(--muted); }
.ea-story-facts.warn { color: var(--negative, #b00); }
.ea-story-play { margin-top: auto; align-self: center; border: none; border-radius: 2rem; padding: .55rem 1.4rem; background: var(--blue); color: #fff; font-size: 1rem; cursor: pointer; }
.ea-story-frame { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: var(--card); }
.persona-poster { display: flex; gap: 1.2rem; padding: .5rem 0; }
.persona-poster-fig { flex: 0 0 38%; height: 22rem; display: flex; justify-content: center; }
.persona-poster-fig img, .persona-poster-fig svg { max-height: 100%; max-width: 100%; object-fit: contain; }
.persona-poster-details { flex: 1 1 auto; min-width: 0; font-size: .9rem; }
.story-lightbox-frame { width: 100%; height: calc(100vh - 9rem); border: 0; display: block; }
.image-lightbox-body { padding: .5rem 1rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.image-lightbox-body img { max-width: 86vw; max-height: 74vh; object-fit: contain; }

/* ---- Anleitung ---- */
.ea-guide .ea-card-body { overflow-y: auto; }
.ea-guide ol { margin: .2rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.ea-guide li { display: flex; gap: .4rem; align-items: flex-start; }
.ea-guide li .no { min-width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--blue); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ea-guide li.done .no { background: #2b7d2b; }
.ea-guide li.done .txt { text-decoration: line-through; opacity: .6; }
.ea-guide li .txt { flex: 1; min-width: 0; }
.ea-guide li .tgt { color: var(--muted); font-size: .68rem; display: block; }
.ea-guide input[type="checkbox"] { margin-top: .2rem; cursor: pointer; }
.ea-progress { height: .3rem; background: var(--line); border-radius: .2rem; overflow: hidden; margin-top: .2rem; }
.ea-progress > div { height: 100%; background: #2b7d2b; }

.board-host .react-flow__handle { width: 9px; height: 9px; background: var(--blue); border: 1px solid #fff; }

/* ---- Dialoge ---- */
.dlg-body { padding: 1rem; min-width: 26rem; max-width: 90vw; display: flex; flex-direction: column; gap: .6rem; }
.ws-list-head { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin-bottom:.8rem; }
.ws-list-head .spacer { flex:1 1 auto; }
.ws-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap:.9rem; }
.ws-card { border:1px solid var(--line, #d9dde3); border-radius:.6rem; background:var(--card, #fff); padding:.9rem 1rem; cursor:pointer; display:flex; flex-direction:column; gap:.45rem; min-width:0; }
.ws-card:hover { border-color:var(--blue, #0070f2); box-shadow:0 2px 8px rgba(0,0,0,.08); }
.ws-card h3 { margin:0; font-size:1.05rem; overflow-wrap:anywhere; }
.ws-card .ws-desc { margin:0; font-size:.85rem; opacity:.8; overflow-wrap:anywhere; }
.ws-card .ws-sheets { display:flex; flex-wrap:wrap; gap:.3rem; }
.ws-card .ws-sheets span { font-size:.75rem; padding:.1rem .45rem; border-radius:.8rem; background:rgba(0,112,242,.1); }
.ws-card .ws-foot { display:flex; align-items:center; gap:.4rem; font-size:.75rem; opacity:.75; margin-top:auto; }
.ws-card .ws-foot .spacer { flex:1 1 auto; }
.ws-badge { font-size:.7rem; padding:.05rem .4rem; border-radius:.3rem; background:rgba(232,119,34,.15); }
.dlg-footer { display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 1rem; }
.dlg-field { display: flex; flex-direction: column; gap: .2rem; }
.dlg-row { display: flex; gap: .4rem; align-items: center; }
.dlg-row > ui5-select { flex: 1; }
.ea-swap-preview { max-height: 9rem; border: 1px solid var(--line); border-radius: .4rem; background: #fff; display: flex; justify-content: center; overflow: hidden; }
.ea-swap-preview img { max-height: 9rem; max-width: 100%; object-fit: contain; display: block; }
.asset-pick-list { max-height: 20rem; overflow-y: auto; border: 1px solid var(--line); border-radius: .4rem; }
.asset-pick-row { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.asset-pick-row:last-child { border-bottom: none; }
.asset-pick-all { display: flex; align-items: center; gap: .5rem; padding: .3rem .6rem; border-bottom: 1px solid var(--line); background: var(--bg, rgba(0,0,0,.03)); position: sticky; top: 0; z-index: 1; }
.asset-pick-row:hover { background: var(--subtle); }
.asset-pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-pick-type { color: var(--muted); font-size: .75rem; flex-shrink: 0; }
.apply-list { max-height: 16rem; overflow-y: auto; border: 1px solid var(--line); border-radius: .4rem; padding: .4rem .6rem; font-size: .8rem; }
.apply-list li { margin: .2rem 0; }

/* ---- AS23: Markdown-Karten mit Begleit-Ordner ---- */
.ea-md-card .ea-card-body { gap: .25rem; }
.ea-md-card.editing { overflow: visible; }
.ea-md-card.editing .ea-card-body { position: relative; }
.ea-md-body { flex: 1 1 auto; min-height: 0; overflow: auto; font-size: .8rem; line-height: 1.35; }
.ea-md-body > :first-child { margin-top: 0; }
.ea-md-body h1 { font-size: 1.05rem; margin: .3rem 0; }
.ea-md-body h2 { font-size: .95rem; margin: .3rem 0; }
.ea-md-body h3 { font-size: .88rem; margin: .25rem 0; }
.ea-md-body p, .ea-md-body ul, .ea-md-body ol { margin: .25rem 0; }
.ea-md-body ul, .ea-md-body ol { padding-left: 1.1rem; }
.ea-md-empty { flex: 1 1 auto; color: var(--muted); font-style: italic; font-size: .78rem; }
.ea-md-card .ea-inline-edit { flex: 1 1 auto; min-height: 0; font-family: var(--mono); font-size: .78rem; line-height: 1.35; color: var(--text); }
.companion-list { display: flex; flex-direction: column; gap: .1rem; margin-top: .3rem; }
.companion-row { display: flex; align-items: center; gap: .2rem; }
.companion-name { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-size: .8rem; padding: .25rem .35rem;
  border-radius: .3rem; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.companion-name:hover, .companion-open:hover { background: var(--subtle); }
.companion-open { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .2rem .35rem; border-radius: .3rem; }
/* AS24: Schnellansicht (Reiter „Inhalt") */
#spContent:not([hidden]) { display: flex; flex-direction: column; gap: .4rem; height: 100%; min-height: 0; }
.ct-head { display: flex; align-items: baseline; gap: .5rem; }
.ct-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.ct-state { font-size: .75rem; color: var(--muted); flex: 0 0 auto; }
.ct-state.dirty { color: var(--brandeis, #e87722); font-weight: 600; }
.ct-tools { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.ct-tools[hidden], #ctHint[hidden] { display: none; }
.ct-view { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; flex: 1 1 10rem; min-width: 0; }
.ct-view select { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.ct-frame-host { flex: 1 1 auto; min-height: 24rem; display: flex; }
.ct-frame-host iframe { flex: 1 1 auto; width: 100%; border: 1px solid var(--line); border-radius: .3rem; background: var(--card); min-height: 24rem; }
.ea-content-btn { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: .3rem; font-size: .75rem; padding: .05rem .35rem; cursor: pointer; flex: 0 0 auto; }
.ea-content-btn:hover, .ea-content-btn.active { border-color: var(--blue); color: var(--blue); }
.ea-md-view { font-size: .7rem; color: var(--muted); padding: 0 .5rem; }
.ea-md-view.miss { color: var(--brandeis, #e87722); }
.companion-kind { font-size: .7rem; color: var(--muted); flex: 0 0 auto; }
body.full-mode #envelopeHost.content-wide:not(.collapsed) { width: min(56rem, calc(100vw - 8rem)); }
/* AS25: Legende */
.legend-box { position: absolute; left: .6rem; bottom: 3.2rem; z-index: 11; background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: .4rem; padding: .35rem .55rem; font-size: .75rem; max-width: 16rem; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.legend-box[hidden] { display: none; }
.legend-box .lg-head { font-weight: 600; display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.legend-box .lg-head span { flex: 1 1 auto; }
.legend-box.collapsed .lg-item { display: none; }
.lg-item { display: flex; align-items: center; gap: .45rem; margin-top: .25rem; }
.lg-swatch { width: 1rem; height: 1rem; flex: 0 0 auto; border: 1px solid rgba(0,0,0,.35); box-sizing: border-box; }
.lg-swatch.any { background: repeating-linear-gradient(45deg, #ddd 0 3px, #fff 3px 6px); }
.lg-swatch.s-sticky { border-radius: 1px; }
.lg-swatch.s-rect { border-radius: .25rem; }
.lg-swatch.s-circle { border-radius: 50%; }
.lg-swatch.s-diamond { transform: rotate(45deg) scale(.8); }
body.full-mode .legend-box { left: 4rem; bottom: 4.2rem; }
.lg-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.lg-table th { text-align: left; font-weight: 600; color: var(--muted); padding: .2rem .3rem; border-bottom: 1px solid var(--line); }
.lg-table td { padding: .2rem .3rem; vertical-align: middle; border-bottom: 1px solid var(--line); }
.lg-table select, .lg-table input[type=text] { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; padding: .15rem .25rem; }
.lg-row-top { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lg-row-top label { display: flex; gap: .4rem; align-items: center; }
.n2a-status { font-size: .75rem; white-space: nowrap; }
.n2a-status.new { color: var(--blue); }
.n2a-status.existing, .n2a-status.linked { color: #2b7d2b; }
.n2a-status.skip { color: var(--muted); }
.n2a-errors { color: #c8322f; font-size: .8rem; white-space: pre-wrap; margin: 0; }
.n2a-sum { font-size: .82rem; margin: 0; }
.companion-hint { font-size: .75rem; color: var(--muted); padding: .2rem .35rem; }

/* ---- AS22: Vollbild-Arbeitsmodus ---- */
body.full-mode > ui5-shellbar, body.full-mode > footer.app-footer, body.full-mode #editorBody > .card:first-child,
body.full-mode #legacyHint, body.full-mode .side-left, body.full-mode .panel-splitter,
body.full-mode .board-col > .sheet-bar { display: none !important; }
body.full-mode .wrap { padding: 0; }
body.full-mode #editorBody { min-height: 0; }
body.full-mode .board-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 0; min-height: 0; }
body.full-mode .board-host { border: none; border-radius: 0; min-height: 0; }
body.full-mode #envelopeHost:not(.collapsed) { position: fixed; top: 3.7rem; right: .6rem; bottom: 3.7rem; width: 23rem; max-width: calc(100vw - 1.2rem); z-index: 30; display: block !important; }
body.full-mode.presenting #envelopeHost { display: none !important; }
body.full-mode.time-on #envelopeHost:not(.collapsed) { bottom: calc(var(--tp-h, 5.6rem) + 1rem); }
.fm-bar, .fm-flyout, .fm-status { display: none; }
body.full-mode .fm-bar { position: absolute; z-index: 15; display: flex; gap: .15rem; align-items: center; background: var(--card); color: var(--text);
  border-radius: .6rem; box-shadow: var(--shadow); padding: .2rem .35rem; font-size: .85rem; max-width: calc(100% - 1.2rem); }
body.full-mode .fm-bar:empty, body.full-mode .fm-bar[hidden] { display: none; }
body.full-mode .fm-tl { top: .6rem; left: .6rem; }
body.full-mode .fm-tr { top: .6rem; right: .6rem; }
body.full-mode .fm-left { left: .6rem; top: 50%; transform: translateY(-50%); flex-direction: column; padding: .3rem .2rem; }
body.full-mode .fm-bl { bottom: .6rem; left: .6rem; }
body.full-mode .fm-br { bottom: .6rem; right: .6rem; }
body.full-mode .fm-ctx { z-index: 16; }
body.full-mode .board-host.time-on .fm-bl, body.full-mode .board-host.time-on .fm-br { bottom: calc(var(--tp-h, 5.6rem) + 1rem); }
body.full-mode .react-flow__panel.bottom { margin-bottom: 3.6rem; }
body.full-mode .board-host.time-on .react-flow__panel.bottom { margin-bottom: calc(var(--tp-h, 5.6rem) + 4rem); }
body.full-mode .react-flow__panel.bottom.left { margin-left: .6rem; }
body.full-mode.presenting .react-flow__panel.bottom { margin-bottom: .6rem; }
body.full-mode .present-bar { bottom: 3.8rem; }
.fm-title { font-weight: 600; padding: 0 .4rem; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-sep { width: 1px; align-self: stretch; background: var(--line); margin: .2rem .15rem; }
.fm-left .fm-sep { width: auto; height: 1px; margin: .15rem .2rem; }
.fm-sheet-label { background: none; border: none; color: var(--text); font: inherit; cursor: pointer; padding: .2rem .4rem; border-radius: .3rem;
  max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-sheet-label:hover { background: var(--subtle); }
ui5-button.fm-active { background: var(--subtle); border-radius: .4rem; }
body.full-mode .fm-status { display: block; position: absolute; z-index: 17; top: .6rem; left: 50%; transform: translateX(-50%); max-width: min(32rem, calc(100% - 30rem)); }
body.full-mode .fm-status ui5-message-strip { margin-top: 0 !important; }
body.full-mode .fm-flyout:not([hidden]) { display: flex; flex-direction: column; position: absolute; z-index: 25; width: 19rem; max-width: calc(100% - 1.2rem);
  background: var(--card); color: var(--text); border-radius: .6rem; box-shadow: var(--shadow); overflow: hidden; }
.fm-fly-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; font-weight: 600; font-size: .85rem; border-bottom: 1px solid var(--line); }
.fm-fly-head button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .9rem; }
.fm-fly-body { overflow-y: auto; padding: .5rem .6rem; min-height: 0; }
.fm-fly-body > .ins-group { border: none; padding: 0; }
.fm-fly-body > .ins-group > summary { display: none; }
.fm-fly-body > .sheet-bar { padding: .2rem 0; }
.fm-fly-body .fm-fly-sub { font-size: .75rem; color: var(--muted); margin: .4rem 0 0; }
body.full-mode.presenting .fm-left, body.full-mode.presenting .fm-ctx, body.full-mode.presenting .fm-br { display: none !important; }

/* AS26: Live-Session (Moderator) */
.live-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem .8rem; align-items: center; }
.live-inline { display: flex; gap: .4rem; align-items: center; }
.live-inline ui5-select { flex: 1 1 auto; min-width: 0; }
.live-share { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.live-share-text { display: flex; flex-direction: column; gap: .4rem; min-width: 16rem; flex: 1 1 16rem; }
.live-peers { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; }
.live-peers .peer-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.live-peers .peer-role { color: var(--muted); margin-left: .4rem; font-size: .75rem; }
.live-cursor-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 12; }
.live-cursor { position: absolute; transform: translate(-2px, -2px); transition: left 80ms linear, top 80ms linear; }
.live-cursor svg { display: block; }
.live-cursor span { position: absolute; left: 14px; top: 14px; font-size: .72rem; color: #fff; padding: .05rem .35rem; border-radius: .3rem; white-space: nowrap; }
.live-chip { position: absolute; top: .6rem; left: 50%; transform: translateX(-50%); z-index: 14; border: none; border-radius: 1rem; padding: .2rem .7rem;
  background: #c0392b; color: #fff; font: 600 .78rem/1.3 inherit; cursor: pointer; box-shadow: var(--shadow); }
.live-chip::before { content: "●"; margin-right: .35rem; }
body.full-mode .live-chip { top: 3.6rem; }

/* Preview ohne BDT Hub: Live-Knopf ausblenden (UI5 setzt display am Host) */
#liveBtn[hidden] { display: none !important; }

/* BPMN-Karte: Vorschau des Diagramms (payload.previewSvg) */
.ea-bpmn-preview { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: .3rem; overflow: hidden; margin-top: .3rem; }
.ea-bpmn-preview img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
/* Testerfeedback 16.11.2026: geöffnetes Seitenpanel im Vollbild verdeckt die Bedienelemente unten rechts -> nach links rücken. */
body.full-mode:has(#envelopeHost:not(.collapsed)) .react-flow__panel.bottom.right { margin-right: 24.2rem; }
body.full-mode:has(#envelopeHost:not(.collapsed)) .fm-br { right: 24.2rem; }
body.full-mode:has(#envelopeHost.content-wide:not(.collapsed)) .react-flow__panel.bottom.right,
body.full-mode:has(#envelopeHost.content-wide:not(.collapsed)) .fm-br { margin-right: 0; right: calc(min(56rem, 100vw - 8rem) + 1.2rem); }
body.full-mode:has(#envelopeHost.content-wide:not(.collapsed)) .react-flow__panel.bottom.right { right: calc(min(56rem, 100vw - 8rem) + 1.2rem); }
