    /* Profile picker (Phase A1) */
    .prof-section{margin:0 0 26px;}
    .prof-section__title{font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:var(--color-text-muted);font-weight:700;margin:0 0 12px;}
    .obs-conn{display:flex;flex-direction:column;gap:10px;max-width:none;}
    /* the fields on one line; labels shrink to their word, inputs to what they actually hold */
    .obs-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
    .obs-line>label{flex:0 0 auto;font-size:12px;font-weight:600;color:var(--color-text-muted);}
    .obs-inp--host{width:170px;flex:0 0 auto;}
    .obs-inp--port{width:92px;flex:0 0 auto;}
    .obs-inp--pass{width:150px;flex:0 0 auto;}
    .obs-row{display:flex;align-items:center;gap:12px;}
    .obs-row>label{min-width:90px;flex:0 0 auto;font-size:13px;color:var(--color-text-muted);}
    .obs-inp{flex:1;padding:9px 11px;border:1px solid var(--color-border,#333);border-radius:8px;background:var(--color-bg,#14141a);color:var(--color-text,#fff);font-size:14px;box-sizing:border-box;}
    .obs-actions{display:flex;align-items:center;gap:12px;flex:1;}
    .obs-btn{padding:9px 16px;border-radius:8px;border:none;background:var(--color-primary,#6c8cff);color:var(--color-on-primary);font-weight:700;cursor:pointer;font-size:14px;}
    .obs-btn:disabled{opacity:.6;cursor:default;}
    .obs-status{font-size:13px;color:var(--color-text-muted,#9aa0ad);}
    .obs-status--ok{color:var(--color-state);}
    .obs-status--err{color:var(--color-danger);}
    .obs-hint{font-size:12px;color:var(--color-text-muted,#9aa0ad);line-height:1.5;}
    /* ---- profiles as tiles ---------------------------------------------------
       Round 5 task 1. The chips were a 38px flex row: the right information, no shape. These are
       real tiles now - one identical size for every cell, so a wall of profiles reads as a grid
       instead of a row of ragged pills. State is carried by three quiet signals rather than one
       loud border: a rail down the left edge, a tinted fill, and an outlined ACTIVE pill.
       Everything is drawn from the existing --color-* tokens, so day and dark are covered by the
       same rules and no [data-theme] block had to be touched.
       Density: 68px tile + 10px gap over five columns puts 25 profiles in ~380px - the reason the
       cards were dropped in the first place (25 of them ran past a 1080p screen) does not return. */
    .prof-grid{--prof-tile-h:68px;display:grid;
      grid-template-columns:repeat(auto-fill,minmax(190px,1fr));grid-auto-rows:var(--prof-tile-h);gap:10px;}
    /* PIO1 export/import row: moved out of the Profiles section entirely (Round 4 task 4) - it now
       renders into the Legal & contact line at the page bottom (see .legal-section__row). This rule
       stays as the base shell; #profIoGroup below overrides size/emphasis for that new spot. */
    .prof-io-group{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
    .prof-chipwrap{position:relative;min-width:0;}
    /* Two rows, both always occupied: the name on top, the state line underneath, where the dots
       button lives on every tile whether it is active or not. That is what keeps the names on one
       baseline across the whole grid - an "ACTIVE"-only second row would let one tile sit higher
       than its neighbours. Fixed height plus the uniform 1fr track is the whole size guarantee;
       nothing inside can grow the tile, because the name ellipsizes and the tile clips. */
    .prof-chip{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;
      align-content:center;row-gap:5px;column-gap:8px;
      width:100%;max-width:100%;height:var(--prof-tile-h,68px);overflow:hidden;
      padding:0 8px 0 17px;text-align:left;
      border-radius:12px;background:var(--color-surface);border:1px solid var(--color-border);
      font:inherit;font-size:14px;font-weight:600;color:var(--color-text);cursor:pointer;
      transition:border-color .12s,background-color .12s,transform .12s;}
    .prof-chip:hover{border-color:var(--color-accent);background-color:var(--color-elevated);transform:translateY(-1px);}
    /* keyboard parity with the mouse: the tile is a real button, so it must show where focus is */
    .prof-chip:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px;border-color:var(--color-accent);}
    /* The dot became a rail. Same element, same class name, same markup out of renderProfiles() -
       only its shape changed, so one indicator does the job the dot and the border used to split. */
    .prof-chip__dot{position:absolute;left:0;top:13px;bottom:13px;width:3px;height:auto;
      border-radius:0 3px 3px 0;background:var(--color-text-muted);opacity:.3;
      transition:background-color .12s,opacity .12s;}
    .prof-chip:hover .prof-chip__dot{background:var(--color-accent);opacity:1;}
    /* Row 1, full width. minmax(0,1fr) on the track plus min-width:0 here is what stops a
       40-character name without spaces from widening the tile - it ellipsizes instead, and the
       full name stays reachable through the title attribute renderProfiles() already sets.
       line-height leaves headroom for emoji, and the tile clips anything that still overshoots. */
    .prof-chip__name{grid-column:1 / -1;grid-row:1;min-width:0;max-width:100%;
      overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
      font-size:14.5px;font-weight:700;line-height:1.45;}
    /* Row 2, left. An outlined pill, not a coloured word: it has to stay legible on the tinted
       fill of the very tile it sits on, in both themes. */
    .prof-chip__tag{grid-column:1;grid-row:2;justify-self:start;align-self:center;
      display:inline-flex;align-items:center;height:18px;padding:0 7px;
      border:1px solid var(--color-state);border-radius:999px;background:transparent;
      color:var(--color-state);font-size:10px;font-weight:800;letter-spacing:.06em;line-height:1;}
    /* Active is a rail, a fill and a pill. The border alone was the old signal and it vanished
       next to the hover border; the fill is what makes the active tile findable in a grid of 25.
       The tint is layered as a background-image over the surface colour so it composites on the
       card and not on the page behind it. */
    .prof-chip--active{border-color:var(--color-state);background-color:var(--color-surface);
      background-image:linear-gradient(var(--color-state-soft),var(--color-state-soft));}
    .prof-chip--active:hover{border-color:var(--color-state);background-color:var(--color-elevated);}
    .prof-chip--active .prof-chip__dot{background:var(--color-state);opacity:1;}
    .prof-chip--active:hover .prof-chip__dot{background:var(--color-state);opacity:1;}
    /* Row 2, right - present on every tile, which is what gives the second row a constant height.
       Resting opacity is no longer 0: a control that only exists on hover cannot be found on a
       touch screen, and at .45 it stays quiet enough not to compete with the name. */
    .prof-more{grid-column:2;grid-row:2;justify-self:end;align-self:center;
      width:26px;height:26px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
      border:0;border-radius:8px;background:transparent;color:var(--color-text-muted);
      font-size:15px;line-height:1;cursor:pointer;opacity:.45;
      transition:opacity .12s,background-color .12s,color .12s;}
    .prof-chipwrap:hover .prof-more, .prof-chipwrap--open .prof-more, .prof-chip:focus-visible .prof-more{opacity:1;}
    .prof-more:hover, .prof-chipwrap--open .prof-more{background:var(--color-elevated-hover);color:var(--color-text);}
    /* anchored to the tile height instead of the old hard-coded 42px, so the menu keeps sitting
       right under the dots button now that the tile is 68px tall */
    .prof-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:60;min-width:150px;padding:6px;
      background:var(--color-surface);border:1px solid var(--color-border);border-radius:11px;display:none;}
    .prof-chipwrap--open .prof-menu{display:block;}
    .prof-mi{display:flex;align-items:center;width:100%;height:32px;padding:0 10px;border:0;
      border-radius:7px;background:transparent;color:var(--color-text);
      font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer;}
    .prof-mi:hover{background:var(--color-elevated-hover);}
    .prof-mi--danger{color:var(--color-danger);}
    .prof-mi--danger:hover{background:var(--color-danger-soft);}
    .prof-msep{height:1px;background:var(--color-border);margin:5px 4px;}
    /* The add tile is the same tile, dashed: an empty slot rather than a profile. No width rule -
       it is a direct grid item and stretches to exactly the track the profile tiles use. The height
       falls back to 68px because #profIoGroup reuses .prof-add outside the grid, where the tile
       variable does not reach; that spot pins its own height at id specificity anyway. */
    .prof-add{display:flex;align-items:center;justify-content:center;height:var(--prof-tile-h,68px);padding:0 14px;
      border-radius:12px;border:1px dashed var(--color-border-strong);background:transparent;
      color:var(--color-text-muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer;
      transition:border-color .12s,color .12s,background-color .12s;}
    .prof-add:hover{border-color:var(--color-accent);color:var(--color-text);}
    .prof-grid .prof-add:hover{background:var(--color-elevated);}
    .prof-add:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px;}
    /* Export / import of a whole profile (.stkprofile). Same shell as .prof-add, but a solid
       border: these act ON the existing profiles, they do not add another empty slot. Theme
       variables only, so Day and Dark both get it for free. */
    .prof-io{border-style:solid;border-color:var(--color-border);}
    .prof-io:hover{border-color:var(--color-accent);color:var(--color-text);}
    .prof-io:disabled{opacity:.45;cursor:default;border-color:var(--color-border);color:var(--color-text-muted);}
    .prof-section__count{font-weight:600;letter-spacing:0;text-transform:none;font-size:12px;
      color:var(--color-text-muted);margin-left:9px;}
    .prof-card{text-align:left;cursor:pointer;background:var(--color-surface);border:1px solid var(--color-border);border-radius:14px;padding:18px 16px;color:var(--color-text);transition:border-color .12s,transform .12s;display:flex;flex-direction:column;gap:8px;min-height:78px;font-family:inherit;}
    .prof-card:hover{border-color:var(--color-accent);transform:translateY(-1px);}
    .prof-card--active{border-color:var(--color-state);box-shadow:0 0 0 1px var(--color-state) inset;}
    .prof-card__name{font-size:16px;font-weight:700;}
    .prof-card__state{font-size:12px;color:var(--color-text-muted);}
    .prof-live{color:var(--color-state);font-weight:700;}
    .prof-card--add{align-items:center;justify-content:center;text-align:center;border-style:dashed;color:var(--color-text-muted);}
    .prof-card__plus{font-size:26px;line-height:1;}
    /* Nav restructure (Phase A2) */
    /* same treatment as .nav-heading — see the sidebar-groups block in the first stylesheet */
    .nav-section{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--color-text-muted);font-weight:800;margin:20px 0 8px;padding:14px 12px 0;border-top:1px solid var(--color-border);}
    .nav-item--soon{opacity:.5;}
    .nav-soon{font-size:9px;letter-spacing:.5px;text-transform:uppercase;background:var(--color-border);color:var(--color-text-muted);border-radius:6px;padding:1px 5px;margin-left:7px;vertical-align:middle;}
    /* Profile workspace (Phase A3) */
    .prof-card__row{margin-top:4px;display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
    .pw-open{font:inherit;font-size:12px;font-weight:700;cursor:pointer;background:transparent;border:1px solid var(--color-border);color:var(--color-accent);border-radius:8px;padding:4px 10px;}
    .pw-open:hover{border-color:var(--color-accent);}
    .pw-mini{font:inherit;font-size:12px;font-weight:700;cursor:pointer;background:transparent;border:1px solid var(--color-border);color:var(--color-text-muted);border-radius:8px;padding:4px 10px;}
    .pw-mini:hover{border-color:var(--color-accent);color:var(--color-text);}
    .pw-btn{font:inherit;font-size:13px;cursor:pointer;background:var(--color-surface);border:1px solid var(--color-border);color:var(--color-text);border-radius:9px;padding:8px 12px;}
    .pw-btn:hover{border-color:var(--color-accent);}
    /* overlay <-> profile picker + backfill (1:1 link) */
  /* P-211: overflow:auto oeffnete BEIDE Achsen — die Fenster sollen nur senkrecht scrollen. */
  .ovp-list{max-height:46vh;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:6px;margin:4px 0 16px;}
  .ovp-row{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid var(--color-border);border-radius:10px;background:var(--color-bg-deep);color:var(--color-text);font-size:14px;text-align:left;cursor:pointer;}
  .ovp-row:hover{border-color:var(--color-accent);background:var(--color-surface);}
  .ovp-row__name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .ovp-row__tag{flex:none;font-size:10px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;padding:2px 7px;border-radius:6px;background:rgba(255,255,255,.06);color:var(--color-text-muted);}
  .ovp-row__tag--here{background:rgba(55,214,122,.15);color:#37d67a;}
  .ovp-row__tag--taken{background:rgba(255,176,32,.15);color:#ffb020;}
  /* "+ Add" catalog: reuses .ovp-list / .ovp-row, adds group headings and a muted
     description column so the list stays readable once M5 puts 16 modules in it. */
  .ac-group{font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--color-text-muted);margin:12px 2px 2px;}
  .ac-group:first-child{margin-top:2px;}
  .ac-desc{flex:none;max-width:52%;font-size:12px;color:var(--color-text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  /* OE5 — the catalog is a tile grid with a drawn preview per entry. The preview is a small
     inline SVG, NOT a live renderer: 22 iframes would each boot a renderer, pull fonts and
     artwork and open a socket, just to fill a picker. The drawing only has to say "this is the
     timer" at a glance; the real thing appears on the canvas one click later. */
  /* #10 — kompakter und mit ECHTER Vorschau. Vorher: 168-px-Raster, 16:10-Bild und zwei Zeilen
     Beschreibung = 209 x 184 px je Kachel, 4 Spalten, 1212 px Inhalt in einem 580-px-Fenster (zwei
     Bildschirme Scrollen fuer 22 Eintraege). Jetzt: 128-px-Raster, 4:3-Bild und nur der Name; die
     Beschreibung steht weiter im title-Tooltip. Die Vorschau ist kein Text/Icon mehr, sondern die
     echte Miniatur des Moduls (acLiveThumb) — der Timer sieht aus wie ein Timer.
     .ac-tile / .ac-grid gehoeren auch dem Goals-Stil-Katalog; der wird dadurch genauso kompakt. */
  .ac-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px;margin:2px 0 4px;}
  .ac-tile{display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden;text-align:left;cursor:pointer;
    border:1px solid var(--color-border);border-radius:10px;background:var(--color-bg-deep);color:var(--color-text);}
  .ac-tile:hover{border-color:var(--color-accent);background:var(--color-surface);}
  .ac-tile:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px;}
  .ac-tile__prev{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:
      radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,.07), rgba(255,255,255,0) 70%), #14161d;
    border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:center;}
  .ac-tile__prev svg{width:100%;height:100%;display:block;}
  /* Die echte Miniatur: der Modulknoten haengt oben links und wird von acFitThumbs() an seiner
     GEMALTEN Flaeche zentriert und verkleinert. Nie vergroessert. */
  .ac-tile__live{position:absolute;inset:0;pointer-events:none;}
  .ac-tile__live>*{position:absolute !important;left:0 !important;top:0 !important;margin:0 !important;transform-origin:0 0 !important;background:transparent;outline:none;}
  /* Standbild fuer die selbst gebauten Modul-Miniaturen: Schweben, Puls und Glanz eines Gifts
     sollen in einer Auswahlflaeche nicht laufen. Die neun wg-Szenen bekommen diese Klasse NICHT
     — sie sind reine Bewegungsbilder und zeigen eingefroren teilweise gar nichts. */
  .ac-tile__live--still *{animation:none !important;transition:none !important;}
  .ac-tile__body{padding:6px 8px 7px;}
  .ac-tile__name{font-size:12px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .ac-scroll{max-height:58vh;overflow:auto;margin:4px 0 16px;}
  /* "Also placed in overlay …" banner above a module view */
  #placeNotice{margin:0 0 14px;padding:11px 14px;border-radius:10px;font-size:13px;line-height:1.5;
    border:1px solid rgba(255,176,32,.45);background:rgba(255,176,32,.08);}
  #placeNotice .pn-title{font-weight:700;}
  #placeNotice .pn-sub{color:var(--color-text-muted);margin-top:2px;}
  .ovp-foot{display:flex;gap:10px;justify-content:flex-end;align-items:center;}
  .ovp-warn{border:1px solid rgba(255,176,32,.45);background:rgba(255,176,32,.08);border-radius:10px;padding:12px 14px;margin:4px 0 16px;font-size:13px;line-height:1.5;}
  .prof-ws__head{display:flex;align-items:center;gap:14px;margin-bottom:4px;}
    .prof-ws__title{font-size:26px;font-weight:800;}
    .prof-ws__live{font-size:14px;}
    /* ===== Profile overview, design A ("Hero strip"): overlay as a full-width hero row,
       below it ONE uniform 3-column deck. Cards are flex columns with the "Show all"
       button pinned to the bottom, so every button in a row shares one baseline. ===== */
    .prof-ws__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;}
    .prof-ws__card{display:flex;flex-direction:column;min-height:196px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:14px;padding:14px 16px 12px;box-shadow:var(--t-lift);}
    .prof-ws__card>div:last-child{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;gap:10px;}
    .prof-ws__card-t{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--color-text-muted);font-weight:800;margin-bottom:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .prof-ws__note{font-size:12.5px;color:var(--color-text-muted);line-height:1.5;margin-bottom:0;}
    .prof-ws__links{display:flex;flex-wrap:wrap;gap:8px;}
    /* hero row: thumbnail left, name + meta beside it, actions bottom-aligned */
    .prof-ws__hero{background:var(--color-surface);border:1px solid var(--color-border);border-radius:16px;padding:18px;margin-top:16px;box-shadow:var(--t-lift);}
    .prof-ws__hero .prof-ws__card-t{margin-bottom:8px;}
    #pwOverlayBody{display:flex;align-items:center;gap:14px;}
    #pwOverlayBody:has(.prof-ws__thumb){display:grid;grid-template-columns:132px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:22px;row-gap:6px;align-items:start;}
    .prof-ws__ovname{grid-column:2;font-size:19px;font-weight:800;margin-bottom:0;}
    .prof-ws__thumb{grid-column:1;grid-row:1 / span 2;width:132px;height:235px;background:var(--color-bg-deep);border:1px solid var(--color-border);border-radius:12px;overflow:hidden;margin-bottom:0;}
    .prof-ws__thumb .thumb__frame{position:relative;width:100%;height:100%;overflow:hidden;}
    .prof-ws__ovactions{grid-column:2;display:flex;gap:9px;flex-wrap:wrap;align-self:end;justify-self:start;}
    /* Effective-view rows (Phase A4) — 36px row anatomy from the preset */
    .pw-eff{display:flex;flex-direction:column;gap:6px;}
    .pw-eff__row{display:flex;align-items:center;gap:9px;height:36px;padding:0 11px;background:var(--color-bg-deep);border:1px solid var(--color-border);border-radius:9px;flex:none;}
    .pw-eff__row--off{opacity:.5;}
    .pw-eff__row--click{cursor:pointer;}
    .pw-eff__row--click:hover{border-color:rgba(96,165,255,.5);background:var(--color-surface);}
    .pw-eff__name{font-size:13px;font-weight:600;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .pw-eff__muted{font-size:11px;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.5px;}
    /* PO3: how many A&E actions hang off this row. Small and quiet — it answers a question,
       it does not compete with the object's own name. "No actions" fades further back. */
    .pw-eff__acts{flex:0 0 auto;font-size:11px;font-weight:700;color:var(--color-accent);white-space:nowrap;}
    .pw-eff__acts--none{color:var(--color-text-muted);font-weight:600;}
    .pw-badge{font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;border-radius:6px;padding:2px 8px;}
    .pw-badge--global{background:rgba(96,165,255,.15);color:var(--color-accent);}
    .pw-badge--profile{background:var(--color-state-soft);color:var(--color-state);}
    .pw-copybtn{flex:none;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1;color:var(--color-accent);background:transparent;border:1px solid rgba(96,165,255,.35);border-radius:6px;padding:0;cursor:pointer;transition:all .12s;}
    .pw-copybtn:hover{background:rgba(96,165,255,.15);}
    .pw-alrow{display:flex;align-items:center;gap:9px;height:36px;padding:0 11px;background:var(--color-bg-deep);border:1px solid var(--color-border);border-radius:9px;cursor:pointer;flex:none;}
    .pw-alcb{width:16px;height:16px;flex:none;cursor:pointer;accent-color:var(--color-primary);}
    /* "Show all"/"Open …" as the card footer: pinned to the card bottom (margin-top:auto in the
       flex-column body) and full-width — every button in a deck row shares one baseline. */
    .pw-morebtn{margin-top:auto;width:100%;text-align:center;font-size:12px;font-weight:700;color:var(--color-accent);background:transparent;border:1px solid var(--color-border);border-radius:8px;padding:7px 12px;cursor:pointer;transition:all .12s;flex:none;}
    .pw-morebtn:hover{border-color:var(--color-accent);background:var(--color-elevated);}
  /* WSC1 — cards for modules that are ONE config object, not a list of items */
  .pw-mod{display:flex;align-items:center;gap:9px;height:36px;padding:0 11px;background:var(--color-bg-deep);border:1px solid var(--color-border);border-radius:9px;flex:none;}
  .pw-mod--off{opacity:.55;}
  .pw-mod--link{cursor:pointer;}
  .pw-mod--link:hover{border-color:rgba(96,165,255,.5);background:var(--color-surface);}
  .pw-mod__txt{flex:1;font-size:14px;font-weight:600;}
  /* the fail-closed notice: Game Control is silent here unless a game is linked */
  .pw-shut{border:1px solid rgba(255,110,110,.45);background:rgba(255,110,110,.10);border-radius:9px;padding:11px 13px;font-size:13px;line-height:1.5;margin-bottom:10px;}
  .pw-shut__h{font-weight:800;letter-spacing:.3px;color:#ff8a8a;margin-bottom:3px;}
  .pw-games{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;}
  .pw-game{font-size:11px;font-weight:700;padding:3px 9px;border-radius:6px;background:var(--color-state-soft);color:var(--color-state);}
    .pw-sumnum{font-size:15px;font-weight:700;}
    .scope-badge{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;padding:2px 7px;border-radius:6px;margin-top:5px;vertical-align:middle;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .scope-badge[hidden]{display:none;}
    .scope-badge--g{background:rgba(96,165,255,.15);color:var(--color-accent);}
    .scope-badge--p{background:var(--color-state-soft);color:var(--color-state);}
    .scope-badge--off{background:rgba(255,255,255,.06);color:var(--color-text-muted);border:1px solid var(--color-border);}
    /* Q2: the two sections a module overview splits into — "Profile: <active>" first, "Global" below. */
    .scope-sec{margin:0 0 24px;}
    .scope-sec-h{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;row-gap:8px;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--color-border);}
    .scope-sec-t{font-size:15px;font-weight:800;letter-spacing:.2px;}
    .scope-sec-sub{font-size:12px;color:var(--color-text-muted);margin-top:2px;}
    .scope-sec-sp{flex:1;min-width:0;}
    .scope-sec-add{height:32px;padding:0 13px;border-radius:9px;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap;}
    .scope-sec-add:hover:not(:disabled){border-color:var(--color-accent);color:var(--color-accent);}
    .scope-sec-add:disabled{opacity:.5;cursor:not-allowed;}
    .scope-sec-empty{font-size:13px;color:var(--color-text-muted);padding:12px 2px 4px;}
    .scope-quota{font-size:12px;color:var(--color-text-muted);margin:0 0 16px;}
    /* P-12: Objekt zwischen Profil- und Global-Abschnitt verschieben (Ziehen ODER Kachelknopf).
       Die Zielmarkierung ist dieselbe Akzent-Sprache wie .sc-slot--drop in der Startseiten-Leiste
       und .layer-row.drop-before in der Ebenenliste, nur als Rahmen um einen ganzen Abschnitt.
       Rahmen und Fuellung kommen aus --color-accent, deshalb braucht keine data-theme-Variante
       eine eigene Regel — --color-accent ist in jedem Theme gesetzt. Die rgba-Zeile ist NUR der
       Rueckfall fuer Engines ohne color-mix(): dort bleibt die feste Blautoenung stehen, ueberall
       sonst ueberschreibt die zweite Deklaration sie mit dem Akzent des aktiven Themes. */
    .scope-sec--drop{outline:2px dashed var(--color-accent);outline-offset:6px;border-radius:14px;
      background:rgba(96,165,255,.08);
      background:color-mix(in srgb, var(--color-accent) 8%, transparent);}
    .sc-moving{opacity:.45;}
    .sc-movebtn{cursor:pointer;}
    .sc-movebtn:hover{color:var(--color-accent);border-color:var(--color-accent);}
    /* Zeilenfassung (Sounds-Tabelle, Ereigniszeile in Actions & Events): dort ist der Knopf ein
       .al-btn--mini und traegt sein Icon selbst, weil .tile-btn--icon dort nicht gilt. */
    .sc-movebtn--row{display:inline-flex;align-items:center;justify-content:center;padding:0 7px;}
    .sc-movebtn--row svg{width:13px;height:13px;display:block;}
    /* ---- go-live readiness -------------------------------------------------- */
    .golive{background:var(--color-surface);border:1px solid var(--color-border);border-radius:16px;
      padding:16px 18px;margin:0 0 22px;}
    .golive__top{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap;row-gap:8px;}
    .golive__h{font-size:17px;font-weight:800;}
    .golive__count{font-size:12.5px;color:var(--color-text-muted);}
    .golive__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
    .gostat{display:flex;align-items:center;gap:10px;background:var(--color-elevated);
      border:1px solid var(--color-border);border-radius:11px;padding:10px 12px;min-width:0;}
    .gostat__i{width:20px;height:20px;border-radius:50%;flex:0 0 auto;display:flex;align-items:center;
      justify-content:center;font-size:11px;font-weight:900;color:var(--color-on-primary);}
    .gostat__i--y{background:var(--color-state);}
    .gostat__i--n{background:var(--color-danger);}
    /* neutral: an optional thing that is simply off, not a problem to solve */
    .gostat__i--i{background:var(--color-border-strong);}
    .gostat__tx{min-width:0;}
    .gostat b{display:block;font-size:12.5px;font-weight:700;}
    .gostat i{font-style:normal;display:block;font-size:11.5px;color:var(--color-text-muted);
      overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    /* APP-235: step buttons + the small OBS section further down (moved out of the go-live card) */
    .gostat--opt{border-style:dashed;}
    .gostat__n{font-size:10.5px;font-weight:800;color:var(--color-text-muted);margin-right:2px;}
    .gostat__go{margin-top:5px;padding:4px 10px;border-radius:8px;border:1px solid var(--color-border-strong);
      background:var(--color-surface);color:var(--color-accent);font:inherit;font-size:11.5px;font-weight:800;cursor:pointer;}
    .gostat__go:hover{text-decoration:underline;}
    .gostat__tx i.gostat__opt{white-space:normal;}
    #obs-section.obs-mini{margin:22px 0 0;padding:10px 14px;background:var(--color-surface);
      border:1px solid var(--color-border);border-radius:12px;}
    #obs-section.obs-mini .golive__obsh{margin-bottom:6px !important;}
    #obs-section.obs-mini .obs-hint{font-size:11.5px;}
    :root[data-theme="day"] #obs-section.obs-mini .obs-conn{background:none;border:0;padding:0;box-shadow:none;}
    .golive__obsh{font-size:11px !important;letter-spacing:.09em;color:var(--color-text-muted) !important;margin-bottom:9px !important;}

    /* ---- the three home cards ----------------------------------------------- */
    .home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 0;}
    .hcard{background:var(--color-surface);border:1px solid var(--color-border);border-radius:14px;padding:16px 18px;}
    .hcard h3{margin:0 0 13px;font-size:13px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
      color:var(--color-text-muted);display:flex;align-items:center;gap:9px;}
    .hcard__rt{margin-left:auto;font-size:11px;font-weight:800;letter-spacing:0;text-transform:none;color:var(--color-state);}
    .hcard__muted{font-size:13px;color:var(--color-text-muted);}
    /* HOME2: dismiss for the Getting-started card — deliberately quiet (no border, muted
       colour), it must never compete with the checklist rows it sits above. */
    .hcard__hide{margin-left:9px;padding:0;border:0;background:transparent;font:inherit;font-size:11px;
      font-weight:800;letter-spacing:0;text-transform:none;color:var(--color-text-muted);cursor:pointer;}
    .hcard__hide:hover{color:var(--color-text);text-decoration:underline;}
    .hcard__link{display:inline-block;margin-top:11px;font-size:12.5px;font-weight:800;
      color:var(--color-accent);text-decoration:none;}
    .hcard__link:hover{text-decoration:underline;}
    /* DE1: the "Save debug log" button borrows the link look but stays a button (own line,
       so it never crowds the account portal link next to it). */
    .hcard__linkbtn{display:block;padding:0;border:0;background:none;text-align:left;
      font:inherit;font-size:12.5px;font-weight:800;color:var(--color-accent);cursor:pointer;}
    .hrow{display:flex;gap:10px;padding:4px 0;font-size:13px;}
    .hrow span{color:var(--color-text-muted);min-width:72px;flex:0 0 auto;font-size:12.5px;}
    .ck{display:flex;align-items:center;gap:11px;padding:9px 0;border-bottom:1px solid var(--color-border);font-size:13.5px;}
    .ck:last-child{border-bottom:0;}
    .ck__b{width:19px;height:19px;border-radius:6px;border:1.5px solid var(--color-border-strong);flex:0 0 auto;
      display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;}
    .ck--done .ck__b{background:var(--color-state);border-color:var(--color-state);color:var(--color-on-primary);}
    .ck--done .ck__t{color:var(--color-text-muted);text-decoration:line-through;}
    .ck--manual .ck__b{border-style:dashed;}
    .ck__go{margin-left:auto;height:28px;padding:0 11px;border-radius:8px;border:1px solid var(--color-border-strong);
      background:transparent;color:var(--color-accent);font:inherit;font-size:12px;font-weight:800;cursor:pointer;}
    .nws{padding:9px 0;border-bottom:1px solid var(--color-border);font-size:13px;}
    .nws:last-child{border-bottom:0;}
    .nws a{color:var(--color-accent);text-decoration:none;font-weight:700;}
    /* P-178: die reine Textmarke "NEU" auf dem neuesten Eintrag — in der Karte wie im Katalog.
       Keine Pille, keine Flaeche: nur Farbe, Versalien und Laufweite. */
    .nws-new{color:var(--color-accent);font-weight:800;font-size:10.5px;
      text-transform:uppercase;letter-spacing:.06em;margin-right:8px;}
    /* P-137: die Karte zeigt je Neuigkeit GENAU EINE Zeile — Version/Datum + Ueberschrift, hart
       auf eine Zeile geklemmt (nowrap + ellipsis), damit nichts ueber den Kartenrand laeuft. Der
       volle Text steht im Katalogfenster (#news-modal), das ein Klick auf die Zeile oeffnet.
       line-height ist bewusst eine ZAHL und nicht "normal": nur so ist "eine Zeile" nachmessbar. */
    .nws-line{display:block;width:100%;box-sizing:border-box;padding:8px 0;border:0;
      border-bottom:1px solid var(--color-border);background:none;font:inherit;font-size:13px;
      line-height:20px;color:var(--color-text);text-align:left;cursor:pointer;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
    .nws-line:last-child{border-bottom:0;}
    .nws-line:hover .nws-line__t{text-decoration:underline;}
    .nws-line__d{color:var(--color-text-muted);font-size:11.5px;margin-right:8px;}
    .nws-line__t{font-weight:700;}
    /* P-178: das Katalogfenster hat seit hier eine eigene Kopfzeile (Version/Datum, dazu "NEU"
       beim ersten Eintrag) ueber der Ueberschrift, und die Punkte stehen als <ul> darunter — eigene
       Regeln statt der frueheren .nws b/i/p. position:relative auf .news-cat macht offsetTop eines
       Eintrags zu seinem Abstand IM Kasten; darauf setzt das Anspringen auf. */
    /* P-211: Seitenpolster 10px — die is-at-Hervorhebung unten arbeitet mit margin:-10px und ragte
       ueber die alte 2/6px-Kante hinaus; weil overflow-y:auto die x-Achse per CSS-Spezifikation
       auf auto zwingt (nie visible), stand darum ein waagerechter Balken im Fenster. Das Polster
       behebt die URSACHE (der Eintrag passt jetzt), overflow-x:hidden schliesst die Achse dazu. */
    .news-cat{position:relative;max-height:62vh;overflow-y:auto;overflow-x:hidden;padding:2px 10px;}
    .news-cat .nws{padding:13px 0;}
    /* Der Eintrag, wegen dem das Fenster aufgegangen ist. Nur waagerecht (Hintergrund + 10px
       Polsterung gegen -10px Rand) — die Hoehen und damit offsetTop bleiben unveraendert. */
    .news-cat .nws.is-at{background:var(--color-elevated);border-radius:8px;
      padding-left:10px;padding-right:10px;margin-left:-10px;margin-right:-10px;}
    /* P-218/TP3: der NEUESTE Eintrag hebt sich klar ab — Rahmen in der Akzentfarbe plus mehr
       Abstand zum naechsten Eintrag. Dieselbe ±10px-Technik wie .is-at eine Zeile drueber:
       die Minus-Raender verbrauchen exakt das 10px-Polster des Kastens (P-211), nichts steht
       seitlich ueber. Vertraegt sich mit .is-at (gleiche Masse, nur Hintergrund+Rahmen addieren
       sich). Die NEU-Marke (.nws-new) bleibt unveraendert. */
    .news-cat .nws--latest{border:1px solid var(--color-accent);border-radius:10px;
      padding-left:10px;padding-right:10px;margin-left:-10px;margin-right:-10px;
      margin-bottom:14px;}
    .nws-head{font-size:11.5px;margin-bottom:4px;}
    .nws-head__v{font-weight:800;color:var(--color-text);}
    .nws-head__sep,.nws-head__d{color:var(--color-text-muted);}
    /* P-211: lange ungebrochene Woerter (URLs, Versionsnamen) sollen umbrechen statt seitlich
       ueberzustehen — Inhalt passt in die Breite, nichts wird abgeschnitten. */
    .nws-h{display:block;font-size:15px;font-weight:800;color:var(--color-text);overflow-wrap:anywhere;}
    .nws-pts{margin:6px 0 0;padding-left:18px;font-size:13px;line-height:1.5;color:var(--color-text);overflow-wrap:anywhere;}
    .nws-pts li{margin:2px 0;}
    .modal--news{width:720px;max-width:94vw;align-items:stretch;position:relative;}
    .modal--news .modal__title{margin-bottom:12px;}

    /* ---- resources ----------------------------------------------------------- */
    .res-section{margin:26px 0 0;}
    /* APP-129: four cards (Tutorials, Discord, Help centre, Handbook). max-width grows with the
       fourth column so every card keeps about the width it had in the row of three. Like the old
       row of three: fixed columns, minmax(0,1fr) shrinks them with the window, no break point. */
    .res-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:1200px;}
    .res > span:last-child{min-width:0;}
    .res{display:flex;align-items:center;gap:11px;background:var(--color-surface);
      border:1px solid var(--color-border);border-radius:12px;padding:12px 14px;
      text-decoration:none;color:var(--color-text);}
    .res:hover{border-color:var(--color-accent);}
    .res__ic{width:28px;height:28px;border-radius:9px;background:var(--color-elevated);flex:0 0 auto;
      display:flex;align-items:center;justify-content:center;color:var(--color-accent);}
    .res__ic svg{width:16px;height:16px;display:block;}
    .res b{display:block;font-size:13px;}
    .res i{font-style:normal;font-size:11.5px;color:var(--color-text-muted);}

    /* ---- legal & contact (Home footer) ---------------------------------------- */
    .legal-section{margin:26px 0 0;padding-top:16px;border-top:1px solid var(--color-border);}
    .legal-section__title{font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--color-text-muted);margin-bottom:8px;}
    /* Round 4 task 4 (layout only): legal row + the PIO1 export/import buttons share this line,
       buttons pinned to the far right. Wraps under the legal text on narrow widths instead of
       overlapping it. */
    .legal-section__row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;}
    .legal-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:12.5px;color:var(--color-text-muted);}
    /* Export/import, dezent at this ID scope only — .prof-add/.prof-io classes and their JS
       handlers (renderProfiles()) are untouched; this just re-skins them small/secondary, like the
       existing .tb-btn--ghost pattern, now that they sit next to the legal line instead of under
       the profile chips. */
    #profIoGroup{margin-top:0;flex:0 0 auto;margin-left:auto;}
    #profIoGroup .prof-io{height:26px;padding:0 10px;border-style:solid;border-color:transparent;
      background:transparent;color:var(--color-text-muted);font-size:12px;font-weight:600;}
    #profIoGroup .prof-io:hover:not(:disabled){border-color:var(--color-border);color:var(--color-text);background:var(--color-elevated-hover);}
    #profIoGroup .prof-io:disabled{opacity:.45;cursor:default;border-color:transparent;}
    .legal-name{color:var(--color-text);}
    .legal-sep{color:var(--color-border-strong);}
    .legal-link{color:var(--color-text-muted);text-decoration:none;background:none;border:0;padding:0;font:inherit;cursor:pointer;}
    .legal-link:hover{color:var(--color-accent);text-decoration:underline;}
    .legal-info-btn{width:16px;height:16px;padding:0;margin-left:-6px;border:0;background:none;color:var(--color-text-muted);
      font-size:14px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
    .legal-info-btn:hover{color:var(--color-accent);}
    .modal--legal{width:560px;max-width:92vw;align-items:stretch;position:relative;}
    .legal-body{font-size:12.5px;line-height:1.65;color:var(--color-text);white-space:pre-line;max-height:50vh;
      overflow-y:auto;background:var(--color-bg-deep);border:1px solid var(--color-border);border-radius:10px;
      padding:14px 16px;margin:4px 0 18px;}
    .legal-body a{color:var(--color-accent);}
    .legal-modal-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;}
    .legal-modal-foot a{font-size:12px;color:var(--color-accent);text-decoration:none;}
    .legal-modal-foot a:hover{text-decoration:underline;}
    /* ---- tutorials catalog (Home Resources -> Tutorials) ---------------------- */
    .modal--tutorials{width:820px;max-width:94vw;align-items:stretch;position:relative;}
    .tut-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;
      max-height:64vh;overflow-y:auto;padding:2px 2px 4px;margin-top:4px;}
    .tut-card{display:flex;flex-direction:column;background:var(--color-bg-deep);
      border:1px solid var(--color-border);border-radius:10px;overflow:hidden;}
    .tut-card__frame{width:100%;aspect-ratio:16/9;border:0;display:block;background:#000;}
    .tut-card__title{font-size:13px;font-weight:700;color:var(--color-text);padding:10px 12px 2px;}
    .tut-card__link{font-size:12px;color:var(--color-accent);text-decoration:none;padding:4px 12px 12px;}
    .tut-card__link:hover{text-decoration:underline;}
    .tut-empty{font-size:13px;color:var(--color-text-muted);text-align:center;padding:36px 0;}
    /* ---- APP-129: handbook window (Home Resources -> Handbook, js/home/45-handbuch.js) ----------
       Same frame as the other Home windows (.modal-overlay/.modal, .modal__close, --color-* only,
       so day/dark need no extra rules): contents on the left, text on the right, search on top. */
    .modal--handbook{width:1180px;max-width:96vw;height:88vh;align-items:stretch;position:relative;padding:22px 26px 18px;}
    .hb-head{display:flex;align-items:center;gap:16px;margin:0 44px 14px 0;}
    .hb-head .modal__title{margin:0;flex:0 0 auto;}
    .hb-search{position:relative;flex:1;min-width:0;}
    .hb-search__input{width:100%;height:38px;padding:0 12px;background:var(--color-bg-deep);
      border:1px solid var(--color-border);border-radius:8px;color:var(--color-text);font-size:14px;}
    .hb-search__input:focus{outline:none;border-color:var(--color-accent);}
    .hb-hits[hidden]{display:none;}
    .hb-hits{position:absolute;left:0;right:0;top:44px;z-index:2;max-height:56vh;overflow-y:auto;overflow-x:hidden;
      background:var(--color-surface);border:1px solid var(--color-border-strong);border-radius:10px;padding:6px;
      box-shadow:0 10px 30px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:2px;}
    .hb-hit{display:block;width:100%;text-align:left;padding:9px 12px;border-radius:8px;background:transparent;
      border:1px solid transparent;color:var(--color-text);cursor:pointer;}
    .hb-hit:hover,.hb-hit:focus{background:var(--color-elevated);border-color:var(--color-border);outline:none;}
    .hb-hit__t{display:block;font-size:13.5px;font-weight:700;overflow-wrap:anywhere;}
    .hb-hit__s{display:block;font-size:12px;color:var(--color-text-muted);margin-top:2px;overflow-wrap:anywhere;}
    .hb-hits__empty{padding:14px 10px;text-align:center;font-size:13px;color:var(--color-text-muted);}
    .hb-body{display:flex;gap:20px;flex:1;min-height:0;}
    .hb-toc{width:290px;flex:0 0 auto;overflow-y:auto;overflow-x:hidden;padding:2px 10px 8px 0;border-right:1px solid var(--color-border);}
    .hb-toc__title{font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--color-text-muted);margin:2px 4px 8px;}
    .hb-toc__ch{margin:0 0 2px;}
    .hb-toc__row{display:flex;align-items:center;gap:2px;}
    .hb-toc__tg{flex:0 0 auto;width:22px;height:26px;display:flex;align-items:center;justify-content:center;
      background:transparent;border:0;border-radius:6px;color:var(--color-text-muted);cursor:pointer;font-size:10px;transition:transform .12s;}
    .hb-toc__tg:hover{color:var(--color-text);background:var(--color-elevated);}
    .hb-toc__ch--open > .hb-toc__row > .hb-toc__tg{transform:rotate(90deg);}
    .hb-toc__tg--none{visibility:hidden;}
    .hb-toc__a{flex:1;min-width:0;text-align:left;padding:5px 8px;border-radius:7px;background:transparent;border:1px solid transparent;
      color:var(--color-text);font-size:13px;font-weight:700;cursor:pointer;overflow-wrap:anywhere;line-height:1.3;}
    .hb-toc__a:hover{background:var(--color-elevated);}
    .hb-toc__a--on{border-color:var(--color-accent);background:var(--color-elevated);}
    .hb-toc__subs{display:none;margin:0 0 4px 24px;}
    .hb-toc__ch--open > .hb-toc__subs{display:block;}
    .hb-toc__subs .hb-toc__a{display:block;width:100%;font-size:12.5px;font-weight:600;color:var(--color-text-muted);}
    .hb-toc__subs .hb-toc__a:hover,.hb-toc__subs .hb-toc__a--on{color:var(--color-text);}
    .hb-text{flex:1;min-width:0;overflow-y:auto;overflow-x:hidden;padding:0 10px 40px 2px;font-size:14px;line-height:1.6;
      color:var(--color-text);overflow-wrap:anywhere;user-select:text;}
    .hb-text h1{font-size:24px;font-weight:800;margin:4px 0 12px;line-height:1.25;}
    .hb-text h2{font-size:20px;font-weight:800;margin:30px 0 10px;padding-top:14px;border-top:1px solid var(--color-border);line-height:1.3;}
    .hb-text h3{font-size:16px;font-weight:800;margin:22px 0 8px;line-height:1.3;}
    .hb-text h4,.hb-text h5,.hb-text h6{font-size:14px;font-weight:800;margin:16px 0 6px;}
    .hb-text p{margin:0 0 10px;}
    .hb-text ul,.hb-text ol{margin:0 0 10px;padding-left:22px;}
    .hb-text li{margin:2px 0;}
    .hb-text li > ul,.hb-text li > ol{margin:2px 0 4px;}
    .hb-text code{font-family:Consolas,"Courier New",monospace;font-size:12.5px;padding:1px 5px;border-radius:5px;
      background:var(--color-bg-deep);border:1px solid var(--color-border);}
    .hb-text pre{margin:0 0 10px;padding:10px 12px;border-radius:8px;background:var(--color-bg-deep);border:1px solid var(--color-border);
      overflow-x:auto;white-space:pre;font-family:Consolas,"Courier New",monospace;font-size:12.5px;}
    .hb-text pre code{padding:0;border:0;background:transparent;}
    .hb-text blockquote{margin:0 0 10px;padding:8px 12px;border:1px solid var(--color-border);background:var(--color-bg-deep);border-radius:8px;}
    .hb-text blockquote p:last-child{margin-bottom:0;}
    .hb-text a{color:var(--color-accent);text-decoration:none;cursor:pointer;}
    .hb-text a:hover{text-decoration:underline;}
    .hb-text hr{border:0;border-top:1px solid var(--color-border);margin:18px 0;}
    .hb-tbl{overflow-x:auto;margin:0 0 12px;}
    .hb-text table{border-collapse:collapse;font-size:13px;min-width:50%;}
    .hb-text th,.hb-text td{border:1px solid var(--color-border);padding:6px 10px;text-align:left;vertical-align:top;}
    .hb-text th{background:var(--color-elevated);font-weight:800;}
    .hb-text .hb-flash{animation:hbFlash 1.4s ease-out;}
    @keyframes hbFlash{0%{background:var(--color-state-soft);}100%{background:transparent;}}
    .hb-msg{padding:40px 0;text-align:center;font-size:13px;color:var(--color-text-muted);}
    .sc-section{margin:34px 0 0;padding-top:26px;border-top:1px solid var(--color-border);}
    .sc-section__title{font-size:13px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--color-text);margin-bottom:4px;}
    .sc-section__hint{font-size:12px;color:var(--color-text-muted);margin-bottom:16px;}
    /* one row of eight instead of two rows of four: the description is what made the tile tall,
       and the module name alone identifies a shortcut well enough. renderShortcuts and the
       drag-and-drop are untouched — the description is simply not shown. */
    /* Round 4 task 4 (layout only): dropped the 1180px cap so the grid fills the full content
       width instead of a narrow column; still 8 equal columns via the 1fr tracks. */
    .sc-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;}
    .sc-slot .card__desc{display:none;}
    .sc-slot .card__title{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;}
    .sc-slot{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:var(--color-surface);border:1px solid var(--color-border);border-radius:14px;padding:20px;cursor:pointer;transition:all .12s;}
    .sc-slot:hover{background:var(--color-elevated);border-color:var(--color-accent);}
    .sc-slot--drop{border-color:var(--color-accent);border-style:dashed;background:rgba(96,165,255,.08);}
    .scope-list{display:flex;flex-direction:column;gap:5px;margin:8px 0 2px;}
    .scope-item{font-size:13px;display:flex;align-items:center;gap:7px;cursor:pointer;}
    /* the shared scope field's hint: styled globally so it no longer depends on Timer's injected #tm-style */
    .scope-hint{font-size:11px;color:var(--color-text-muted);margin-top:6px;}
    /* #15: .scope-except (der Ausklapper "Turn off in specific profiles…") ist entfallen. */
    /* Q2: the Sounds table's scope cell. #15 hat den Schalter daraus entfernt — uebrig bleibt das
       "shared with n profiles"-Abzeichen im Profil-Abschnitt, also nur noch ein Container. Die
       Button-Regeln sind mit dem Button weg (sie trugen als einzige verbliebene Aktion noch ein
       text-overflow:ellipsis, siehe Fund #6). */
    .snd-prof{display:flex;align-items:center;min-width:0;}
    /* generic floating popover frame (used by the nav profile switcher) */
    .pop-shell{position:fixed;z-index:9999;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;padding:12px;box-shadow:0 8px 30px rgba(0,0,0,.5);max-width:280px;}
    .pop-shell-h{font-size:12px;font-weight:700;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px;}
    /* Phase 10: language dropdown on the Home view (flag + name, no reload). Theme-aware via vars. */
    .home-langsel{float:right;position:relative;z-index:40;margin:2px 0 0 16px;}
    .langsel-btn{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px;border-radius:10px;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);font-size:13px;font-weight:600;cursor:pointer;min-width:0;}
    .langsel-btn:hover{border-color:var(--color-accent);}
    .langsel-flag{display:inline-flex;width:20px;height:14px;border-radius:2px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.25);flex:0 0 auto;}
    .langsel-flag svg{width:100%;height:100%;display:block;}
    .langsel-caret{font-size:10px;opacity:.7;}
    .langsel-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);min-width:176px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.35);padding:4px;}
    .home-langsel.langsel--open .langsel-menu{display:block;}
    .langsel-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--color-text);font-size:13px;cursor:pointer;text-align:left;}
    .langsel-item:hover{background:var(--color-elevated);}
    .langsel-item--on{font-weight:700;}
    .langsel-check{margin-left:auto;color:var(--color-accent);}

    /* APP-40 — Presets element. stk-pw-* = add wizard (ovpModal), stk-pp-* = properties panel. */
    .stk-pw-body{display:flex;flex-direction:column;gap:10px;color:var(--color-text);}
    .stk-pw-group{display:flex;flex-direction:column;gap:6px;}
    .stk-pw-games{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin:2px 0;}
    .stk-pw-game{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 8px;cursor:pointer;text-align:center;
      border:1px solid var(--color-border);border-radius:10px;background:var(--color-bg-deep);color:var(--color-text);}
    .stk-pw-game:hover{border-color:var(--color-accent);background:var(--color-surface);}
    .stk-pw-game:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px;}
    .stk-pw-game__logo{width:56px;height:56px;object-fit:contain;border-radius:8px;}
    .stk-pw-game__name{font-size:12px;font-weight:700;line-height:1.25;}
    .stk-pw-empty{padding:18px 12px;text-align:center;color:var(--color-text-muted);font-size:12px;}
    .stk-pw-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
    .stk-pw-count{margin-left:auto;color:var(--color-text-muted);font-size:12px;}
    .stk-pw-table{max-height:52vh;overflow:auto;border:1px solid var(--color-border);border-radius:10px;}
    .stk-pw-row{display:flex;align-items:center;gap:12px;padding:6px 12px;border-bottom:1px solid var(--color-border);}
    .stk-pw-row:last-child{border-bottom:0;}
    .stk-pw-row:hover{background:var(--color-surface);}
    .stk-pw-row--head{position:sticky;top:0;z-index:1;background:var(--color-bg-deep);color:var(--color-text-muted);font-size:11px;font-weight:700;text-transform:uppercase;}
    .stk-pw-row--head:hover{background:var(--color-bg-deep);}
    .stk-pw-cell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .stk-pw-cell--cb{flex:none;width:20px;}
    .stk-pw-cell--cb input{width:16px;height:16px;accent-color:var(--color-accent);cursor:pointer;}
    .stk-pw-cell--name{flex:0 0 28%;font-weight:600;display:flex;align-items:center;gap:10px;}
    .stk-pw-cell--label{flex:1;color:var(--color-text-muted);font-size:12px;}
    .stk-pw-cell--follow{flex:none;width:64px;text-align:center;color:var(--color-text-muted);font-size:12px;}
    .stk-pw-gift__img{flex:none;width:32px;height:32px;object-fit:contain;border-radius:6px;}
    .stk-pp-group{display:flex;flex-direction:column;gap:6px;}
    .stk-pp-tileset{display:flex;flex-direction:column;gap:6px;}
    .stk-pp-list{display:flex;flex-direction:column;gap:4px;max-height:280px;overflow:auto;margin:4px 0;}
    /* APP-58: gift row = picture + whole name (wraps, grows) on top, compact tools underneath */
    .stk-pp-row{display:flex;flex-direction:column;gap:4px;padding:6px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg-deep);}
    .stk-pp-row__top{display:flex;align-items:flex-start;gap:8px;}
    .stk-pp-row__bar{display:flex;align-items:center;gap:6px;}
    .stk-pp-row__spacer{flex:1;}
    textarea.stk-pp-row__text{width:100%;min-height:32px;resize:none;overflow:hidden;line-height:1.35;white-space:pre-wrap;overflow-wrap:anywhere;box-sizing:border-box;font-family:inherit;}
    /* APP-58: collapsible sections of the Presets properties */
    .stk-pp-sec{margin-top:10px;border-top:1px solid var(--color-border);}
    .stk-pp-sec__head{display:flex;align-items:center;gap:8px;padding:8px 2px;cursor:pointer;user-select:none;color:var(--color-text);font-weight:700;font-size:12px;}
    .stk-pp-sec__head:hover{color:var(--color-accent);}
    .stk-pp-sec__head:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px;border-radius:6px;}
    .stk-pp-sec__ico{flex:none;display:inline-flex;color:var(--color-accent);}
    .stk-pp-sec__title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    .stk-pp-sec__chev{flex:none;display:inline-flex;color:var(--color-text-muted);transition:transform .15s;transform:rotate(-90deg);}
    .stk-pp-sec.is-open>.stk-pp-sec__head>.stk-pp-sec__chev{transform:none;}
    .stk-pp-gift__img{flex:none;width:32px;height:32px;object-fit:contain;border-radius:4px;}
    .stk-pp-row__text{flex:1;min-width:0;}
    .stk-pp-row__top .stk-pp-gift__img{margin-top:0;}
    .stk-pp-row__follow{flex:none;color:var(--color-accent);font-size:11px;font-weight:700;}
    .stk-pp-row__btn{flex:none;width:24px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--color-border);
      border-radius:6px;background:transparent;color:var(--color-text);cursor:pointer;font-size:12px;line-height:1;}
    .stk-pp-row__btn:hover{border-color:var(--color-accent);background:var(--color-surface);}
    .stk-pp-row__btn[disabled]{opacity:.35;cursor:default;}
    .stk-pp-row__btn--del:hover{border-color:var(--color-danger);color:var(--color-danger);}
    .stk-pp-add,.stk-pp-fonts,.stk-pp-test{width:100%;}
    /* APP-327 — Preset editor window (js/leinwand/43-preset-editor.js) */
    .stk-pp-help{margin:0 0 6px;}
    .stk-pp-later{margin:2px 0 4px;font-style:italic;}
    .stk-pp-row.is-sel{border-color:var(--color-accent);box-shadow:0 0 0 1px var(--color-accent) inset;}
    .stk-ped{width:calc(100vw - 48px);height:calc(100vh - 48px);max-width:none;padding:0;align-items:stretch;overflow:hidden;gap:0;}
    .stk-ped__head{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid var(--color-border);flex:none;}
    .stk-ped__h1{font-size:18px;font-weight:800;}
    .stk-ped__hint{font-size:12px;color:var(--color-text-muted);margin-top:2px;}
    .stk-ped__x{width:34px;height:34px;padding:0;font-size:22px;line-height:1;border:1px solid var(--color-border);border-radius:8px;background:var(--color-elevated);color:var(--color-text);cursor:pointer;}
    .stk-ped__x:hover{border-color:var(--color-accent);}
    .stk-ped__main{flex:1;min-height:0;display:flex;}
    .stk-ped__left{flex:0 0 60%;min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--color-border);}
    .stk-ped__right{flex:1;min-width:0;overflow:auto;padding:4px 16px 16px;}
    .stk-ped__tools{display:flex;align-items:center;gap:6px;padding:8px 12px;flex:none;flex-wrap:wrap;}
    .stk-ped__pct{min-width:48px;text-align:center;font-size:12px;font-weight:700;}
    .stk-ped__pg{display:inline-flex;align-items:center;gap:4px;margin-left:8px;}
    .stk-ped__pgl{font-size:12px;font-weight:700;min-width:64px;text-align:center;}
    .stk-ped__snap{display:inline-flex;align-items:center;gap:6px;margin-left:8px;font-size:12px;font-weight:700;cursor:pointer;}
    .stk-ped__notice{margin:0 12px 6px;color:var(--color-warning);}
    .stk-ped__view{position:relative;flex:1;min-height:0;overflow:hidden;outline:none;touch-action:none;user-select:none;background:var(--color-bg);}
    /* the element's own area = the overlay editor's #stage checker (dark base here, day in 02 list); the surroundings are .stk-ped__view (var(--color-bg), like .canvas-area) */
    .stk-ped__stage{position:absolute;left:0;top:0;overflow:hidden;overflow:clip;isolation:isolate;}
    .stk-ped__bgimg{position:absolute;inset:0;z-index:0;pointer-events:none;background-repeat:no-repeat;background-position:center;background-size:cover;}
    .stk-ped__bg,.stk-ped__bg *{pointer-events:none!important;}
    .stk-ped__frame{border:2px solid var(--color-accent);}
    .stk-ped__pan{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;}
    .stk-ped__ui{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;}
    .stk-ped__ui>div{position:absolute;box-sizing:border-box;pointer-events:none;}
    .stk-ped__box{border:1px dashed rgba(128,128,140,.8);}
    .stk-ped__tile{border:1px solid var(--color-accent);background:rgba(120,140,255,.12);}
    .stk-ped__grp{border:1px dashed var(--color-accent);}
    .stk-ped__h{background:#fff;border:1px solid var(--color-accent);pointer-events:auto!important;}
    .stk-ped__h--nw,.stk-ped__h--se{cursor:nwse-resize;}
    .stk-ped__h--ne,.stk-ped__h--sw{cursor:nesw-resize;}
    .stk-ped__guide{background:#ff3d9a;}
    .stk-ped__marq{border:1px solid var(--color-accent);background:rgba(120,140,255,.15);}
    .stk-ped__foot{display:flex;padding:10px 16px;border-top:1px solid var(--color-border);flex:none;}
    /* APP-328 - Tiles section (size, visible & names), Layers section */
    .stk-pp-sizes{display:flex;gap:6px;margin:2px 0 6px;}
    .stk-pp-sizes .tb-btn{flex:1;}
    .stk-pp-sub__title{margin:14px 0 4px;font-weight:700;font-size:12px;color:var(--color-text);}
    .stk-pp-sub{margin-top:12px;border-top:1px solid var(--color-border);}
    .stk-pp-sub__head{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 2px;background:none;border:0;color:var(--color-text);font:inherit;font-weight:700;font-size:12px;cursor:pointer;text-align:left;}
    .stk-pp-sub__head:hover{color:var(--color-accent);}
    .stk-pp-sub__head:focus-visible{outline:2px solid var(--color-accent);outline-offset:1px;border-radius:6px;}
    .stk-pp-sub__chev{display:inline-block;color:var(--color-text-muted);transform:rotate(-90deg);transition:transform .15s;}
    .stk-pp-sub.is-open>.stk-pp-sub__head>.stk-pp-sub__chev{transform:none;}
    .stk-pp-names,.stk-pp-layers{max-height:none;overflow:visible;}
    .stk-pp-nrow,.stk-pp-lrow{flex-direction:row;align-items:center;gap:8px;}
    .stk-pp-nrow .stk-pp-row__text{min-height:0;height:30px;}
    .stk-pp-row.is-off{opacity:.45;}
    .stk-pp-sw{position:relative;flex:none;width:34px;height:20px;cursor:pointer;display:inline-block;}
    .stk-pp-sw input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1;}
    .stk-pp-sw__knob{position:absolute;inset:0;border-radius:10px;background:var(--color-border);transition:background .15s;}
    .stk-pp-sw__knob::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--color-bg-deep,#fff);transition:transform .15s;}
    .stk-pp-sw input:checked+.stk-pp-sw__knob{background:var(--color-accent);}
    .stk-pp-sw input:checked+.stk-pp-sw__knob::after{transform:translateX(14px);}
    .stk-pp-sw input:focus-visible+.stk-pp-sw__knob{outline:2px solid var(--color-accent);outline-offset:2px;}
    .stk-pp-lrow{position:relative;}
    .stk-pp-lrow__name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;}
    .stk-pp-grip{flex:none;width:22px;height:28px;padding:0;border:0;background:none;color:var(--color-text-muted);cursor:grab;touch-action:none;font-size:16px;line-height:1;}
    .stk-pp-grip:hover,.stk-pp-grip:focus-visible{color:var(--color-accent);}
    .stk-pp-grip:active{cursor:grabbing;}
    .stk-pp-badge{flex:none;padding:1px 7px;border-radius:9px;background:var(--color-accent);color:#fff;font-size:10px;font-weight:700;}
    .stk-pp-lrow.is-drag{opacity:.55;}
    .stk-pp-lrow.is-drop-b{box-shadow:0 -2px 0 0 var(--color-accent);}
    .stk-pp-lrow.is-drop-a{box-shadow:0 2px 0 0 var(--color-accent);}
    .stk-pp-danger:hover{border-color:var(--color-danger);color:var(--color-danger);}
    /* APP-329 - Colour per tile: fixed columns [picture | name | swatch | reset], equal row height */
    .stk-pp-cbar{display:flex;gap:8px;align-items:center;margin:4px 0 8px;}
    .stk-pp-cq{flex:1;min-width:0;}
    .stk-pp-call{flex:none;margin:0;}
    .stk-pp-ctab{display:flex;flex-direction:column;gap:4px;}
    .stk-pp-crow{display:grid;grid-template-columns:32px minmax(0,1fr) 40px 26px;align-items:center;gap:8px;height:40px;box-sizing:border-box;padding:4px 8px;cursor:pointer;}
    .stk-pp-crow .stk-pp-gift__img{width:28px;height:28px;object-fit:contain;}
    .stk-pp-crow__nw{display:flex;align-items:center;gap:6px;min-width:0;}
    .stk-pp-crow__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;}
    .stk-pp-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--color-accent);display:none;}
    .stk-pp-crow.has-own .stk-pp-dot{display:inline-block;}
    .stk-pp-csw{justify-self:end;width:36px;height:26px;padding:0;border:1px solid var(--color-border);border-radius:6px;background:none;cursor:pointer;}
    .stk-pp-crow__rs{justify-self:end;}
    /* APP-340 - Image per tile: same fixed 40 px grid row as the APP-329 colour rows [preview | name | Change | reset] */
    .stk-pp-irow{display:grid;grid-template-columns:32px minmax(0,1fr) auto 24px;align-items:center;gap:8px;height:40px;box-sizing:border-box;padding:4px 8px;}
    .stk-pp-irow__pv{display:block;width:32px;height:32px;box-sizing:border-box;}
    .stk-pp-irow__img{display:block;width:32px;height:32px;object-fit:contain;border-radius:4px;}
    .stk-pp-irow__ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;box-sizing:border-box;border:1px dashed var(--color-border);border-radius:6px;color:var(--color-text-muted);}
    .stk-pp-irow__ph svg{width:14px;height:14px;}
    .stk-pp-irow__nw{display:flex;flex-direction:column;justify-content:center;min-width:0;}
    .stk-pp-irow__nw .stk-pp-crow__name{display:block;}
    .stk-pp-irow__none{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--color-text-muted);}
    .stk-pp-irow__chg{width:auto;padding:0 8px;font-size:12px;}
    .stk-pp-irow__chg[disabled]{cursor:not-allowed;}
    .stk-pp-empty{display:flex;flex-direction:column;align-items:center;gap:8px;}
