.ldck-app {
  --ldck-primary: #7D3F4D;
  --ldck-accent: #D9A6A0;
  --ldck-soft: #F3E4DF;
  --ldck-bg: #FFF9F7;
  --ldck-text: #4F3E43;
  --ldck-border: #E8D8D4;
  --ldck-white: #FFFFFF;
  --ldck-muted: rgba(79, 62, 67, 0.74);
  --ldck-grid-line: #eadfdb;
  --ldck-grid-fill: #fffdfc;
  --ldck-shadow: 0 14px 38px rgba(125, 63, 77, 0.10);
  --ldck-shadow-soft: 0 8px 24px rgba(79, 62, 67, 0.08);
  color: var(--ldck-text);
  font: inherit;
  line-height: 1.55;
}

/* 05.11.2026 – Nachkorrektur zur STABLE 0.6.2.197:
 * Nur zwei sehr lange Sondermaschen-Namen in der rechten Palette erhalten
 * genügend Platz für einen Umbruch zwischen ganzen Wörtern. Die jeweilige
 * Kurzbezeichnung ist hier bereits Teil des vollständigen Namens und muss
 * nicht ein zweites Mal in einer engen dritten Spalte stehen.
 * Alle anderen Symbolkarten sowie Chart und Export bleiben unverändert. */
.ldck-root .ldck-right-palette [data-ldck-special-list]
  .ldck-symbol[data-symbol-id="special_solomon_knot"],
.ldck-root .ldck-right-palette [data-ldck-special-list]
  .ldck-symbol[data-symbol-id="special_crab_stitch"] {
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 6px;
}
.ldck-root .ldck-right-palette [data-ldck-special-list]
  .ldck-symbol[data-symbol-id="special_solomon_knot"] svg,
.ldck-root .ldck-right-palette [data-ldck-special-list]
  .ldck-symbol[data-symbol-id="special_crab_stitch"] svg {
  width: 28px;
  height: 31px;
}
.ldck-root .ldck-right-palette [data-ldck-special-list]
  .ldck-symbol[data-symbol-id="special_solomon_knot"] .ldck-symbol-name,
.ldck-root .ldck-right-palette [data-ldck-special-list]
  .ldck-symbol[data-symbol-id="special_crab_stitch"] .ldck-symbol-name {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.ldck-root .ldck-right-palette [data-ldck-special-list]
  .ldck-symbol[data-symbol-id="special_solomon_knot"] .ldck-symbol-short,
.ldck-root .ldck-right-palette [data-ldck-special-list]
  .ldck-symbol[data-symbol-id="special_crab_stitch"] .ldck-symbol-short {
  display: none;
}

.ldck-app *,
.ldck-app *::before,
.ldck-app *::after { box-sizing: border-box; }

.ldck-app button,
.ldck-app input,
[data-ldck-app] select { font: inherit; }

.ldck-app button { -webkit-tap-highlight-color: transparent; }

.ldck-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.ldck-hero {
  position: relative;
  overflow: hidden;
  min-height: 315px;
  padding: 58px 64px 62px;
  border: 1px solid rgba(232, 216, 212, 0.82);
  border-radius: 24px;
  background: linear-gradient(135deg, #FFF9F7 0%, #F8EEEB 50%, #F3E4DF 100%);
  box-shadow: var(--ldck-shadow);
  isolation: isolate;
}

.ldck-hero__content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.ldck-kicker {
  margin: 0 0 14px;
  color: var(--ldck-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.ldck-hero h1 {
  margin: 0;
  color: var(--ldck-primary);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.ldck-hero__tagline {
  margin: 18px auto 0;
  max-width: 1040px;
  color: var(--ldck-text);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 600;
  line-height: 1.35;
}

.ldck-hero__intro {
  margin: 18px auto 0;
  max-width: 720px;
  color: rgba(79, 62, 67, 0.83);
  font-size: 16px;
}

.ldck-hero__orb {
  position: absolute;
  width: 270px;
  height: 270px;
  right: -118px;
  bottom: -154px;
  border-radius: 50%;
  background: rgba(217, 166, 160, .18);
  z-index: -1;
}

.ldck-module-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 18px 10px 0;
  padding: 6px;
  border: 1px solid var(--ldck-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 5px 18px rgba(79, 62, 67, .05);
}

.ldck-module-tab {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ldck-text);
  text-align: center;
}

.ldck-module-tab.is-active {
  border-color: rgba(217, 166, 160, .75);
  background: var(--ldck-soft);
  color: var(--ldck-primary);
}

.ldck-module-tab__title { font-size: 14px; font-weight: 800; }
.ldck-module-tab__desc { font-size: 12px; color: var(--ldck-muted); }

.ldck-navrow {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 24px 10px 28px;
}

.ldck-back,
.ldck-app a.ldck-back,
.ldck-app a.ldck-back:link,
.ldck-app a.ldck-back:visited,
.ldck-app a.ldck-back:hover,
.ldck-app a.ldck-back:focus,
.ldck-app a.ldck-back:focus-visible,
.ldck-app a.ldck-back:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--ldck-border);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ldck-primary);
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(79,62,67,.04);
}

.ldck-back:hover,
.ldck-back:focus-visible {
  border-color: var(--ldck-accent);
  outline: 0;
}

.ldck-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px;
  color: var(--ldck-muted);
  font-size: 14px;
}

.ldck-breadcrumb strong { color: var(--ldck-primary); }

.ldck-workspace { display: grid; gap: 24px; }

.ldck-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--ldck-border);
  border-radius: 20px;
  background: rgba(255, 249, 247, 0.78);
  box-shadow: var(--ldck-shadow-soft);
}

.ldck-sectionhead { margin-bottom: 24px; }
.ldck-sectionhead--editor {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}
.ldck-sectionhead--editor > div { max-width: 780px; }

.ldck-step {
  margin: 0 0 6px;
  color: var(--ldck-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ldck-sectionhead h2 {
  margin: 0;
  color: var(--ldck-primary);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.ldck-sectionhead p:last-child {
  margin: 8px 0 0;
  color: rgba(79, 62, 67, .78);
}

.ldck-setup-grid {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(120px, 160px) minmax(190px, 230px) minmax(190px, 1fr);
  gap: 14px;
  align-items: end;
}

.ldck-field { display: grid; gap: 7px; }
.ldck-field-label { color: var(--ldck-text); font-size: 13px; font-weight: 700; }
.ldck-field input,
.ldck-field select {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--ldck-border);
  border-radius: 12px;
  background: var(--ldck-white);
  color: var(--ldck-text);
}

.ldck-field input:focus-visible,
.ldck-field select:focus-visible,
.ldck-app button:focus-visible,
.ldck-canvas-scroller:focus-visible {
  outline: 3px solid rgba(217, 166, 160, .34);
  outline-offset: 2px;
}

.ldck-primary-button,
.ldck-reset-button,
.ldck-icon-button,
.ldck-zoom-value,
.ldck-tool,
.ldck-symbol {
  border: 1px solid var(--ldck-border);
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.ldck-primary-button {
  min-height: 46px;
  padding: 10px 18px;
  border-color: var(--ldck-primary);
  border-radius: 12px;
  background: var(--ldck-primary);
  color: #fff;
  font-weight: 800;
}
.ldck-primary-button:hover { background: #6f3744; }

.ldck-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid var(--ldck-border);
  border-radius: 15px;
  background: rgba(255,255,255,.84);
}

.ldck-toolbar-group { display: flex; align-items: center; gap: 10px; }
.ldck-toolbar-label { color: var(--ldck-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ldck-button-group, .ldck-zoom { display: flex; gap: 6px; align-items: center; }

.ldck-icon-button,
.ldck-zoom-value {
  height: 42px;
  border-radius: 10px;
  background: var(--ldck-white);
  color: var(--ldck-text);
  font-weight: 700;
}
.ldck-icon-button { width: 42px; font-size: 1.2rem; }
.ldck-zoom-value { min-width: 74px; padding: 0 10px; }
.ldck-icon-button:hover:not(:disabled),
.ldck-zoom-value:hover { border-color: var(--ldck-accent); }
.ldck-icon-button:disabled { cursor: not-allowed; opacity: .42; }

.ldck-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(217, 166, 160, .42);
  border-radius: 999px;
  background: var(--ldck-soft);
  color: var(--ldck-primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ldck-status.is-error { background: #fff1ef; color: #8b4f4a; }

.ldck-editor-layout {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.ldck-sidebar { display: grid; align-content: start; gap: 14px; }
.ldck-panel {
  padding: 16px;
  border: 1px solid var(--ldck-border);
  border-radius: 16px;
  background: var(--ldck-white);
}
.ldck-panel h3 { margin: 0 0 10px; color: var(--ldck-primary); font-size: 15px; }
.ldck-panel-intro { margin: -2px 0 12px; color: var(--ldck-muted); font-size: 12px; line-height: 1.5; }

.ldck-tool-grid { display: grid; gap: 8px; }
.ldck-tool {
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--ldck-white);
  color: var(--ldck-text);
  text-align: left;
}
.ldck-tool.is-active,
.ldck-symbol.is-active {
  border-color: var(--ldck-accent);
  background: var(--ldck-soft);
  box-shadow: inset 0 0 0 1px rgba(217,166,160,.16);
}
.ldck-tool:hover,
.ldck-symbol:hover { border-color: var(--ldck-accent); }
.ldck-tool-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ldck-soft);
  color: var(--ldck-primary);
}

.ldck-symbol-list { display: grid; gap: 8px; }
.ldck-symbol {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 7px 9px;
  border-radius: 12px;
  background: var(--ldck-white);
  color: var(--ldck-text);
  text-align: left;
}
.ldck-symbol svg { width: 44px; height: 40px; color: var(--ldck-text); }
.ldck-symbol-name { font-weight: 700; font-size: 13px; }
.ldck-symbol-short { color: var(--ldck-muted); font-size: 11px; }

.ldck-reset-button {
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #fff7f6;
  color: #955953;
  font-weight: 700;
}
.ldck-reset-button:hover { border-color: #d2aaa5; }

.ldck-canvas-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ldck-border);
  border-radius: 16px;
  background: var(--ldck-white);
}

.ldck-canvas-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ldck-border);
  background: #fff;
}
.ldck-canvas-head > div { display: grid; gap: 2px; }
.ldck-canvas-head strong { color: var(--ldck-primary); font-size: 14px; }
.ldck-canvas-head span { color: var(--ldck-muted); font-size: 12px; }

.ldck-canvas-scroller {
  position: relative;
  min-height: 520px;
  max-height: 68vh;
  overflow: auto;
  background: linear-gradient(180deg, #fdfaf9, #f8f2ef);
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}
.ldck-canvas-zoom { width: max-content; min-width: 100%; padding: 22px; }
.ldck-canvas {
  display: block;
  color: #403432;
  background: #fff;
  border: 1px solid var(--ldck-border);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(84, 56, 51, .08);
  cursor: crosshair;
  user-select: none;
}
.ldck-grid-background { pointer-events: none; }
.ldck-symbol-stroke { stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ldck-chart-element { color: #403432; pointer-events: none; }
.ldck-selection-marker { fill: rgba(125, 63, 77, .06); stroke: var(--ldck-primary); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 1px rgba(125, 63, 77, .12)); }
.ldck-row-guide { fill: var(--ldck-muted); font-size: 10px; font-weight: 700; pointer-events: none; user-select: none; }

.ldck-hintbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 10px 14px;
  border-top: 1px solid var(--ldck-border);
  color: var(--ldck-muted);
  font-size: 11.5px;
  background: #fff;
}
.ldck-hintbar kbd {
  border: 1px solid var(--ldck-border);
  border-bottom-width: 2px;
  background: var(--ldck-bg);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 11px;
  color: var(--ldck-text);
}

.ldck-note {
  padding: 20px 22px;
  border: 1px solid rgba(217, 166, 160, .65);
  border-radius: 17px;
  background: var(--ldck-soft);
  color: var(--ldck-text);
}
.ldck-note strong { display: block; margin-bottom: 5px; color: var(--ldck-primary); }
.ldck-note p { margin: 0; color: var(--ldck-muted); font-size: 13px; }

.ldck-bottom-nav { display: flex; justify-content: flex-start; }

.ldck-closing-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(26px, 3vw, 34px) clamp(22px, 4vw, 42px);
  border: 1px solid var(--ldck-border);
  border-radius: 20px;
  background: var(--ldck-white);
  box-shadow: var(--ldck-shadow-soft);
  color: var(--ldck-text);
  text-align: center;
}
.ldck-closing-card h2 {
  margin: 0;
  color: var(--ldck-primary);
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.2;
}
.ldck-closing-card p {
  max-width: 980px;
  margin: 0;
  color: var(--ldck-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.ldck-plugin-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -6px;
  padding: 20px 12px 4px;
  border-top: 1px solid rgba(232,216,212,.82);
  color: rgba(125,63,77,.76);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 980px) {
  .ldck-setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ldck-editor-layout { grid-template-columns: 1fr; }
  .ldck-sidebar { grid-template-columns: 1fr 1.35fr; }
  .ldck-sidebar > .ldck-reset-button { grid-column: 1 / -1; }
  .ldck-symbol-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ldck-canvas-scroller { min-height: 460px; }
}

@media (max-width: 720px) {
  .ldck-shell { width: min(100% - 20px, 1180px); padding-top: 10px; }
  .ldck-hero { min-height: 0; padding: 38px 22px 88px; border-radius: 20px; }
  .ldck-hero h1 { font-size: clamp(36px, 12vw, 48px); overflow-wrap: anywhere; }
  .ldck-hero__tagline { font-size: 18px; }
  .ldck-hero__intro { font-size: 14px; }
  .ldck-hero__orb { right: -86px; bottom: -118px; width: 205px; height: 205px; }
  .ldck-module-nav { margin-inline: 0; }
  .ldck-navrow { margin: 18px 6px 22px; }
  .ldck-card { padding: 22px 18px; border-radius: 17px; }
  .ldck-sectionhead--editor { display: grid; }
  .ldck-status { width: fit-content; }
  .ldck-editor-toolbar { align-items: stretch; }
  .ldck-toolbar-group { justify-content: space-between; flex: 1 1 100%; }
  .ldck-sidebar { grid-template-columns: 1fr; }
  .ldck-sidebar > .ldck-reset-button { grid-column: auto; }
  .ldck-symbol-list { grid-template-columns: 1fr; }
  .ldck-canvas-head { align-items: flex-start; flex-direction: column; }
  .ldck-canvas-scroller { min-height: 420px; }
  .ldck-canvas-zoom { padding: 12px; }
  .ldck-hintbar { display: none; }
  .ldck-closing-card { padding: 24px 18px; border-radius: 17px; }
  .ldck-closing-card p { font-size: 13px; }
  .ldck-plugin-footer { margin-top: -8px; padding-top: 18px; font-size: 11.5px; flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .ldck-setup-grid { grid-template-columns: 1fr; }
  .ldck-primary-button { width: 100%; }
  .ldck-module-tab { padding-inline: 10px; }
  .ldck-module-tab__desc { font-size: 11.5px; }
  .ldck-hero { padding-left: 18px; padding-right: 18px; }
  .ldck-hero h1 { font-size: 39px; }
}

/* 0.1.2 – family-consistent visual polish based on the released Luxury Design tool language. */

/* Module navigation follows the same tab treatment as FarbKompass. */
.ldck-module-tab {
  min-width: 0;
  border: 0;
  color: rgba(79,62,67,.72);
  text-align: left;
  cursor: default;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ldck-module-tab.is-active {
  color: var(--ldck-primary);
  background: linear-gradient(145deg, rgba(243,228,223,.92), rgba(255,249,247,.98));
  box-shadow: inset 0 0 0 1px rgba(217,166,160,.34), 0 4px 12px rgba(125,63,77,.06);
}

.ldck-module-tab__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.ldck-module-tab__desc {
  font-size: 11px;
  line-height: 1.35;
}

/* Select fields use the same visible Luxury chevron as the other tools. */
.ldck-field select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 50px;
  padding: 11px 42px 11px 14px;
  background-color: var(--ldck-white);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ldck-primary) 50%),
    linear-gradient(135deg, var(--ldck-primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.ldck-field select:hover {
  border-color: var(--ldck-accent);
}

.ldck-field select:focus-visible {
  border-color: var(--ldck-accent);
  box-shadow: 0 0 0 3px rgba(217,166,160,.22);
}

/* Undo/redo buttons: larger, centered vector icons with a legible disabled state. */
.ldck-history-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  line-height: 1;
}

.ldck-history-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ldck-history-button:disabled {
  opacity: .58;
}

/* Hint card matches the white Luxury note card used in FarbKompass. */
.ldck-note {
  padding: 22px 24px;
  border: 1px solid var(--ldck-border);
  border-radius: 16px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 4px 14px rgba(79,62,67,.035);
  color: var(--ldck-text);
}

.ldck-note strong {
  display: inline;
  margin: 0;
  color: var(--ldck-primary);
}

.ldck-note p {
  margin: 5px 0 0;
  color: rgba(79,62,67,.74);
  font-size: 13px;
}

.ldck-bottom-nav {
  padding-left: 10px;
}

/* Closing card and footer use the same spacing/proportions as FarbKompass. */
.ldck-closing-card {
  margin-top: 2px;
  padding: clamp(26px, 3vw, 34px) clamp(22px, 4vw, 42px);
  border: 1px solid var(--ldck-border);
  border-radius: 20px;
  background: var(--ldck-white);
  box-shadow: var(--ldck-shadow-soft);
}

.ldck-closing-card h2 {
  font-size: clamp(21px, 2.5vw, 27px);
}

.ldck-closing-card p {
  max-width: 980px;
  color: rgba(79,62,67,.74);
  font-size: 13.5px;
  line-height: 1.6;
}

.ldck-plugin-footer {
  margin-top: 18px;
  padding: 20px 12px 4px;
}

@media (max-width: 720px) {
  .ldck-note { padding: 20px 18px; }
  .ldck-closing-card { padding: 24px 18px; border-radius: 17px; }
  .ldck-closing-card p { font-size: 13px; }
  .ldck-plugin-footer { margin-top: 16px; padding-top: 18px; }
}

/* 0.2.0 – Modul 2A/2B: Reihenführung und vorbereitete Gruppen-/Mehrfachbelegung. */
.ldck-display-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--ldck-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.ldck-display-option input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.ldck-display-option__control {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  border: 1px solid var(--ldck-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(79,62,67,.02);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ldck-display-option__control::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(79,62,67,.46);
  transition: transform .16s ease, background .16s ease;
}

.ldck-display-option input:checked + .ldck-display-option__control {
  border-color: rgba(217,166,160,.88);
  background: var(--ldck-soft);
}

.ldck-display-option input:checked + .ldck-display-option__control::after {
  transform: translateX(16px);
  background: var(--ldck-primary);
}

.ldck-display-option input:focus-visible + .ldck-display-option__control {
  outline: 3px solid rgba(217,166,160,.34);
  outline-offset: 2px;
}

.ldck-grid-fill {
  fill: var(--ldck-grid-fill);
  pointer-events: none;
}

.ldck-row-highlight {
  fill: rgba(243, 228, 223, .48);
}

.ldck-row-guide {
  fill: rgba(79,62,67,.76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
}

.ldck-row-guide.is-rtl,
.ldck-row-guide.is-ltr {
  dominant-baseline: alphabetic;
}

@media (max-width: 720px) {
  .ldck-display-option {
    align-items: flex-start;
    line-height: 1.4;
  }
}

/* 0.2.1 – Modul 2C1: erste sichtbare Stäbchengruppen mit gemeinsamem Einstichpunkt. */
.ldck-group-list {
  display: grid;
  gap: 8px;
}

.ldck-group {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 64px;
  padding: 8px 9px;
  border: 1px solid var(--ldck-border);
  border-radius: 12px;
  background: var(--ldck-white);
  color: var(--ldck-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.ldck-group:hover {
  border-color: var(--ldck-accent);
}

.ldck-group.is-active {
  border-color: var(--ldck-accent);
  background: var(--ldck-soft);
  box-shadow: inset 0 0 0 1px rgba(217,166,160,.16);
}

.ldck-group svg {
  width: 54px;
  height: 46px;
  overflow: visible;
  color: var(--ldck-text);
}

.ldck-group-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.ldck-group-short {
  color: var(--ldck-muted);
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .ldck-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .ldck-sidebar > .ldck-panel:nth-of-type(3),
  .ldck-sidebar > .ldck-reset-button {
    grid-column: 1 / -1;
  }

  .ldck-group-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ldck-group {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .ldck-group-short {
    display: none;
  }
}

@media (max-width: 720px) {
  .ldck-sidebar {
    grid-template-columns: 1fr;
  }

  .ldck-sidebar > .ldck-panel:nth-of-type(3),
  .ldck-sidebar > .ldck-reset-button {
    grid-column: auto;
  }

  .ldck-group-list {
    grid-template-columns: 1fr;
  }

  .ldck-group {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .ldck-group-short {
    display: inline;
  }
}

/* 0.3.0 – professioneller Editor-Workspace: Bibliothek links, SVG-Canvas Mitte, Kontext rechts. */
.ldck-shell {
  width: min(1460px, calc(100% - 32px));
}

.ldck-editor-card {
  padding: clamp(22px, 2.2vw, 32px);
  background: linear-gradient(180deg, rgba(255,249,247,.92), rgba(250,244,241,.82));
}

.ldck-editor-toolbar {
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 18px rgba(79,62,67,.045);
}

.ldck-toolbar-cluster {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid rgba(232,216,212,.85);
}

.ldck-toolbar-cluster--zoom {
  margin-left: auto;
  padding-right: 0;
  border-right: 0;
}

.ldck-worktool-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ldck-worktool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--ldck-border);
  border-radius: 11px;
  background: #fff;
  color: var(--ldck-text);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ldck-worktool:hover {
  border-color: var(--ldck-accent);
  transform: translateY(-1px);
}

.ldck-worktool.is-active {
  border-color: rgba(217,166,160,.92);
  background: linear-gradient(145deg, rgba(243,228,223,.94), rgba(255,249,247,.99));
  color: var(--ldck-primary);
  box-shadow: inset 0 0 0 1px rgba(217,166,160,.18), 0 3px 10px rgba(125,63,77,.05);
}

.ldck-worktool-icon {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: rgba(243,228,223,.86);
  color: var(--ldck-primary);
  font-size: 15px;
  line-height: 1;
}

.ldck-editor-layout--pro {
  display: grid;
  grid-template-columns: minmax(220px, 252px) minmax(520px, 1fr) minmax(220px, 252px);
  gap: 14px;
  align-items: start;
}

.ldck-library,
.ldck-inspector {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.ldck-library-head,
.ldck-inspector-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.ldck-library-head h3,
.ldck-inspector-head h3 {
  margin: 1px 0 0;
  color: var(--ldck-primary);
  font-size: 18px;
  line-height: 1.25;
}

.ldck-pane-kicker {
  display: block;
  color: var(--ldck-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ldck-library-count,
.ldck-canvas-badge {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid rgba(217,166,160,.54);
  border-radius: 999px;
  background: rgba(243,228,223,.76);
  color: var(--ldck-primary);
  font-size: 11px;
  font-weight: 800;
}

.ldck-library-search {
  position: relative;
  display: block;
}

.ldck-library-search input {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px 9px 39px;
  border: 1px solid var(--ldck-border);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  color: var(--ldck-text);
  font: inherit;
  font-size: 12.5px;
  box-shadow: 0 3px 12px rgba(79,62,67,.025);
}

.ldck-library-search input::placeholder {
  color: rgba(79,62,67,.55);
}

.ldck-library-search input:focus-visible {
  border-color: var(--ldck-accent);
  outline: 3px solid rgba(217,166,160,.26);
  outline-offset: 1px;
}

.ldck-library-search__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ldck-primary);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.ldck-library-section {
  overflow: clip;
  border: 1px solid var(--ldck-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(79,62,67,.035);
}

.ldck-library-section > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 35px minmax(0,1fr) 20px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 9px 10px;
  cursor: pointer;
  user-select: none;
}

.ldck-library-section > summary::-webkit-details-marker { display: none; }
.ldck-library-section > summary::marker { content: ''; }

.ldck-library-section--basic > summary {
  background: linear-gradient(135deg, #fffaf8, #f9efec);
}

.ldck-library-section--groups > summary {
  background: linear-gradient(135deg, #fbf6f3, #f4e7e3);
}

.ldck-library-section--decrease > summary {
  background: linear-gradient(135deg, #faf4f2, #f1e1de);
}

.ldck-library-section__swatch {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(217,166,160,.58);
  border-radius: 10px;
  background: rgba(255,255,255,.74);
  color: var(--ldck-primary);
  font-size: 16px;
  font-weight: 800;
}

.ldck-library-section summary strong,
.ldck-library-section summary small {
  display: block;
}

.ldck-library-section summary strong {
  color: var(--ldck-primary);
  font-size: 12.5px;
  line-height: 1.25;
}

.ldck-library-section summary small {
  margin-top: 2px;
  color: var(--ldck-muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.ldck-library-section__chevron {
  color: var(--ldck-primary);
  font-size: 17px;
  text-align: center;
  transition: transform .16s ease;
}

.ldck-library-section:not([open]) .ldck-library-section__chevron {
  transform: rotate(-90deg);
}

.ldck-library-section__body {
  padding: 8px;
  border-top: 1px solid rgba(232,216,212,.72);
  background: rgba(255,255,255,.98);
}

.ldck-library .ldck-symbol-list,
.ldck-library .ldck-group-list {
  gap: 6px;
}

.ldck-library .ldck-symbol,
.ldck-library .ldck-group {
  min-height: 52px;
  border-radius: 10px;
  box-shadow: none;
}

.ldck-library .ldck-symbol {
  grid-template-columns: 42px minmax(0,1fr) auto;
  padding: 6px 8px;
}

.ldck-library .ldck-symbol svg {
  width: 39px;
  height: 35px;
}

.ldck-library .ldck-group {
  grid-template-columns: 48px minmax(0,1fr) auto;
  min-height: 58px;
  padding: 6px 8px;
}

.ldck-library .ldck-group svg {
  width: 45px;
  height: 39px;
}

.ldck-library .ldck-symbol:hover,
.ldck-library .ldck-group:hover {
  background: rgba(255,249,247,.82);
}

.ldck-library .ldck-symbol.is-active,
.ldck-library .ldck-group.is-active {
  border-color: rgba(217,166,160,.96);
  background: linear-gradient(135deg, rgba(243,228,223,.94), rgba(255,249,247,.98));
  box-shadow: inset 3px 0 0 var(--ldck-primary);
}

.ldck-library-empty {
  margin: 0;
  padding: 13px;
  border: 1px dashed var(--ldck-border);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: var(--ldck-muted);
  font-size: 12px;
  text-align: center;
}

.ldck-canvas-panel--pro {
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(79,62,67,.045);
}

.ldck-canvas-panel--pro .ldck-canvas-head {
  min-height: 72px;
  padding: 13px 16px;
  background: linear-gradient(180deg, #fff, #fffaf8);
}

.ldck-canvas-panel--pro .ldck-canvas-head > div {
  gap: 1px;
}

.ldck-canvas-panel--pro .ldck-canvas-head strong {
  font-size: 15px;
}

.ldck-canvas-panel--pro .ldck-canvas-scroller {
  min-height: 590px;
  max-height: 72vh;
  background:
    radial-gradient(circle at 20% 5%, rgba(243,228,223,.34), transparent 30%),
    linear-gradient(180deg, #fbf8f6, #f6efec);
}

.ldck-inspector-card {
  padding: 14px;
  border: 1px solid var(--ldck-border);
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 5px 16px rgba(79,62,67,.035);
}

.ldck-inspector-card--active {
  border-color: rgba(217,166,160,.66);
  background: linear-gradient(145deg, rgba(243,228,223,.72), rgba(255,255,255,.98));
}

.ldck-inspector-card--info {
  background: linear-gradient(145deg, #fffaf8, #f8efec);
}

.ldck-inspector-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ldck-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.ldck-inspector-card strong {
  display: block;
  color: var(--ldck-primary);
  font-size: 13px;
  line-height: 1.35;
}

.ldck-inspector-card p {
  margin: 5px 0 0;
  color: var(--ldck-muted);
  font-size: 11.5px;
  line-height: 1.48;
}

/* CK-SEM: manual insertion-stitch links in round and row charts. */
.ldck-semantic-link-panel[hidden] { display: none !important; }
.ldck-root .ldck-semantic-head {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  width: 100%;
  min-width: 0;
}
.ldck-root .ldck-semantic-head > strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}
.ldck-root .ldck-semantic-head > button.ldck-inline-info {
  /* WordPress theme button rules can impose a taller minimum height.
     Lock both axes so the CK-SEM info control stays genuinely circular. */
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 30px !important;
  box-sizing: border-box;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  aspect-ratio: 1 / 1;
  border: 1.5px solid rgba(125, 63, 77, .55) !important;
  border-radius: 50% !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 14px;
}
.ldck-semantic-inspector {
  margin: 12px 0;
  padding: 12px 10px;
  border: 1px solid rgba(136, 74, 93, .26);
  border-radius: 11px;
  background: rgba(251, 244, 241, .8);
}
.ldck-semantic-inspector > p { margin: 6px 0 8px; }
.ldck-semantic-link-panel .ldck-semantic-link-state {
  color: #744453;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  margin: 6px 0 9px;
}
.ldck-semantic-link-panel button:disabled { opacity: .45; cursor: not-allowed; }
.ldck-semantic-guides .ldck-semantic-link {
  stroke: #a14c68;
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  fill: none;
}
.ldck-semantic-guides .ldck-semantic-parent-ring {
  stroke: #a14c68;
  stroke-width: 1.4;
  fill: rgba(161, 76, 104, .08);
}
.ldck-semantic-guides .ldck-semantic-pick-target {
  stroke: #9b4b68;
  stroke-width: 1.9;
  stroke-dasharray: 4 3;
  fill: rgba(161, 76, 104, .13);
}

.ldck-property-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
}

.ldck-property-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(232,216,212,.72);
}

.ldck-property-list dt,
.ldck-property-list dd {
  margin: 0;
  font-size: 11.5px;
}

.ldck-property-list dt { color: var(--ldck-muted); }
.ldck-property-list dd { color: var(--ldck-text); font-weight: 800; }

.ldck-inspector-delete {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(210,170,165,.82);
  border-radius: 10px;
  background: #fff8f7;
  color: #8e514c;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.ldck-inspector-delete:hover {
  border-color: #c9958f;
  background: #fff3f1;
}

.ldck-inspector .ldck-reset-button {
  min-height: 41px;
  font-size: 12px;
}

@media (max-width: 1240px) {
  .ldck-editor-layout--pro {
    grid-template-columns: minmax(215px, 245px) minmax(0, 1fr);
  }

  .ldck-inspector {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .ldck-inspector-head {
    grid-column: 1 / -1;
  }

  .ldck-inspector > .ldck-reset-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .ldck-shell { width: min(100% - 24px, 1460px); }

  .ldck-editor-layout--pro {
    grid-template-columns: 1fr;
  }

  .ldck-library {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .ldck-library-head,
  .ldck-library-search,
  .ldck-library-empty {
    grid-column: 1 / -1;
  }

  .ldck-library-section {
    align-self: start;
  }

  .ldck-inspector {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .ldck-inspector-head,
  .ldck-inspector > .ldck-reset-button {
    grid-column: 1 / -1;
  }

  .ldck-canvas-panel--pro .ldck-canvas-scroller {
    min-height: 500px;
  }
}

@media (max-width: 720px) {
  .ldck-editor-toolbar {
    align-items: stretch;
  }

  .ldck-toolbar-cluster,
  .ldck-toolbar-cluster--zoom {
    width: 100%;
    margin-left: 0;
    padding-right: 0;
    padding-bottom: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(232,216,212,.8);
  }

  .ldck-toolbar-cluster:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .ldck-worktool-group,
  .ldck-button-group,
  .ldck-zoom {
    width: 100%;
  }

  .ldck-worktool {
    flex: 1 1 0;
    padding-inline: 8px;
  }

  .ldck-toolbar-cluster--zoom .ldck-zoom {
    justify-content: flex-start;
  }

  .ldck-library {
    grid-template-columns: 1fr;
  }

  .ldck-library-head,
  .ldck-library-search,
  .ldck-library-empty {
    grid-column: auto;
  }

  .ldck-inspector {
    grid-template-columns: 1fr;
  }

  .ldck-inspector-head,
  .ldck-inspector > .ldck-reset-button {
    grid-column: auto;
  }

  .ldck-canvas-panel--pro .ldck-canvas-scroller {
    min-height: 430px;
  }
}

@media (max-width: 520px) {
  .ldck-shell { width: min(100% - 16px, 1460px); }

  .ldck-worktool span:last-child {
    font-size: 11.5px;
  }

  .ldck-library .ldck-symbol,
  .ldck-library .ldck-group {
    grid-template-columns: 44px minmax(0,1fr);
  }

  .ldck-library .ldck-symbol-short,
  .ldck-library .ldck-group-short {
    display: none;
  }
}

/* 0.3.1 – kompakter Pro-Workspace: Kernwerkzeuge oben, Symbolkategorien als Popover, Canvas maximal breit. */
.ldck-hero--compact {
  min-height: 0;
  padding: 34px 52px 38px;
}

.ldck-hero--compact .ldck-kicker { margin-bottom: 9px; }
.ldck-hero--compact h1 { font-size: clamp(36px, 4.2vw, 50px); }
.ldck-hero--compact .ldck-hero__tagline { margin-top: 12px; font-size: clamp(17px, 1.6vw, 20px); }
.ldck-hero--compact .ldck-hero__intro { margin-top: 10px; max-width: 820px; font-size: 14px; }
.ldck-hero--compact .ldck-hero__orb { width: 220px; height: 220px; right: -92px; bottom: -132px; }

.ldck-module-nav { margin-top: 14px; }
.ldck-navrow { margin-top: 16px; margin-bottom: 18px; }
.ldck-workspace--editor { gap: 18px; }

.ldck-editor-card--wide {
  position: relative;
  padding: clamp(18px, 1.8vw, 26px);
  overflow: visible;
}

.ldck-sectionhead--compact { margin-bottom: 14px; }
.ldck-sectionhead--compact h2 { font-size: clamp(23px, 2.4vw, 29px); }
.ldck-sectionhead--compact p:last-child { margin-top: 5px; font-size: 13px; }

.ldck-sticky-tools {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px;
  border: 1px solid rgba(232,216,212,.72);
  border-radius: 18px;
  background: rgba(255,249,247,.94);
  box-shadow: 0 10px 28px rgba(79,62,67,.09);
  backdrop-filter: blur(12px);
}

.ldck-editor-toolbar--compact {
  margin: 0;
  padding: 9px 10px;
  border-radius: 13px;
  box-shadow: none;
}

.ldck-editor-toolbar--compact .ldck-toolbar-cluster {
  gap: 4px;
  padding-right: 10px;
}

.ldck-editor-toolbar--compact .ldck-worktool { min-height: 40px; padding: 5px 10px; }
.ldck-editor-toolbar--compact .ldck-worktool-icon { width: 24px; height: 24px; font-size: 13px; }
.ldck-editor-toolbar--compact .ldck-icon-button,
.ldck-editor-toolbar--compact .ldck-zoom-value { height: 40px; }
.ldck-editor-toolbar--compact .ldck-history-button { width: 42px; height: 40px; }
.ldck-editor-toolbar--compact .ldck-toolbar-label { font-size: 10px; }

.ldck-toolbar-cluster--active { min-width: 160px; }
.ldck-active-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  max-width: 220px;
  padding: 6px 10px;
  border: 1px solid rgba(217,166,160,.50);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(243,228,223,.76), rgba(255,255,255,.98));
  color: var(--ldck-primary);
  font-size: 12px;
}
.ldck-active-tool-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ldck-active-tool-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--ldck-primary); box-shadow: 0 0 0 4px rgba(217,166,160,.25); }

.ldck-toolbar-action,
.ldck-help-button,
.ldck-menu-button,
.ldck-panel-close {
  border: 1px solid var(--ldck-border);
  background: var(--ldck-white);
  color: var(--ldck-text);
  font: inherit;
  cursor: pointer;
}

.ldck-toolbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  gap: 7px;
  min-height: 40px;
  margin-left: 0;
  padding: 7px 11px;
  border-radius: 11px;
  color: var(--ldck-primary);
  font-size: 12px;
  font-weight: 800;
}
.ldck-toolbar-action:hover,
.ldck-toolbar-action[aria-expanded="true"] { border-color: var(--ldck-accent); background: var(--ldck-soft); }

.ldck-symbolbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--ldck-border);
  border-radius: 13px;
  background: rgba(255,255,255,.95);
}

.ldck-symbolbar-label {
  margin-inline: 2px 1px;
  color: var(--ldck-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ldck-symbolbar-divider { width: 1px; height: 28px; margin-inline: 3px; background: var(--ldck-border); }

.ldck-menu-wrap { position: relative; }
.ldck-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.ldck-menu-button:hover,
.ldck-menu-button[aria-expanded="true"] { border-color: var(--ldck-accent); color: var(--ldck-primary); background: rgba(243,228,223,.78); }
.ldck-menu-button--basic { background: linear-gradient(145deg,#fff,#fff8f5); }
.ldck-menu-button--groups { background: linear-gradient(145deg,#fff,#fbf3f0); }
.ldck-menu-button--decrease { background: linear-gradient(145deg,#fff,#f8efed); }
.ldck-menu-button--settings { background: #fff; }
.ldck-menu-symbol { display:inline-grid; place-items:center; width:22px; height:22px; border-radius:7px; background:var(--ldck-soft); color:var(--ldck-primary); font-size:13px; }
.ldck-menu-chevron { margin-left: 1px; color: var(--ldck-primary); font-size: 13px; transition: transform .16s ease; }
.ldck-menu-button[aria-expanded="true"] .ldck-menu-chevron { transform: rotate(180deg); }

.ldck-help-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 10px;
  color: var(--ldck-primary);
  font-size: 12px;
  font-weight: 800;
}
.ldck-help-button:hover,
.ldck-help-button[aria-expanded="true"] { border-color: var(--ldck-accent); background: var(--ldck-soft); }
.ldck-help-icon { display:inline-grid; place-items:center; width:22px; height:22px; border:1px solid rgba(217,166,160,.72); border-radius:50%; background:#fff; font-family:Georgia,serif; font-weight:700; }

.ldck-popover-panel[hidden],
.ldck-help-popover[hidden],
.ldck-inspector-drawer[hidden] { display: none !important; }

.ldck-popover-panel {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 70;
  width: min(430px, calc(100vw - 54px));
  max-height: min(620px, 68vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--ldck-border);
  border-radius: 15px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 18px 48px rgba(79,62,67,.17);
}
.ldck-popover-panel--settings { width: min(630px, calc(100vw - 54px)); }
.ldck-popover-head { display:grid; gap:2px; margin-bottom:10px; padding:0 2px 9px; border-bottom:1px solid rgba(232,216,212,.72); }
.ldck-popover-head strong { color:var(--ldck-primary); font-size:14px; }
.ldck-popover-head small { color:var(--ldck-muted); font-size:11px; }

.ldck-setup-grid--popover {
  grid-template-columns: minmax(105px, 130px) minmax(105px, 130px) minmax(180px, 1fr);
  gap: 10px;
}
.ldck-setup-grid--popover .ldck-primary-button { grid-column: 1 / -1; min-height: 42px; }
.ldck-setup-grid--popover .ldck-field input,
.ldck-setup-grid--popover .ldck-field select { min-height: 42px; }
.ldck-popover-panel--settings .ldck-display-option { margin-top: 12px; }
.ldck-reset-button--compact { margin-top: 12px; min-height: 40px; }

.ldck-symbol-list--popover,
.ldck-group-list--popover { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.ldck-symbol-list--popover .ldck-symbol,
.ldck-group-list--popover .ldck-group { min-height: 54px; padding: 6px 8px; }
.ldck-symbol-list--popover .ldck-symbol { grid-template-columns: 40px minmax(0,1fr); }
.ldck-symbol-list--popover .ldck-symbol-short { display:none; }
.ldck-symbol-list--popover .ldck-symbol svg { width:38px; height:34px; }
.ldck-group-list--popover .ldck-group { grid-template-columns: 48px minmax(0,1fr); }
.ldck-group-list--popover .ldck-group-short { display:none; }
.ldck-group-list--popover .ldck-group svg { width:44px; height:38px; }

.ldck-help-popover {
  position: fixed;
  z-index: 100002;
  top: 110px;
  right: 24px;
  width: min(440px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid var(--ldck-border);
  border-radius: 17px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 20px 56px rgba(79,62,67,.20);
}
.ldck-help-popover__head,
.ldck-inspector-head--drawer { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.ldck-help-popover__head h3 { margin:2px 0 0; color:var(--ldck-primary); font-size:18px; }
.ldck-help-popover p { margin:12px 0 0; color:var(--ldck-muted); font-size:12.5px; line-height:1.55; }
.ldck-panel-close { display:inline-grid; place-items:center; width:34px; height:34px; flex:0 0 auto; border-radius:10px; color:var(--ldck-primary); font-size:22px; line-height:1; }
.ldck-panel-close:hover { border-color:var(--ldck-accent); background:var(--ldck-soft); }

.ldck-canvas-stage { position: relative; min-width: 0; }
.ldck-canvas-panel--wide { width: 100%; border-radius: 17px; box-shadow: 0 8px 24px rgba(79,62,67,.045); }
.ldck-canvas-head--compact { min-height: 56px; padding: 9px 14px; }
.ldck-canvas-head--compact strong { font-size: 14px; }
.ldck-canvas-head--compact span { font-size: 11px; }
.ldck-canvas-panel--wide .ldck-canvas-scroller {
  min-height: clamp(570px, 72vh, 900px);
  max-height: 78vh;
  background: radial-gradient(circle at 20% 5%, rgba(243,228,223,.30), transparent 30%), linear-gradient(180deg,#fbf8f6,#f6efec);
}

.ldck-inspector-drawer {
  position: absolute;
  z-index: 55;
  top: 10px;
  right: 10px;
  width: min(330px, calc(100% - 20px));
  max-height: calc(100% - 20px);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--ldck-border);
  border-radius: 17px;
  background: rgba(255,249,247,.98);
  box-shadow: 0 18px 48px rgba(79,62,67,.18);
  backdrop-filter: blur(10px);
}
.ldck-inspector-head--drawer { padding: 0 1px 2px; }
.ldck-inspector-head--drawer h3 { margin:2px 0 0; color:var(--ldck-primary); font-size:18px; }

.ldck-bottom-nav { margin-top: 2px; }

@media (max-width: 980px) {
  .ldck-hero--compact { padding: 30px 34px 34px; }
  .ldck-editor-toolbar--compact { gap: 8px; }
  .ldck-toolbar-cluster--active { order: 5; min-width: 150px; }
  .ldck-toolbar-cluster--zoom { margin-left: 0; }
  .ldck-toolbar-action { margin-left: auto; }
  .ldck-canvas-panel--wide .ldck-canvas-scroller { min-height: 560px; max-height: 74vh; }
}

@media (max-width: 720px) {
  .ldck-hero--compact { padding: 26px 20px 62px; }
  .ldck-hero--compact h1 { font-size: 38px; }
  .ldck-hero--compact .ldck-hero__intro { font-size: 13px; }
  .ldck-editor-card--wide { padding: 16px 12px; }
  .ldck-sticky-tools { position: static; padding: 5px; }
  .ldck-editor-toolbar--compact { display: grid; grid-template-columns: 1fr; }
  .ldck-editor-toolbar--compact .ldck-toolbar-cluster,
  .ldck-editor-toolbar--compact .ldck-toolbar-cluster--zoom { width:100%; padding:0 0 8px; border-right:0; border-bottom:1px solid rgba(232,216,212,.76); }
  .ldck-editor-toolbar--compact .ldck-toolbar-cluster:last-of-type { border-bottom:0; }
  .ldck-toolbar-cluster--active { order: initial; }
  .ldck-toolbar-action { width:100%; margin-left:0; }
  .ldck-symbolbar { align-items:stretch; }
  .ldck-symbolbar-divider, .ldck-symbolbar-label { display:none; }
  .ldck-menu-wrap { flex: 1 1 calc(50% - 7px); }
  .ldck-menu-button { width:100%; justify-content:center; }
  .ldck-help-button { flex:1 1 calc(50% - 7px); justify-content:center; margin-left:0; }
  .ldck-popover-panel { position: fixed; top: 96px; left: 12px !important; right: 12px; width:auto; max-height:72vh; }
  .ldck-setup-grid--popover { grid-template-columns: 1fr; }
  .ldck-setup-grid--popover .ldck-primary-button { grid-column:auto; }
  .ldck-symbol-list--popover,
  .ldck-group-list--popover { grid-template-columns: 1fr; }
  .ldck-help-popover { top: 78px; right: 12px; left: 12px; width:auto; }
  .ldck-canvas-head--compact { align-items:flex-start; }
  .ldck-canvas-panel--wide .ldck-canvas-scroller { min-height: 520px; max-height: 72vh; }
  .ldck-inspector-drawer { position: fixed; z-index:100001; top:78px; right:12px; left:12px; width:auto; max-height:76vh; }
}

/* 0.4.0 – Professional Workspace Foundation: Canvas first, one compact right palette. */
.ldck-root {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.ldck-root .ldck-shell {
  width: min(100%, 1540px);
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding: 14px clamp(10px, 1.8vw, 24px) 54px;
}

.ldck-root .ldck-workspace,
.ldck-root .ldck-editor-card--wide,
.ldck-root .ldck-professional-stage,
.ldck-root .ldck-canvas-panel--040,
.ldck-root .ldck-canvas-scroller {
  min-width: 0;
  max-width: 100%;
}

.ldck-editor-card--wide {
  overflow: visible;
}

.ldck-sticky-tools--040 {
  margin-bottom: 12px;
}

.ldck-editor-toolbar--040 {
  flex-wrap: wrap;
  gap: 7px;
}

.ldck-editor-toolbar--040 .ldck-toolbar-cluster--active {
  min-width: 145px;
}

.ldck-toolbar-action--palette {
  margin-left: auto;
}

.ldck-professional-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(252px, 272px);
  gap: 12px;
  align-items: start;
  transition: grid-template-columns .18s ease;
}

.ldck-professional-stage.is-palette-collapsed {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.ldck-canvas-panel--040 {
  overflow: hidden;
  border: 1px solid var(--ldck-border);
  background: var(--ldck-white);
}

.ldck-canvas-panel--040 .ldck-canvas-scroller {
  min-height: clamp(600px, 73vh, 920px);
  max-height: 80vh;
}

.ldck-right-palette {
  position: sticky;
  top: 100px;
  z-index: 22;
  display: grid;
  align-content: start;
  gap: 10px;
  width: 100%;
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--ldck-border);
  border-radius: 16px;
  background: rgba(255,249,247,.97);
  box-shadow: 0 9px 24px rgba(79,62,67,.075);
  scrollbar-width: thin;
  transition: width .18s ease, padding .18s ease;
}

.ldck-palette-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 1px 1px 5px;
  border-bottom: 1px solid rgba(232,216,212,.8);
}

.ldck-palette-head > div:first-child {
  display: grid;
  min-width: 0;
}

.ldck-palette-head strong {
  overflow: hidden;
  color: var(--ldck-primary);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ldck-palette-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ldck-palette-icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--ldck-border);
  border-radius: 9px;
  background: #fff;
  color: var(--ldck-primary);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.ldck-palette-icon-button:hover,
.ldck-palette-icon-button:focus-visible {
  border-color: var(--ldck-accent);
  background: var(--ldck-soft);
  outline: 0;
}

.ldck-palette-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--ldck-border);
  border-radius: 11px;
  background: rgba(255,255,255,.78);
}

.ldck-palette-tab {
  min-width: 0;
  min-height: 34px;
  padding: 6px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ldck-muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.ldck-palette-tab.is-active {
  background: var(--ldck-soft);
  color: var(--ldck-primary);
  box-shadow: inset 0 0 0 1px rgba(217,166,160,.34);
}

.ldck-palette-pane {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.ldck-palette-pane[hidden] {
  display: none !important;
}

.ldck-palette-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--ldck-border);
  border-radius: 12px;
  background: rgba(255,255,255,.91);
}

.ldck-palette-section--compact {
  padding-block: 8px;
}

.ldck-palette-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ldck-palette-section-head strong {
  color: var(--ldck-primary);
  font-size: 11.5px;
}

.ldck-palette-section-head span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ldck-soft);
  color: var(--ldck-primary);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.ldck-palette-empty {
  margin: 0;
  color: var(--ldck-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.ldck-quick-symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ldck-quick-symbol {
  display: inline-grid;
  grid-template-rows: 26px auto;
  place-items: center;
  min-width: 42px;
  min-height: 46px;
  padding: 4px 5px;
  border: 1px solid var(--ldck-border);
  border-radius: 9px;
  background: #fff;
  color: var(--ldck-text);
  font: inherit;
  cursor: pointer;
}

.ldck-quick-symbol:hover,
.ldck-quick-symbol:focus-visible {
  border-color: var(--ldck-accent);
  background: #fff9f7;
  outline: 0;
}

.ldck-quick-symbol svg {
  width: 28px;
  height: 26px;
  color: var(--ldck-text);
}

.ldck-quick-symbol span {
  max-width: 56px;
  overflow: hidden;
  color: var(--ldck-primary);
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ldck-palette-search {
  display: grid;
  gap: 5px;
}

.ldck-palette-search > span {
  color: var(--ldck-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ldck-palette-search input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--ldck-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ldck-text);
  outline: 0;
}

.ldck-palette-search input:focus {
  border-color: var(--ldck-accent);
  box-shadow: 0 0 0 3px rgba(217,166,160,.18);
}

.ldck-palette-category {
  min-width: 0;
  border: 1px solid var(--ldck-border);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  overflow: hidden;
}

.ldck-palette-category > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ldck-primary);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.ldck-palette-category > summary::-webkit-details-marker { display: none; }
.ldck-palette-category > summary::after { content: '⌄'; font-size: 12px; transition: transform .16s ease; }
.ldck-palette-category[open] > summary::after { transform: rotate(180deg); }
.ldck-palette-category > summary > span:last-child { margin-left: auto; color: var(--ldck-muted); font-size: 10px; }

.ldck-palette-special-info {
  margin: 0 9px 8px;
  color: var(--ldck-muted);
  font-size: 11px;
  line-height: 1.4;
}
.ldck-palette-special-info .ldck-inline-info { vertical-align: middle; }

.ldck-symbol-list--palette,
.ldck-group-list--palette {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 0 7px 7px;
}

.ldck-symbol-list--palette .ldck-symbol,
.ldck-group-list--palette .ldck-group {
  min-height: 48px;
  padding: 5px 7px;
  border-radius: 9px;
}

.ldck-symbol-list--palette .ldck-symbol {
  grid-template-columns: 36px minmax(0,1fr) auto;
}

.ldck-group-list--palette .ldck-group {
  grid-template-columns: 42px minmax(0,1fr);
}

.ldck-symbol-list--palette .ldck-symbol svg {
  width: 34px;
  height: 31px;
}

.ldck-group-list--palette .ldck-group svg {
  width: 39px;
  height: 33px;
}

.ldck-symbol-list--palette .ldck-symbol-name,
.ldck-group-list--palette .ldck-group-name {
  font-size: 10.5px;
  line-height: 1.25;
}

.ldck-symbol-list--palette .ldck-symbol-short,
.ldck-group-list--palette .ldck-group-short {
  font-size: 9px;
}

.ldck-palette-coming {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ldck-palette-coming span {
  padding: 4px 7px;
  border: 1px dashed rgba(217,166,160,.75);
  border-radius: 999px;
  background: rgba(243,228,223,.42);
  color: var(--ldck-muted);
  font-size: 9.5px;
}

.ldck-palette-settings .ldck-display-option {
  margin-top: 2px;
  align-items: flex-start;
  font-size: 10.5px;
  line-height: 1.4;
}

.ldck-setup-grid--palette {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.ldck-setup-grid--palette .ldck-field-direction,
.ldck-setup-grid--palette .ldck-primary-button {
  grid-column: 1 / -1;
}

.ldck-setup-grid--palette .ldck-field input,
.ldck-setup-grid--palette .ldck-field select {
  min-height: 38px;
  padding-block: 7px;
  font-size: 11px;
}

.ldck-setup-grid--palette .ldck-field select {
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
}

.ldck-setup-grid--palette .ldck-field-label {
  font-size: 9.5px;
}

.ldck-setup-grid--palette .ldck-primary-button,
.ldck-palette-settings .ldck-reset-button {
  min-height: 38px;
  font-size: 10.5px;
}

.ldck-right-palette.is-collapsed {
  padding: 7px;
  overflow: hidden;
}

.ldck-right-palette.is-collapsed .ldck-palette-head {
  justify-content: center;
  padding: 0;
  border-bottom: 0;
}

.ldck-right-palette.is-collapsed .ldck-palette-head > div:first-child,
.ldck-right-palette.is-collapsed .ldck-palette-tabs,
.ldck-right-palette.is-collapsed .ldck-palette-pane,
.ldck-right-palette.is-collapsed .ldck-palette-head-actions > :first-child {
  display: none !important;
}

.ldck-right-palette.is-collapsed .ldck-palette-head-actions {
  display: grid;
}

@media (max-width: 1180px) {
  .ldck-professional-stage {
    grid-template-columns: minmax(0, 1fr) minmax(238px, 252px);
  }
  .ldck-professional-stage.is-palette-collapsed {
    grid-template-columns: minmax(0, 1fr) 46px;
  }
  .ldck-editor-toolbar--040 .ldck-toolbar-cluster--active {
    order: 5;
  }
}

@media (max-width: 900px) {
  .ldck-root .ldck-shell {
    width: 100%;
    padding-inline: 12px;
  }
  .ldck-professional-stage,
  .ldck-professional-stage.is-palette-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }
  .ldck-right-palette,
  .ldck-right-palette.is-collapsed {
    position: static;
    width: 100%;
    max-height: none;
    padding: 10px;
    overflow: visible;
  }
  .ldck-right-palette.is-collapsed .ldck-palette-head {
    justify-content: space-between;
  }
  .ldck-right-palette.is-collapsed .ldck-palette-head > div:first-child,
  .ldck-right-palette.is-collapsed .ldck-palette-head-actions > :first-child {
    display: grid !important;
  }
  .ldck-right-palette.is-collapsed .ldck-palette-tabs,
  .ldck-right-palette.is-collapsed .ldck-palette-pane {
    display: none !important;
  }
  .ldck-canvas-panel--040 .ldck-canvas-scroller {
    min-height: 540px;
    max-height: 72vh;
  }
}

@media (max-width: 720px) {
  .ldck-editor-toolbar--040 {
    grid-template-columns: 1fr;
  }
  .ldck-toolbar-action--palette {
    width: 100%;
    margin-left: 0;
  }
  .ldck-canvas-panel--040 .ldck-canvas-scroller {
    min-height: 500px;
  }
  .ldck-palette-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .ldck-root .ldck-shell {
    padding-inline: 8px;
  }
  .ldck-editor-card--wide {
    padding-inline: 10px;
  }
  .ldck-setup-grid--palette {
    grid-template-columns: 1fr;
  }
  .ldck-setup-grid--palette .ldck-field-direction,
  .ldck-setup-grid--palette .ldck-primary-button {
    grid-column: auto;
  }
}

/* 0.4.0.1/0.4.0.2 – visual correction layer: safe content-width desktop workspace,
   stable palette labels, WordPress admin-bar sticky offset and geometrically centered help close icon. */
@media (min-width: 901px) {
  /* 0.4.0.2: use the full *available content width*, never the viewport width.
     This keeps the complete palette inside Astra/WordPress user-facing containers. */
  .ldck-root .ldck-editor-card--wide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .ldck-professional-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* P1 readability: 30px more room for names, Help and two-column fields.
       The drawing pane remains flexible; collapsed/mobile layouts stay as before. */
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .ldck-professional-stage.is-palette-collapsed {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .ldck-canvas-stage,
  .ldck-canvas-panel--040,
  .ldck-right-palette {
    min-width: 0;
  }
}

.ldck-root .ldck-palette-tabs {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}

.ldck-root .ldck-palette-tab {
  overflow: visible;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-overflow: clip;
  padding-inline: 5px;
  font-size: 12px;
  letter-spacing: normal;
  line-height: 1.2;
}

/* Keep the sticky toolbar below the front-end WordPress admin bar. */
body.admin-bar .ldck-root .ldck-sticky-tools--040 {
  top: 42px;
}

@media screen and (max-width: 782px) and (min-width: 721px) {
  body.admin-bar .ldck-root .ldck-sticky-tools--040 {
    top: 56px;
  }
}

/* Astra and other theme button rules must not distort the help close control. */
.ldck-root .ldck-panel-close {
  position: relative;
  display: inline-block;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  flex: 0 0 34px;
  margin: 0;
  padding: 0 !important;
  border: 1px solid var(--ldck-border);
  border-radius: 10px;
  background: var(--ldck-white);
  color: var(--ldck-primary);
  font-size: 0;
  line-height: 0;
  appearance: none;
}

.ldck-root .ldck-panel-close::before,
.ldck-root .ldck-panel-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.ldck-root .ldck-panel-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ldck-root .ldck-panel-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ldck-root .ldck-help-popover__head {
  align-items: flex-start;
}



/* 0.4.0.4 – Mobile Polish: keep the product name intact and let the page own
   vertical scrolling while the chart remains horizontally pannable. Desktop
   workspace rules are intentionally untouched. */
@media (max-width: 720px) {
  .ldck-root .ldck-hero--compact h1 {
    font-size: clamp(27px, 9.5vw, 34px);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    letter-spacing: -0.025em;
  }

  .ldck-root .ldck-canvas-panel--040 .ldck-canvas-scroller,
  .ldck-root .ldck-canvas-panel--wide .ldck-canvas-scroller {
    min-height: 0;
    max-height: none;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
  }
}

@media (max-width: 360px) {
  .ldck-root .ldck-hero--compact h1 {
    font-size: clamp(25px, 9vw, 30px);
  }
}

/* 0.4.1 – first controlled automation: "Reihe füllen". */
.ldck-row-automation {
  display: grid;
  gap: 10px;
}

.ldck-beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 3px 6px;
  border: 1px solid var(--ldck-border);
  border-radius: 999px;
  background: var(--ldck-soft);
  color: var(--ldck-primary);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.ldck-row-automation__intro {
  margin: 0;
  color: var(--ldck-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.ldck-row-fill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ldck-row-fill-wide {
  grid-column: 1 / -1;
}

.ldck-row-fill-grid .ldck-field input,
.ldck-row-fill-grid .ldck-field select {
  width: 100%;
  min-height: 38px;
  padding-block: 7px;
  font-size: 11px;
}

.ldck-row-fill-grid .ldck-field select {
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
}

.ldck-row-fill-grid .ldck-field-label {
  font-size: 9.5px;
}

.ldck-row-fill-grid .ldck-field-label small {
  color: var(--ldck-muted);
  font-size: 8.5px;
  font-weight: 600;
}

.ldck-row-fill-custom {
  display: grid;
  gap: 7px;
}

.ldck-root .ldck-secondary-button,
.ldck-root .ldck-row-fill-pick {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--ldck-accent);
  border-radius: 9px;
  background: var(--ldck-white);
  color: var(--ldck-primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.ldck-root .ldck-secondary-button:hover,
.ldck-root .ldck-row-fill-pick:hover {
  background: var(--ldck-soft);
}

.ldck-row-fill-summary {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid var(--ldck-border);
  border-radius: 9px;
  background: rgba(255, 249, 247, .8);
}

.ldck-row-fill-summary strong {
  color: var(--ldck-text);
  font-size: 10px;
  line-height: 1.35;
}

.ldck-row-fill-summary span {
  color: var(--ldck-muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.ldck-row-fill-message {
  margin: 0;
  padding: 8px 9px;
  border: 1px solid var(--ldck-border);
  border-radius: 9px;
  background: var(--ldck-bg);
  color: var(--ldck-text);
  font-size: 9.5px;
  line-height: 1.4;
}

.ldck-row-fill-message.is-error {
  border-color: rgba(125, 63, 77, .35);
  background: rgba(243, 228, 223, .72);
  color: var(--ldck-primary);
}

.ldck-row-fill-message.is-success {
  border-color: rgba(217, 166, 160, .65);
}

.ldck-row-fill-overflow {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--ldck-accent);
  border-radius: 10px;
  background: var(--ldck-soft);
}

.ldck-row-fill-overflow strong {
  color: var(--ldck-primary);
  font-size: 10.5px;
}

.ldck-row-fill-overflow p {
  margin: 0;
  color: var(--ldck-text);
  font-size: 9.5px;
  line-height: 1.4;
}

.ldck-row-fill-overflow-actions {
  display: grid;
  gap: 6px;
}

.ldck-row-fill-overflow-actions .ldck-primary-button,
.ldck-row-fill-overflow-actions .ldck-reset-button,
.ldck-row-fill-submit {
  width: 100%;
  min-height: 38px;
  font-size: 10px;
}

.ldck-row-fill-pick-guide {
  fill: rgba(217, 166, 160, .12);
  stroke: var(--ldck-primary);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

@media (max-width: 520px) {
  .ldck-row-fill-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ldck-row-fill-custom[hidden],
.ldck-row-fill-overflow[hidden],
.ldck-row-fill-message[hidden] {
  display: none !important;
}


/* 0.4.1.1 – explicit visual feedback for the active primary editor tool.
   Strongly scoped so Astra/theme button rules cannot hide the active state. */
.ldck-root .ldck-editor-toolbar--compact .ldck-worktool.is-active,
.ldck-root .ldck-editor-toolbar--compact .ldck-worktool[aria-pressed="true"] {
  border-color: var(--ldck-primary) !important;
  background: var(--ldck-primary) !important;
  color: var(--ldck-white) !important;
  box-shadow: 0 4px 12px rgba(125, 63, 77, .18), inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
  transform: none;
}

.ldck-root .ldck-editor-toolbar--compact .ldck-worktool.is-active .ldck-worktool-icon,
.ldck-root .ldck-editor-toolbar--compact .ldck-worktool[aria-pressed="true"] .ldck-worktool-icon {
  background: rgba(255, 255, 255, .92) !important;
  color: var(--ldck-primary) !important;
}

.ldck-root .ldck-editor-toolbar--compact .ldck-worktool.is-active:hover,
.ldck-root .ldck-editor-toolbar--compact .ldck-worktool[aria-pressed="true"]:hover {
  border-color: var(--ldck-primary) !important;
  background: var(--ldck-primary) !important;
  color: var(--ldck-white) !important;
}


/* 0.4.1.2 / 0.4.2.1 – custom row-fill start cell, visually aligned with selection highlight. */
.ldck-row-fill-start-marker {
  fill: rgba(125, 63, 77, .06);
  stroke: var(--ldck-primary);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(125, 63, 77, .12));
}

/* 0.4.1.3 – Text Wrap Polish: verhindert unschöne Einzelwort-Zeilen in den Frontend-Textblöcken. */
.ldck-hero--compact .ldck-hero__content {
  max-width: 980px;
}

.ldck-hero--compact .ldck-hero__intro {
  max-width: 940px;
  text-wrap: pretty;
}

.ldck-closing-card h2 {
  max-width: 100%;
  text-wrap: balance;
}

.ldck-closing-card p {
  max-width: 1050px;
  text-wrap: pretty;
}



/* 0.4.2 / 0.4.2.1 – Mehrfachauswahl mit kräftigerem Luxury-Bordeaux-Highlight. */
.ldck-selection-marquee {
  fill: rgba(125, 63, 77, .06);
  stroke: var(--ldck-primary);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(125, 63, 77, .12));
}

.ldck-pattern-repeat {
  display: grid;
  gap: 10px;
}

.ldck-pattern-repeat[hidden] {
  display: none !important;
}

.ldck-pattern-repeat .ldck-field input {
  width: 100%;
  min-height: 38px;
  padding-block: 7px;
  font-size: 11px;
}

.ldck-pattern-repeat-summary {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid var(--ldck-border);
  border-radius: 9px;
  background: rgba(255, 249, 247, .8);
}

.ldck-pattern-repeat-summary strong {
  color: var(--ldck-text);
  font-size: 10px;
  line-height: 1.35;
}

.ldck-pattern-repeat-summary span {
  color: var(--ldck-muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.ldck-pattern-repeat-actions {
  display: grid;
  gap: 7px;
}

.ldck-pattern-repeat-submit,
.ldck-pattern-repeat-to-end {
  width: 100%;
  min-height: 38px;
  font-size: 10px;
}


/* 0.4.3.1 – klare CTA-Darstellung für „Bis Reihenende wiederholen“ */
.ldck-root .ldck-pattern-repeat-to-end {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid var(--ldck-accent);
  border-radius: 9px;
  background: var(--ldck-soft);
  color: var(--ldck-primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ldck-root .ldck-pattern-repeat-to-end:hover,
.ldck-root .ldck-pattern-repeat-to-end:focus-visible {
  background: #ead0cb;
  border-color: var(--ldck-primary);
  box-shadow: 0 3px 10px rgba(125, 63, 77, .14);
}

.ldck-root .ldck-pattern-repeat-to-end:active {
  transform: translateY(1px);
}

.ldck-root .ldck-pattern-repeat-to-end:disabled {
  cursor: not-allowed;
  opacity: .48;
}

/* 0.4.4 – Contextual help system and in-editor help drawer. */
.ldck-root .ldck-toolbar-actions {
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
  margin-left: auto;
}

.ldck-root .ldck-toolbar-actions .ldck-toolbar-action--palette {
  margin-left: 0;
}

.ldck-root .ldck-toolbar-action--info {
  border-color: rgba(217,166,160,.78);
  background: linear-gradient(145deg, rgba(243,228,223,.92), rgba(255,255,255,.98));
  color: var(--ldck-primary);
  box-shadow: 0 5px 14px rgba(125,63,77,.08);
}

.ldck-root .ldck-toolbar-action--info:hover,
.ldck-root .ldck-toolbar-action--info[aria-expanded="true"] {
  border-color: var(--ldck-primary);
  background: var(--ldck-soft);
  box-shadow: 0 7px 18px rgba(125,63,77,.13);
}

.ldck-root .ldck-info-icon,
.ldck-root .ldck-inline-info {
  display: inline-grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1;
}

.ldck-root .ldck-info-icon {
  width: 21px;
  height: 21px;
  font-size: 13px;
  background: rgba(255,255,255,.9);
}

.ldck-root .ldck-inline-info {
  width: 23px;
  min-width: 23px;
  max-width: 23px;
  height: 23px;
  min-height: 23px;
  max-height: 23px;
  margin: 0;
  padding: 0 !important;
  border-color: rgba(125,63,77,.55);
  background: rgba(243,228,223,.72);
  color: var(--ldck-primary);
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ldck-root .ldck-inline-info:hover,
.ldck-root .ldck-inline-info[aria-expanded="true"] {
  border-color: var(--ldck-primary);
  background: var(--ldck-soft);
  box-shadow: 0 4px 12px rgba(125,63,77,.12);
  transform: translateY(-1px);
}

.ldck-root .ldck-help-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ldck-root .ldck-help-heading--inspector {
  width: 100%;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ldck-root .ldck-palette-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 9px;
  padding: 8px 9px;
  border: 1px solid rgba(232,216,212,.78);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255,249,247,.96), rgba(243,228,223,.42));
  color: var(--ldck-primary);
  font-size: 12px;
}

.ldck-root .ldck-help-popover {
  position: fixed;
  z-index: 100006;
  width: min(360px, calc(100vw - 24px));
  max-height: min(560px, calc(100dvh - 24px));
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--ldck-border);
  border-radius: 16px;
  background: rgba(255,255,255,.992);
  box-shadow: 0 20px 56px rgba(79,62,67,.21);
  backdrop-filter: blur(10px);
}

.ldck-root .ldck-help-popover__body p {
  margin: 11px 0 0;
  color: var(--ldck-muted);
  font-size: 12.5px;
  line-height: 1.58;
}

.ldck-root .ldck-help-popover__body strong {
  color: var(--ldck-text);
}

.ldck-root .ldck-help-note {
  padding: 9px 10px;
  border-left: 3px solid var(--ldck-accent);
  border-radius: 0 9px 9px 0;
  background: rgba(243,228,223,.48);
}

.ldck-root .ldck-help-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  margin: 14px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(217,166,160,.74);
  border-radius: 10px;
  background: var(--ldck-soft);
  color: var(--ldck-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ldck-root .ldck-help-more:hover {
  border-color: var(--ldck-primary);
  background: #fff;
}

.ldck-root .ldck-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100007;
  background: rgba(79,62,67,.18);
  backdrop-filter: blur(1.5px);
}

.ldck-root .ldck-help-backdrop[hidden],
.ldck-root .ldck-help-drawer[hidden] {
  display: none !important;
}

.ldck-root .ldck-help-drawer {
  position: fixed;
  z-index: 100008;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ldck-border);
  background: #fffdfc;
  box-shadow: -20px 0 54px rgba(79,62,67,.18);
}

.ldck-root .ldck-help-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid var(--ldck-border);
  background: linear-gradient(180deg, rgba(243,228,223,.64), rgba(255,253,252,.96));
}

.ldck-root .ldck-help-drawer__head h2 {
  margin: 3px 0 0;
  color: var(--ldck-primary);
  font-size: 20px;
  line-height: 1.2;
}

.ldck-root .ldck-help-drawer__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 24px;
}

.ldck-root .ldck-help-quickstart h3 {
  margin: 0 0 10px;
  color: var(--ldck-text);
  font-size: 14px;
}

.ldck-root .ldck-help-quickactions {
  display: grid;
  gap: 8px;
}

.ldck-root .ldck-help-quickactions button {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid var(--ldck-border);
  border-radius: 12px;
  background: var(--ldck-white);
  color: var(--ldck-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.ldck-root .ldck-help-quickactions button:hover {
  border-color: var(--ldck-accent);
  background: rgba(243,228,223,.48);
}

.ldck-root .ldck-help-quickactions button > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ldck-soft);
  color: var(--ldck-primary);
  font-size: 18px;
  font-weight: 800;
}

.ldck-root .ldck-help-quickactions strong {
  color: var(--ldck-primary);
  font-size: 12.5px;
}

.ldck-root .ldck-help-quickactions small {
  color: var(--ldck-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.ldck-root .ldck-help-topics {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ldck-root .ldck-help-topic {
  scroll-margin-top: 12px;
  border: 1px solid var(--ldck-border);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  overflow: clip;
}

.ldck-root .ldck-help-topic summary {
  position: relative;
  padding: 11px 34px 11px 12px;
  color: var(--ldck-primary);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.ldck-root .ldck-help-topic summary::-webkit-details-marker { display: none; }
.ldck-root .ldck-help-topic summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--ldck-primary);
  font-size: 17px;
  font-weight: 700;
}
.ldck-root .ldck-help-topic[open] summary::after { content: '−'; }

.ldck-root .ldck-help-topic > div {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(232,216,212,.7);
}

.ldck-root .ldck-help-topic p,
.ldck-root .ldck-help-topic ol {
  margin: 10px 0 0;
  color: var(--ldck-muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.ldck-root .ldck-help-topic ol { padding-left: 19px; }
.ldck-root .ldck-help-topic li + li { margin-top: 5px; }

@media (max-width: 980px) {
  .ldck-root .ldck-toolbar-actions { margin-left: auto; }
}

@media (max-width: 720px) {
  .ldck-root .ldck-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-left: 0;
  }
  .ldck-root .ldck-toolbar-actions .ldck-toolbar-action {
    width: 100%;
    margin-left: 0;
  }
  .ldck-root .ldck-help-popover {
    width: min(360px, calc(100vw - 24px));
    max-height: min(70dvh, 560px);
  }
  .ldck-root .ldck-help-drawer {
    width: min(400px, 100vw);
  }
}


/* 0.4.4.1 – palette collapse polish: when closed, remove the palette completely.
   The persistent toolbar button "Palette" is the single reopen control. */
.ldck-professional-stage.is-palette-collapsed {
  grid-template-columns: minmax(0, 1fr) !important;
}
.ldck-right-palette.is-collapsed {
  display: none !important;
}

/* 0.4.5 TESTBUILD – contextual selection actions and grid-safe move feedback. */
.ldck-toolbar-cluster--selection-actions[hidden] {
  display: none !important;
}

.ldck-selection-quick-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.ldck-swap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 11px;
  border: 1px solid rgba(217,166,160,.9);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(243,228,223,.95), rgba(255,249,247,.99));
  color: var(--ldck-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ldck-swap-button:hover:not(:disabled) {
  border-color: var(--ldck-primary);
  box-shadow: 0 3px 10px rgba(125,63,77,.08);
}

.ldck-swap-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.ldck-selection-quick-actions small {
  color: var(--ldck-muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
}

.ldck-canvas.is-select-tool {
  cursor: default;
}

.ldck-canvas.is-select-tool:active {
  cursor: grabbing;
}

/* 0.6.2.217 – Gleiches Radiergummi-Cursorsymbol wie in der Strickschrift. */
.ldck-root[data-ldck-active-tool="erase"] .ldck-canvas {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='rotate(-38 14 14)'%3E%3Crect x='7' y='4' width='14' height='20' rx='4' fill='%23F3E4DF' stroke='%237D3F4D' stroke-width='2'/%3E%3Cpath d='M7 15h14' stroke='%237D3F4D' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E") 7 21, crosshair;
}

.ldck-chart-element.is-dragging {
  opacity: .78;
  filter: drop-shadow(0 4px 5px rgba(84,56,51,.18));
}

.ldck-move-target {
  vector-effect: non-scaling-stroke;
  stroke-width: 2;
  stroke-dasharray: 5 3;
}

.ldck-move-target.is-valid {
  fill: rgba(125,63,77,.08);
  stroke: var(--ldck-primary);
}

.ldck-move-target.is-invalid {
  fill: rgba(139,79,74,.10);
  stroke: #8b4f4a;
}

.ldck-toast {
  position: fixed;
  left: 50%;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 118px);
  bottom: auto;
  z-index: 10020;
  max-width: min(90vw, 420px);
  padding: 10px 14px;
  border: 1px solid rgba(217,166,160,.72);
  border-radius: 999px;
  background: rgba(255,249,247,.98);
  color: var(--ldck-primary);
  box-shadow: 0 10px 28px rgba(79,62,67,.16);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transform: translate(-50%, -8px);
  opacity: 0;
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}

.ldck-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ldck-toast.is-error {
  border-color: rgba(139,79,74,.38);
  background: #fff1ef;
  color: #8b4f4a;
}

@media (max-width: 720px) {
  .ldck-toolbar-cluster--selection-actions {
    width: 100%;
    padding-right: 0;
    border-right: 0;
  }

  .ldck-selection-quick-actions {
    width: 100%;
    align-items: stretch;
  }

  .ldck-swap-button {
    flex: 1 1 190px;
    min-width: 0;
  }

  .ldck-selection-quick-actions small {
    flex: 1 1 100%;
  }

  .ldck-toast {
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 104px);
    bottom: auto;
    border-radius: 14px;
  }
}

/* 0.4.5.2 TESTBUILD – toolbar balance correction. */
/* History stays icon-only: the integrated help explains the arrow meanings. */
.ldck-root .ldck-history-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 0;
  line-height: 1;
}

.ldck-root .ldck-history-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Zoom +/- remain larger and geometrically centered. */
.ldck-root .ldck-zoom-step-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 40px;
  padding: 0;
  line-height: 1;
}

.ldck-root .ldck-zoom-step-icon {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  pointer-events: none;
}

/* Restore the compact one-line desktop rhythm from 0.4.5. */
@media (min-width: 981px) {
  .ldck-root .ldck-editor-toolbar--040 {
    align-items: flex-end;
  }
  .ldck-root .ldck-toolbar-actions {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .ldck-root .ldck-button-group[aria-label="Bearbeitungsverlauf"] {
    width: auto;
  }
  .ldck-root .ldck-history-button {
    flex: 0 0 42px;
    width: 42px;
    min-width: 42px;
  }
}

/* 0.4.6 TESTBUILD – contextual row actions: clone + mirror. */
.ldck-row-guide-control {
  cursor: pointer;
}

.ldck-row-guide-control .ldck-row-guide {
  pointer-events: none;
}

.ldck-row-guide-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.ldck-row-guide-control:hover .ldck-row-guide-hit,
.ldck-row-guide-control.is-active .ldck-row-guide-hit {
  fill: rgba(217, 166, 160, .16);
  stroke: rgba(125, 63, 77, .26);
}

.ldck-row-guide-control.is-active .ldck-row-guide {
  fill: var(--ldck-primary);
  font-weight: 900;
}

.ldck-row-action-highlight {
  fill: rgba(217, 166, 160, .10);
  stroke: rgba(125, 63, 77, .20);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ldck-row-actions {
  position: fixed;
  z-index: 10030;
  width: min(330px, calc(100vw - 24px));
  border: 1px solid rgba(217, 166, 160, .72);
  border-radius: 18px;
  background: rgba(255, 252, 250, .99);
  box-shadow: 0 16px 42px rgba(79, 62, 67, .18);
  color: var(--ldck-text);
  overflow: hidden;
}

.ldck-row-actions__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid rgba(217, 166, 160, .30);
}

.ldck-row-actions__head h3 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.ldck-row-actions__body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ldck-row-action-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(217, 166, 160, .48);
  border-radius: 13px;
  background: #fffaf8;
  color: var(--ldck-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ldck-row-action-button:hover,
.ldck-row-action-button:focus-visible {
  border-color: rgba(125, 63, 77, .52);
  background: #fff7f4;
  outline: none;
}

.ldck-row-action-button > span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(243, 228, 223, .86);
  color: var(--ldck-primary);
  font-size: 19px;
  font-weight: 800;
}

.ldck-row-action-button > span:last-child {
  display: grid;
  gap: 2px;
}

.ldck-row-action-button strong {
  font-size: 13px;
  line-height: 1.25;
}

.ldck-row-action-button small {
  color: var(--ldck-muted);
  font-size: 11px;
  line-height: 1.35;
}

.ldck-row-actions__confirm {
  padding: 16px;
}

.ldck-row-actions__confirm > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.ldck-row-actions__confirm p {
  margin: 0 0 14px;
  color: var(--ldck-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ldck-row-actions__confirm-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ldck-row-actions__confirm-buttons button {
  min-height: 40px;
}

.ldck-row-actions[hidden],
.ldck-row-actions__body[hidden],
.ldck-row-actions__confirm[hidden],
.ldck-row-action-button[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .ldck-row-actions {
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: 12px;
    width: auto;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .ldck-row-action-button {
    min-height: 58px;
  }

  .ldck-row-actions__confirm-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


/* 0.4.6.1 TESTBUILD – transient feedback stays near the active editor area.
   The generic confirmation toast is placed below the sticky toolbar instead of at the page bottom. */

/* 0.4.7 TESTBUILD – multi-row selection and row moving. */
.ldck-row-actions__move {
  padding: 16px;
}

.ldck-row-actions__move > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.ldck-row-actions__move > p {
  margin: 0 0 14px;
  color: var(--ldck-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ldck-row-move-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ldck-row-move-steps button {
  min-height: 42px;
}

.ldck-row-move-position {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--ldck-text);
  font-size: 12px;
  font-weight: 700;
}

.ldck-row-move-position input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid rgba(217, 166, 160, .62);
  border-radius: 11px;
  background: #fff;
  color: var(--ldck-text);
  padding: 8px 10px;
  font: inherit;
}

.ldck-row-move-position input:focus {
  border-color: rgba(125, 63, 77, .62);
  outline: 2px solid rgba(217, 166, 160, .22);
  outline-offset: 1px;
}

.ldck-row-actions__move[hidden],
.ldck-row-move-steps button[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .ldck-row-move-steps {
    grid-template-columns: 1fr;
  }
}


/* 0.4.7.1 TESTBUILD – touch-friendly row multi-selection.
   On mobile/tablet, row taps build the selection first; actions open only on request. */
.ldck-row-selection-bar {
  display: none;
}

.ldck-row-selection-bar[hidden] {
  display: none !important;
}

@media (max-width: 900px), (pointer: coarse) {
  .ldck-row-selection-bar:not([hidden]) {
    position: fixed;
    z-index: 10025;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(440px, calc(100vw - 24px));
    padding: 10px 10px 10px 14px;
    border: 1px solid rgba(217, 166, 160, .72);
    border-radius: 16px;
    background: rgba(255, 252, 250, .98);
    box-shadow: 0 12px 34px rgba(79, 62, 67, .18);
    color: var(--ldck-text);
  }

  .ldck-row-selection-bar__copy {
    display: grid;
    min-width: 0;
    gap: 1px;
  }

  .ldck-row-selection-bar__copy strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .ldck-row-selection-bar__copy small {
    color: var(--ldck-muted);
    font-size: 10.5px;
    line-height: 1.3;
  }

  .ldck-row-selection-bar__action {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(125, 63, 77, .36);
    border-radius: 12px;
    background: rgba(243, 228, 223, .92);
    color: var(--ldck-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .ldck-row-selection-bar__action:focus-visible {
    outline: 2px solid rgba(125, 63, 77, .34);
    outline-offset: 2px;
  }
}

/* 0.4.8 TESTBUILD – compact additional row actions: clear/delete. */
.ldck-row-actions__more {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ldck-row-actions__more[hidden],
.ldck-row-actions__confirm[data-ldck-row-clear-confirm][hidden],
.ldck-row-actions__confirm[data-ldck-row-delete-confirm][hidden] {
  display: none !important;
}

.ldck-row-actions__back {
  width: 100%;
  min-height: 40px;
  margin-top: 2px;
}

.ldck-row-action-button--danger {
  border-color: rgba(148, 65, 79, .38);
  background: rgba(255, 247, 245, .96);
}

.ldck-row-action-button--danger > span:first-child {
  background: rgba(148, 65, 79, .10);
  color: #85404f;
}

.ldck-row-action-button--danger:hover,
.ldck-row-action-button--danger:focus-visible {
  border-color: rgba(133, 64, 79, .62);
  background: rgba(255, 242, 240, .98);
}

.ldck-danger-button {
  min-height: 40px;
  border: 1px solid rgba(133, 64, 79, .58);
  border-radius: 10px;
  background: #85404f;
  color: #fff;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ldck-danger-button:hover,
.ldck-danger-button:focus-visible {
  filter: brightness(.96);
  outline: 2px solid rgba(133, 64, 79, .18);
  outline-offset: 2px;
}

/* 0.4.9 TESTBUILD – contextual symbol editing in the selection inspector. */
.ldck-selection-editor[hidden],
.ldck-selection-editor__group[hidden],
.ldck-selection-arrange[hidden],
.ldck-selection-editor button[hidden] {
  display: none !important;
}

.ldck-selection-editor {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(217,166,160,.58);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,250,248,.98), rgba(248,239,236,.72));
}

.ldck-selection-editor__head {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.ldck-selection-editor__head > span {
  color: var(--ldck-primary);
  font-size: 12px;
  font-weight: 850;
}

.ldck-selection-editor__head > small,
.ldck-selection-editor__note {
  color: var(--ldck-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.ldck-selection-editor__group {
  display: grid;
  gap: 6px;
  padding: 9px 0;
  border-top: 1px solid rgba(232,216,212,.72);
}

.ldck-selection-editor__label {
  color: var(--ldck-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
}

.ldck-selection-editor__buttons {
  display: grid;
  gap: 6px;
}

.ldck-selection-editor__buttons--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ldck-selection-editor__buttons--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ldck-selection-editor button,
.ldck-selection-arrange button {
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid rgba(217,166,160,.74);
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  color: var(--ldck-primary);
  font: inherit;
  font-size: 10.75px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.ldck-selection-editor button:hover:not(:disabled),
.ldck-selection-arrange button:hover:not(:disabled) {
  border-color: var(--ldck-primary);
  background: #fff8f6;
}

.ldck-selection-editor button:disabled,
.ldck-selection-arrange button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.ldck-selection-editor__wide {
  width: 100%;
}

.ldck-selection-arrange {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(232,216,212,.72);
}

.ldck-selection-arrange > summary {
  cursor: pointer;
  color: var(--ldck-primary);
  font-size: 11px;
  font-weight: 850;
  list-style-position: inside;
}

.ldck-selection-arrange__body {
  display: grid;
  gap: 7px;
  padding-top: 9px;
}

.ldck-selection-editor__note {
  margin: 2px 0 0 !important;
}

@media (max-width: 900px) {
  .ldck-selection-editor {
    padding: 11px;
  }

  .ldck-selection-editor button,
  .ldck-selection-arrange button {
    min-height: 42px;
    font-size: 11.5px;
  }
}

@media (max-width: 420px) {
  .ldck-selection-editor__buttons--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}


/* 0.4.9.1 TESTBUILD – compact contextual actions for symbol selections. */
.ldck-element-selection-bar[hidden],
.ldck-element-actions[hidden],
.ldck-element-actions__section[hidden],
.ldck-element-actions [hidden] {
  display: none !important;
}

.ldck-element-selection-bar {
  position: fixed;
  z-index: 10024;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(460px, calc(100vw - 24px));
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(217, 166, 160, .72);
  border-radius: 16px;
  background: rgba(255, 252, 250, .98);
  box-shadow: 0 12px 34px rgba(79, 62, 67, .18);
  color: var(--ldck-text);
}

.ldck-element-selection-bar__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.ldck-element-selection-bar__copy strong {
  font-size: 13px;
  line-height: 1.25;
}

.ldck-element-selection-bar__copy small {
  color: var(--ldck-muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.ldck-element-selection-bar__action {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(125, 63, 77, .36);
  border-radius: 12px;
  background: rgba(243, 228, 223, .92);
  color: var(--ldck-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.ldck-element-selection-bar__action:focus-visible {
  outline: 2px solid rgba(125, 63, 77, .34);
  outline-offset: 2px;
}

.ldck-element-actions {
  position: fixed;
  z-index: 10035;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(430px, calc(100vw - 24px));
  max-height: min(76vh, 640px);
  overflow-y: auto;
  border: 1px solid rgba(217, 166, 160, .72);
  border-radius: 18px;
  background: rgba(255, 252, 250, .995);
  box-shadow: 0 18px 46px rgba(79, 62, 67, .20);
  color: var(--ldck-text);
}

.ldck-element-actions__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 12px;
  border-bottom: 1px solid rgba(217, 166, 160, .30);
  background: rgba(255, 252, 250, .99);
}

.ldck-element-actions__head h3 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.ldck-element-actions__body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.ldck-element-actions__section {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(217, 166, 160, .42);
  border-radius: 14px;
  background: rgba(255, 250, 248, .82);
}

.ldck-element-actions__section > strong {
  font-size: 12px;
  line-height: 1.3;
}

.ldck-element-actions__section > small {
  color: var(--ldck-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.ldck-element-actions__subhead {
  margin-top: 2px;
  color: var(--ldck-muted);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ldck-element-actions__buttons {
  display: grid;
  gap: 7px;
}

.ldck-element-actions__buttons--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ldck-element-actions__buttons--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ldck-element-actions button:not(.ldck-panel-close) {
  min-height: 40px;
  border: 1px solid rgba(217, 166, 160, .58);
  border-radius: 11px;
  background: #fff;
  color: var(--ldck-primary);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.ldck-element-actions button:not(.ldck-panel-close):hover,
.ldck-element-actions button:not(.ldck-panel-close):focus-visible {
  border-color: rgba(125, 63, 77, .50);
  background: #fff7f4;
  outline: none;
}

.ldck-element-actions__wide {
  width: 100%;
  padding: 8px 12px;
}

@media (max-width: 700px) {
  .ldck-element-actions {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    max-height: min(74vh, 560px);
  }

  .ldck-element-actions__buttons--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ldck-element-actions button:not(.ldck-panel-close) {
    min-height: 44px;
  }
}


/* 0.4.9.2 TESTBUILD – keep the compact symbol-selection bar inside the editor on larger screens.
   Mobile keeps the proven fixed bottom action bar. */
@media (min-width: 769px) {
  .ldck-element-selection-bar {
    position: relative;
    z-index: 8;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 10px auto 12px;
    width: min(460px, calc(100% - 24px));
    box-shadow: 0 8px 24px rgba(79, 62, 67, .14);
  }
}

/* 0.4.9.3 TESTBUILD – draggable contextual panels on desktop/tablet.
   Mobile keeps the established bottom-bar / bottom-sheet behavior. */
@media (min-width: 701px) {
  .ldck-element-selection-bar {
    position: fixed;
    z-index: 10034;
    left: 12px;
    top: 12px;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    width: min(460px, calc(100vw - 24px));
    box-shadow: 0 12px 34px rgba(79, 62, 67, .18);
  }

  [data-ldck-drag-handle],
  .ldck-popover-head {
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }

  [data-ldck-drag-handle]:active,
  .ldck-popover-head:active,
  .is-dragging-panel [data-ldck-drag-handle],
  .is-dragging-panel .ldck-popover-head {
    cursor: grabbing;
  }

  .ldck-element-selection-bar__copy {
    flex: 1 1 auto;
    padding-left: 18px;
    position: relative;
  }

  .ldck-element-selection-bar__copy::before,
  .ldck-element-actions__head::before,
  .ldck-row-actions__head::before,
  .ldck-help-popover__head::before {
    content: '⠿';
    color: rgba(125, 63, 77, .48);
    font-size: 14px;
    line-height: 1;
    flex: 0 0 auto;
  }

  .ldck-element-selection-bar__copy::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .ldck-element-actions__head,
  .ldck-row-actions__head,
  .ldck-help-popover__head {
    align-items: flex-start;
  }

  .is-dragging-panel {
    box-shadow: 0 22px 58px rgba(79, 62, 67, .24) !important;
  }
}

@media (max-width: 700px) {
  .ldck-element-selection-bar__copy::before,
  .ldck-element-actions__head::before,
  .ldck-row-actions__head::before,
  .ldck-help-popover__head::before {
    content: none !important;
  }
}

/* 0.5.0 TESTBUILD – Rundenmodus: geschlossene Runden + Spiralrunden */
.ldck-round-setup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(79, 62, 67, .22);
  backdrop-filter: blur(2px);
}

.ldck-round-setup,
.ldck-round-add-dialog,
.ldck-round-actions {
  position: fixed;
  z-index: 10070;
  width: min(390px, calc(100vw - 28px));
  border: 1px solid rgba(217, 166, 160, .75);
  border-radius: 20px;
  background: rgba(255, 252, 250, .995);
  box-shadow: 0 20px 52px rgba(79, 62, 67, .20);
  color: var(--ldck-text);
  overflow: hidden;
}

.ldck-round-setup {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ldck-round-add-dialog {
  width: min(360px, calc(100vw - 28px));
}

.ldck-round-actions {
  width: min(340px, calc(100vw - 28px));
}

.ldck-round-setup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px 13px;
  border-bottom: 1px solid rgba(217, 166, 160, .30);
  cursor: default;
}

.ldck-round-setup__head h3 {
  margin: 2px 0 0;
  color: var(--ldck-text);
  font-size: 18px;
  line-height: 1.25;
}

.ldck-round-setup__body {
  display: grid;
  gap: 14px;
  padding: 16px 17px 18px;
}

.ldck-round-type-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.ldck-round-type-options legend {
  margin-bottom: 7px;
  color: var(--ldck-text);
  font-size: 12px;
  font-weight: 800;
}

.ldck-round-type-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(217, 166, 160, .46);
  border-radius: 13px;
  background: #fffaf8;
  cursor: pointer;
}

.ldck-round-type-options label:has(input:checked) {
  border-color: rgba(125, 63, 77, .52);
  background: rgba(243, 228, 223, .62);
}

.ldck-round-type-options input { margin-top: 4px; }
.ldck-round-type-options span { display: grid; gap: 2px; }
.ldck-round-type-options strong { font-size: 13px; }
.ldck-round-type-options small { color: var(--ldck-muted); font-size: 11px; line-height: 1.4; }

.ldck-round-setup__hint,
.ldck-round-setup__preview {
  margin: 0;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(243, 228, 223, .48);
  color: var(--ldck-muted);
  font-size: 11px;
  line-height: 1.45;
}

.ldck-round-setup__hint strong { color: var(--ldck-primary); }

.ldck-round-setup[hidden],
.ldck-round-setup-backdrop[hidden],
.ldck-round-add-dialog[hidden],
.ldck-round-actions[hidden],
.ldck-round-selection-bar[hidden],
.ldck-round-settings[hidden] {
  display: none !important;
}

.ldck-round-selection-bar { display: none; }

.ldck-round-settings {
  border-color: rgba(217, 166, 160, .56);
  background: linear-gradient(180deg, rgba(255, 252, 250, .98), rgba(248, 238, 235, .52));
  display: flex;
  flex-direction: column;
}

.ldck-round-settings .ldck-field + .ldck-field { margin-top: 8px; }
.ldck-chart-mode-field { margin-bottom: 10px; }

.ldck-round-type-field { order: 1; }
.ldck-round-current-block { order: 2; margin-top: 12px; }
.ldck-round-orientation-block { order: 3; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(217, 166, 160, .34); }
.ldck-round-settings > [data-ldck-round-add] { order: 4; margin-top: 12px; }
.ldck-round-settings > .ldck-selection-editor__note { order: 5; }
.ldck-round-settings.is-spiral .ldck-round-orientation-block { order: 2; }
.ldck-round-settings.is-spiral .ldck-round-current-block { order: 3; }

.ldck-round-subsection-head {
  display: grid;
  gap: 3px;
  margin-bottom: 9px;
}
.ldck-round-subsection-head strong {
  color: var(--ldck-primary);
  font-size: 12px;
}
.ldck-round-subsection-head small {
  color: var(--ldck-muted);
  font-size: 10.5px;
  line-height: 1.35;
}
.ldck-round-orientation-block .ldck-secondary-button { margin-top: 8px; }

.ldck-round-canvas-bg {
  fill: rgba(255, 253, 252, .98);
  stroke: rgba(232, 216, 212, .72);
  stroke-width: 1;
}

.ldck-round-guide {
  stroke: rgba(125, 63, 77, .30);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.ldck-round-guide--spiral {
  stroke: rgba(125, 63, 77, .36);
  stroke-width: 1.4;
}

.ldck-polar-guide {
  stroke: rgba(125, 63, 77, .55);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.ldck-round-slot {
  fill: rgba(217, 166, 160, .28);
  stroke: rgba(125, 63, 77, .18);
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
}

/* Zusatzposition für die Schluss-Kettmasche, ohne regulären Maschenplatz. */
.ldck-round-close-slot {
  fill: rgba(255, 250, 248, .84);
  stroke: rgba(125, 63, 77, .74);
  stroke-width: 1.6;
  stroke-dasharray: 2.1 2.1;
  cursor: crosshair;
}

.ldck-round-center-dot {
  fill: var(--ldck-primary);
  opacity: .55;
}

.ldck-round-label-control { cursor: pointer; }
.ldck-round-label-hit {
  fill: rgba(255, 250, 248, .96);
  stroke: rgba(217, 166, 160, .72);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ldck-round-label {
  fill: var(--ldck-primary);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.ldck-round-label-control:hover .ldck-round-label-hit,
.ldck-round-label-control.is-active .ldck-round-label-hit {
  fill: rgba(243, 228, 223, .95);
  stroke: rgba(125, 63, 77, .56);
}

.ldck-round-label-control.is-active .ldck-round-label { font-weight: 900; }

.ldck-round-actions .ldck-row-actions__body { display: grid; gap: 8px; padding: 12px; }
.ldck-round-actions .ldck-row-actions__confirm[hidden] { display: none !important; }

.ldck-app[data-ldck-chart-mode="rounds"] .ldck-canvas-scroller {
  background: radial-gradient(circle at center, rgba(243, 228, 223, .34), rgba(255,255,255,.8) 54%, rgba(255,255,255,.96));
}

.ldck-app[data-ldck-chart-mode="rounds"] .ldck-canvas {
  min-width: 620px;
  min-height: 620px;
}

@media (max-width: 900px), (pointer: coarse) {
  .ldck-round-selection-bar:not([hidden]) {
    position: fixed;
    z-index: 10025;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(440px, calc(100vw - 24px));
    padding: 10px 10px 10px 14px;
    border: 1px solid rgba(217, 166, 160, .72);
    border-radius: 16px;
    background: rgba(255, 252, 250, .98);
    box-shadow: 0 12px 34px rgba(79, 62, 67, .18);
    color: var(--ldck-text);
  }
}

@media (max-width: 700px) {
  .ldck-round-actions,
  .ldck-round-add-dialog {
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: min(74vh, 560px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .ldck-round-setup {
    width: min(390px, calc(100vw - 24px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }

  .ldck-app[data-ldck-chart-mode="rounds"] .ldck-canvas {
    min-width: 520px;
    min-height: 520px;
  }
}

/* 0.5.0.1: Row-only UI must disappear completely in round mode.
   Author styles on palette sections can otherwise override the browser's [hidden] rule. */
.ldck-root [data-ldck-row-only][hidden],
.ldck-root [data-ldck-row-workspace-settings][hidden] {
  display: none !important;
}


/* 0.5.2 TESTBUILD – UX & Ansicht: second view toolbar, focus mode,
   responsive action sheets, selection delete flow and live zoom. */
.ldck-root .ldck-view-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(232,216,212,.72);
  border-radius: 13px;
  background: rgba(255,255,255,.88);
}

.ldck-root .ldck-view-toolbar__label { margin-right: 2px; }

.ldck-root .ldck-view-zoom {
  display: grid;
  grid-template-columns: 42px minmax(150px, 260px) 42px 76px;
  align-items: center;
  gap: 6px;
  min-width: min(440px, 100%);
}

.ldck-root .ldck-view-toolbar .ldck-zoom-step-button {
  width: 42px;
  min-width: 42px;
  height: 38px;
}

.ldck-root .ldck-view-toolbar .ldck-zoom-value {
  height: 38px;
  min-width: 72px;
  padding-inline: 9px;
}

.ldck-root .ldck-zoom-range {
  width: 100%;
  min-width: 120px;
  height: 38px;
  margin: 0;
  accent-color: var(--ldck-primary);
  cursor: pointer;
}

.ldck-root .ldck-zoom-range:focus-visible {
  outline: 3px solid rgba(217,166,160,.34);
  outline-offset: 2px;
  border-radius: 999px;
}

.ldck-root .ldck-view-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--ldck-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ldck-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ldck-root .ldck-view-action:hover,
.ldck-root .ldck-view-action:focus-visible,
.ldck-root .ldck-view-action[aria-pressed="true"] {
  border-color: var(--ldck-accent);
  background: var(--ldck-soft);
  outline: 0;
}

.ldck-root .ldck-element-actions__section--danger {
  border-color: rgba(167,76,76,.25);
  background: rgba(255,247,246,.9);
}

.ldck-root .ldck-element-actions button.ldck-element-actions__danger {
  border-color: rgba(167,76,76,.42);
  background: #fff8f7;
  color: #8f4747;
}

.ldck-root .ldck-element-actions button.ldck-element-actions__danger:hover,
.ldck-root .ldck-element-actions button.ldck-element-actions__danger:focus-visible {
  border-color: rgba(143,71,71,.64);
  background: #fff0ee;
}

.ldck-root .ldck-element-actions__confirm p {
  margin: 0;
  color: var(--ldck-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ldck-root .ldck-element-actions.is-confirming-delete .ldck-element-actions__section:not(.ldck-element-actions__confirm) {
  display: none !important;
}

/* Tablet + smartphone: selection context stays viewport-bound and actions open as a bottom sheet. */
.ldck-root.ldck-compact-actions .ldck-element-selection-bar {
  position: fixed !important;
  z-index: 10034;
  left: max(12px, env(safe-area-inset-left)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  top: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  box-sizing: border-box;
}

.ldck-root.ldck-compact-actions .ldck-element-selection-bar__copy {
  padding-left: 0;
}

.ldck-root.ldck-compact-actions .ldck-element-selection-bar__copy::before,
.ldck-root.ldck-compact-actions .ldck-element-actions__head::before {
  content: none !important;
}

.ldck-root.ldck-compact-actions .ldck-element-actions {
  position: fixed !important;
  z-index: 10045;
  left: max(10px, env(safe-area-inset-left)) !important;
  right: max(10px, env(safe-area-inset-right)) !important;
  top: auto !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: none !important;
  max-height: min(68vh, 620px) !important;
  margin: 0 !important;
  transform: none !important;
  overflow-y: auto;
  border-radius: 20px 20px 12px 12px;
  box-sizing: border-box;
}

.ldck-root.ldck-compact-actions .ldck-element-actions__head {
  cursor: default !important;
  touch-action: auto !important;
}

/* Focus mode: only the editor workspace remains, in the same tab. */
html.ldck-focus-lock,
body.ldck-focus-lock { overflow: hidden !important; }

.ldck-editor-card--wide:fullscreen,
.ldck-editor-card--wide.is-focus-mode-fallback {
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 12px !important;
  overflow: auto !important;
  border-radius: 0 !important;
  background: var(--ldck-bg, #fbf7f5) !important;
  box-sizing: border-box;
}

.ldck-editor-card--wide.is-focus-mode-fallback {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
}

.ldck-editor-card--wide.is-focus-mode .ldck-sectionhead--editor,
.ldck-editor-card--wide.is-focus-mode-fallback .ldck-sectionhead--editor,
.ldck-editor-card--wide:fullscreen .ldck-sectionhead--editor {
  display: none !important;
}

.ldck-editor-card--wide.is-focus-mode .ldck-sticky-tools,
.ldck-editor-card--wide.is-focus-mode-fallback .ldck-sticky-tools,
.ldck-editor-card--wide:fullscreen .ldck-sticky-tools {
  top: 0 !important;
  margin-bottom: 8px;
}

.ldck-app.ldck-demo-starter .ldck-canvas { margin-inline: auto; }


.ldck-editor-card--wide.is-focus-mode .ldck-professional-stage,
.ldck-editor-card--wide.is-focus-mode-fallback .ldck-professional-stage,
.ldck-editor-card--wide:fullscreen .ldck-professional-stage {
  min-height: calc(100dvh - 150px);
}

.ldck-editor-card--wide.is-focus-mode .ldck-canvas-panel--040 .ldck-canvas-scroller,
.ldck-editor-card--wide.is-focus-mode-fallback .ldck-canvas-panel--040 .ldck-canvas-scroller,
.ldck-editor-card--wide:fullscreen .ldck-canvas-panel--040 .ldck-canvas-scroller {
  min-height: calc(100dvh - 235px) !important;
  max-height: calc(100dvh - 185px) !important;
}

@media (max-width: 900px) {
  .ldck-root .ldck-view-toolbar {
    align-items: stretch;
  }
  .ldck-root .ldck-view-toolbar__label {
    flex: 0 0 100%;
  }
  .ldck-root .ldck-view-zoom {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    grid-template-columns: 42px minmax(110px, 1fr) 42px 74px;
  }
  .ldck-root .ldck-view-action {
    flex: 1 1 160px;
  }
}

@media (max-width: 520px) {
  .ldck-root .ldck-view-toolbar {
    padding: 8px;
  }
  .ldck-root .ldck-view-zoom {
    grid-template-columns: 40px minmax(92px, 1fr) 40px 68px;
    gap: 4px;
  }
  .ldck-root .ldck-view-toolbar .ldck-zoom-step-button {
    width: 40px;
    min-width: 40px;
  }
  .ldck-root .ldck-view-toolbar .ldck-zoom-value {
    min-width: 66px;
    padding-inline: 6px;
    font-size: 11px;
  }
  .ldck-root .ldck-view-action {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding-inline: 8px;
  }
  .ldck-root.ldck-compact-actions .ldck-element-selection-bar__copy small {
    display: none;
  }
  .ldck-root.ldck-compact-actions .ldck-element-selection-bar {
    gap: 8px;
    padding-left: 12px;
  }
  .ldck-root.ldck-compact-actions .ldck-element-selection-bar__action {
    min-height: 42px;
    padding-inline: 12px;
  }
  .ldck-editor-card--wide.is-focus-mode .ldck-canvas-panel--040 .ldck-canvas-scroller,
  .ldck-editor-card--wide:fullscreen .ldck-canvas-panel--040 .ldck-canvas-scroller {
    max-height: none !important;
    min-height: 0 !important;
  }
}

/* 0.5.2.1 TESTBUILD – gebündelter Korrektur-/Abschlussblock. */

/* Round + spiral charts are centered inside the actually usable canvas column.
   If the SVG becomes wider than the viewport, normal scrolling remains available. */
.ldck-app[data-ldck-chart-mode="rounds"] .ldck-canvas-zoom > .ldck-canvas {
  margin-inline: auto;
}

/* Technical hitboxes stay usable in the model but must never become visible. */
.ldck-root .ldck-chart-element > rect:first-child {
  fill: transparent !important;
  stroke: none !important;
  filter: none !important;
}

/* Tablet landscape included: contextual actions use the established bottom sheet. */
@media (max-width: 1100px), (pointer: coarse) {
  .ldck-root.ldck-compact-actions .ldck-element-selection-bar {
    position: fixed !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    top: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }

  .ldck-root.ldck-compact-actions .ldck-element-actions {
    position: fixed !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    top: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(68vh, 620px) !important;
    overflow-y: auto !important;
  }
}

/* Narrow screens: transform values must remain readable on one line. */
@media (max-width: 560px) {
  .ldck-root .ldck-element-actions__buttons--3 button,
  .ldck-root .ldck-element-actions__buttons--2 button {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .ldck-root .ldck-element-actions__buttons--3 button {
    padding-inline: 6px;
    font-size: 11.5px;
  }
}

/* 0.5.2.2 TESTBUILD – Zoomkorrektur für Runden und Spiralen.
   Die bisherige CSS-Mindestgröße von 620/520 px wird jetzt als echte 100-%-Basis
   in der Zoomlogik verwendet. Dadurch reagiert jeder 5-%-Schritt sofort sichtbar,
   ohne die bisherige Grundgröße des Rundencanvas zu verändern. */
.ldck-app[data-ldck-chart-mode="rounds"] .ldck-canvas {
  min-width: 0 !important;
  min-height: 0 !important;
}


/* 0.5.6 – Export /* 0.5.5 – Export & Ausgabe */ persönliche Projektcover */
.ldck-root .ldck-toolbar-actions {
  position: relative;
}

.ldck-root .ldck-toolbar-action--export {
  border-color: rgba(217,166,160,.62);
  background: rgba(255,255,255,.98);
}

.ldck-root .ldck-toolbar-action--export:hover,
.ldck-root .ldck-toolbar-action--export[aria-expanded="true"] {
  border-color: var(--ldck-accent);
  background: var(--ldck-soft);
}

.ldck-root .ldck-export-chevron {
  margin-left: 1px;
  font-size: 10px;
  opacity: .72;
}

.ldck-root .ldck-export-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid var(--ldck-border);
  border-radius: 15px;
  background: rgba(255,255,255,.99);
  box-shadow: 0 18px 46px rgba(79,62,67,.16);
}

.ldck-root .ldck-export-menu[hidden] {
  display: none !important;
}

.ldck-root .ldck-export-menu__head {
  display: grid;
  gap: 2px;
  padding: 7px 9px 9px;
  color: var(--ldck-text);
}

.ldck-root .ldck-export-menu__head strong {
  color: var(--ldck-primary);
  font-size: 13px;
}

.ldck-root .ldck-export-menu__head small,
.ldck-root .ldck-export-option small {
  color: var(--ldck-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.ldck-root .ldck-export-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ldck-text);
  text-align: left;
  cursor: pointer;
}

.ldck-root .ldck-export-option + .ldck-export-option {
  margin-top: 3px;
}

.ldck-root .ldck-export-option:hover,
.ldck-root .ldck-export-option:focus-visible {
  border-color: rgba(217,166,160,.62);
  background: rgba(243,228,223,.48);
  outline: none;
}

.ldck-root .ldck-export-option:disabled {
  cursor: wait;
  opacity: .58;
}

.ldck-root .ldck-export-option > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ldck-root .ldck-export-option strong {
  font-size: 11.5px;
}

.ldck-root .ldck-export-option__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border: 1px solid rgba(217,166,160,.58);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(243,228,223,.78), rgba(255,255,255,.98));
  color: var(--ldck-primary);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .04em;
}


@media (max-width: 720px) {
  .ldck-root .ldck-toolbar-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ldck-root .ldck-export-menu {
    right: 0;
    width: min(380px, calc(100vw - 36px));
  }
}

.ldck-root .ldck-export-project-fields {
  display: grid;
  gap: 7px;
  margin: 0 6px 9px;
}

.ldck-root .ldck-export-field {
  display: grid;
  gap: 4px;
  color: var(--ldck-text);
  font-size: 10.5px;
  font-weight: 800;
}

.ldck-root .ldck-export-field small {
  color: var(--ldck-muted);
  font-size: 9.5px;
  font-weight: 600;
}

.ldck-root .ldck-export-field input,
.ldck-root .ldck-export-field select,
.ldck-root .ldck-export-field textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--ldck-border);
  border-radius: 9px;
  background: #fff;
  color: var(--ldck-text);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.42;
  outline: none;
  resize: vertical;
}

.ldck-root .ldck-export-field textarea {
  min-height: 64px;
  max-height: 132px;
}

.ldck-root .ldck-export-field input:focus,
.ldck-root .ldck-export-field select:focus,
.ldck-root .ldck-export-field textarea:focus {
  border-color: var(--ldck-accent);
  box-shadow: 0 0 0 3px rgba(217,166,160,.18);
}


@media (max-height: 720px), (max-width: 520px) {
  .ldck-root .ldck-export-menu {
    max-height: min(78vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}


/* 0.5.7.2 – Projektart als Dropdown eindeutig erkennbar */
.ldck-root .ldck-export-select-wrap {
  position: relative;
  display: block;
}

.ldck-root .ldck-export-field--select select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background: linear-gradient(180deg, #fff 0%, rgba(243,228,223,.28) 100%);
  border-color: rgba(217,166,160,.72);
}

.ldck-root .ldck-export-select-chevron {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border-left: 1px solid rgba(217,166,160,.55);
  color: var(--ldck-primary);
  pointer-events: none;
}

.ldck-root .ldck-export-select-chevron svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 0.6.2.61 – Export-Projektart: exakt EIN Chevron.
   Der Desktop-Luxury-Select erzeugt seinen eigenen Pfeil am Trigger.
   Das alte SVG nur dort verstecken; fuer native Touch-Selects erhalten. */
.ldck-root .ldck-export-select-wrap > .ld-luxury-select + .ldck-export-select-chevron {
  display: none;
}

.ldck-root .ldck-export-field--select select:hover {
  border-color: var(--ldck-accent);
  background: rgba(243,228,223,.38);
}

/* 0.5.8.1 – Speichern & Fortsetzen: Projektaktionen in Projektzeile */
.ldck-project-toolbar-actions{display:flex;gap:6px;flex-wrap:nowrap}
.ldck-project-toolbar-button{display:inline-flex;align-items:center;gap:6px;border:1px solid #e4d5d2;background:#fffaf8;color:#4a3d40;border-radius:10px;padding:8px 10px;font:inherit;font-size:13px;font-weight:650;cursor:pointer;white-space:nowrap}
.ldck-project-toolbar-button:hover{background:#f7ece8;border-color:#d9bdb7}
.ldck-project-toolbar-button--save{background:#9a6670;color:#fff;border-color:#9a6670}
.ldck-project-toolbar-button--save:hover{background:#895a63;border-color:#895a63}
.ldck-project-toolbar-button[aria-busy="true"]{opacity:.68;cursor:wait}
.ldck-project-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 14px;padding:10px 14px;border:1px solid #eadedb;border-radius:12px;background:#fffaf8}
.ldck-project-strip__identity{display:flex;align-items:baseline;gap:9px;min-width:0}
.ldck-project-strip__identity span{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#9a767c;font-weight:700}
.ldck-project-strip__identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#403638}
.ldck-project-strip__controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.ldck-project-save-status{font-size:12px;color:#7b6a6e;white-space:nowrap}
/* 0.5.8.7 – ausschließlich Statusfarben */
.ldck-project-save-status.is-saved{color:#6f8a72}
.ldck-project-save-status.is-saving{color:#7b6a6e}
.ldck-project-save-status.is-dirty{color:#9a6a54}
.ldck-project-save-status.is-error{color:#a35f5f;font-weight:700}

.ldck-project-modal[hidden]{display:none!important}
.ldck-project-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px}
.ldck-root .ldck-emergency-preview-modal:not([hidden]){z-index:100030}
.ldck-root .ldck-emergency-preview-dialog{width:min(520px,100%)}
.ldck-root .ldck-emergency-preview-details{margin:18px 0 12px;padding:8px 16px;background:#fbf6f4;border:1px solid #eadbd7;border-radius:12px}
.ldck-root .ldck-emergency-preview-details>div{display:grid;grid-template-columns:minmax(120px,40%) 1fr;align-items:start;gap:10px;padding:10px 0;border-bottom:1px solid #eadbd7}
.ldck-root .ldck-emergency-preview-details>div:last-child{border-bottom:0}
.ldck-root .ldck-emergency-preview-details dt{font-size:13px;color:#7b646a;font-weight:700}
.ldck-root .ldck-emergency-preview-details dd{margin:0;overflow-wrap:anywhere;color:#44383b;font-weight:600}
.ldck-root .ldck-emergency-preview-warning{margin:12px 0;color:#96523e;font-size:14px;line-height:1.5}
.ldck-root .ldck-emergency-preview-warning:empty{display:none}
.ldck-root .ldck-emergency-chart-preview{margin:14px 0;padding:12px;border:1px solid #eadbd7;border-radius:12px;background:#fbf6f4}
.ldck-root .ldck-emergency-chart-preview__label{margin:0 0 9px;color:#7b646a;font-size:13px;font-weight:700}
.ldck-root .ldck-emergency-chart-preview__canvas{display:flex;align-items:center;justify-content:center;min-height:142px;max-height:180px;overflow:hidden;background:#fff;border:1px solid #eadbd7;border-radius:8px}
.ldck-root .ldck-emergency-chart-preview__canvas svg{display:block;width:100%;height:160px;max-height:160px}
.ldck-root .ldck-emergency-chart-preview__empty{margin:8px 0 0;font-size:13px;color:#816c70}
.ldck-root .ldck-emergency-preview-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:20px}
.ldck-root .ldck-emergency-preview-actions button{width:100%;min-width:0;min-height:48px;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:center;font-size:16px;line-height:1.35;font-weight:700}
.ldck-root .ldck-emergency-preview-danger{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid #eadbd7}
.ldck-root .ldck-emergency-preview-danger .ldck-danger-button{font-weight:600}
.ldck-root .ldck-emergency-preview-danger small{flex:1 1 230px;color:#816c70;line-height:1.45}
@media(max-width:480px){.ldck-root .ldck-emergency-preview-dialog{padding:20px 16px}.ldck-root .ldck-emergency-preview-details{padding:8px 10px}.ldck-root .ldck-emergency-preview-details>div{grid-template-columns:1fr;gap:3px}.ldck-root .ldck-emergency-preview-actions{grid-template-columns:1fr}.ldck-root .ldck-emergency-preview-actions [data-ldck-emergency-preview-cancel]{order:2}.ldck-root .ldck-emergency-preview-actions [data-ldck-emergency-preview-apply]{order:1}}
.ldck-project-modal__backdrop{position:absolute;inset:0;background:rgba(47,37,40,.42);backdrop-filter:blur(2px)}
.ldck-project-dialog,.ldck-project-library{position:relative;z-index:1;width:min(560px,100%);max-height:min(86vh,780px);overflow:auto;background:#fffdfc;border:1px solid #eadbd7;border-radius:18px;box-shadow:0 24px 70px rgba(65,44,50,.24);padding:26px}
.ldck-project-dialog h2,.ldck-project-library h2{margin:.2rem 0 .55rem;color:#403638}
.ldck-project-dialog__intro,.ldck-project-dialog>p,.ldck-project-library__head p{color:#756569;line-height:1.55}
/* 0.5.8.2 – Projektmodale: größeres, geometrisch zentriertes Schließen-X */
.ldck-project-dialog__close{position:absolute;top:14px;right:14px;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:#f6ece9;color:#6c555b;display:grid;place-items:center;font-size:0;line-height:0;cursor:pointer}
.ldck-project-dialog__close::before,.ldck-project-dialog__close::after{content:"";position:absolute;left:50%;top:50%;width:17px;height:2px;border-radius:999px;background:currentColor;transform-origin:center}
.ldck-project-dialog__close::before{transform:translate(-50%,-50%) rotate(45deg)}
.ldck-project-dialog__close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.ldck-project-dialog__close:hover,.ldck-project-dialog__close:focus-visible{background:#f0dfdc;color:#8d4f5c;outline:none}
.ldck-project-dialog__close:focus-visible{box-shadow:0 0 0 3px rgba(185,137,145,.22)}
.ldck-project-field{display:block;margin-top:18px}
.ldck-project-field>span{display:flex;gap:5px;align-items:baseline;margin-bottom:6px;color:#4d4144;font-weight:700}
.ldck-project-field input,.ldck-project-field textarea,.ldck-project-library__tools input{width:100%;box-sizing:border-box;border:1px solid #dac8c4;border-radius:10px;background:#fff;padding:11px 12px;font:inherit;color:#403638;outline:none}
.ldck-project-field input:focus,.ldck-project-field textarea:focus,.ldck-project-library__tools input:focus{border-color:#b98991;box-shadow:0 0 0 3px rgba(185,137,145,.13)}
.ldck-project-field>small{display:block;margin-top:5px;text-align:right;color:#9a888b}
.ldck-project-form-error{margin:14px 0 0;padding:10px 12px;border-radius:10px;background:#fff0ef;color:#9d3d3d!important;font-weight:650}
.ldck-project-dialog__actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
/* I-08S/AE: project Save / Edit / Duplicate dialogs keep two equal actions.
   Scoped to the form so the library, auth and confirmation layouts stay as-is. */
.ldck-root [data-ldck-project-form-modal] .ldck-project-dialog__actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.ldck-root [data-ldck-project-form-modal] .ldck-project-dialog__actions > button {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:48px;
  padding:10px 12px;
  line-height:1.4;
  white-space:normal;
  overflow-wrap:break-word;
  text-align:center;
}
.ldck-project-dialog__actions--stack{flex-direction:column;align-items:stretch}
.ldck-project-dialog__actions--stack>*{text-align:center}
.ldck-project-dialog__actions--three{flex-wrap:wrap}
.ldck-danger-button{border:1px solid #d7a9a4;background:#fff7f5;color:#994c45;border-radius:10px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer}
.ldck-link-button{border:0;background:transparent;color:#765d63;font:inherit;font-weight:650;padding:8px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.ldck-link-button--danger{color:#a14747}

.ldck-project-modal--library{align-items:flex-start;padding-top:5vh}
.ldck-project-library{width:min(1120px,100%);padding:28px}
.ldck-project-library__head{position:relative;display:flex;justify-content:space-between;gap:24px;padding-right:44px}
.ldck-project-library__tools{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;margin:20px 0 14px}
.ldck-project-library__tabs{display:flex;gap:8px;border-bottom:1px solid #eadbd7;margin-bottom:12px}
.ldck-project-library__tabs button{border:0;background:transparent;padding:10px 12px;color:#7a666c;font:inherit;font-weight:700;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.ldck-project-library__tabs button.is-active{color:#8e5d68;border-bottom-color:#aa747e}
.ldck-project-library__tabs span{display:inline-flex;min-width:22px;justify-content:center;margin-left:4px;padding:1px 6px;border-radius:999px;background:#f2e5e2;font-size:11px}
.ldck-project-library__notice{margin:0 0 14px;color:#846f74;font-size:13px}
.ldck-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ldck-project-card{display:flex;flex-direction:column;min-width:0;border:1px solid #e7d8d4;border-radius:15px;background:#fff;overflow:visible;box-shadow:0 8px 22px rgba(81,60,66,.06)}
.ldck-project-card__thumb{aspect-ratio:3/2;background:#f6efec;border-radius:14px 14px 0 0;overflow:hidden;display:grid;place-items:center}
.ldck-project-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.ldck-project-card__placeholder{font-size:38px;color:#c19aa2}
.ldck-project-card__body{padding:14px 15px 6px;min-height:108px}
.ldck-project-card__body h3{font-size:17px;margin:0 0 5px;color:#403638;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ldck-project-card__body p{margin:0 0 8px;color:#75656a;font-size:13px}
.ldck-project-card__body small{color:#96858a;line-height:1.4}
.ldck-project-card__actions{display:flex;align-items:center;gap:8px;padding:10px 14px 14px;margin-top:auto}
.ldck-project-card__actions .ldck-primary-button{flex:1}
.ldck-project-more{position:relative}
.ldck-project-more summary{list-style:none;width:38px;height:38px;display:grid;place-items:center;border:1px solid #decac6;border-radius:10px;background:#fffaf8;color:#665256;cursor:pointer;font-weight:800}
.ldck-project-more summary::-webkit-details-marker{display:none}
.ldck-project-more>div{position:absolute;right:0;bottom:46px;z-index:5;min-width:170px;padding:6px;background:#fff;border:1px solid #eadbd7;border-radius:10px;box-shadow:0 12px 30px rgba(73,52,58,.18)}
.ldck-project-more button{display:block;width:100%;text-align:left;border:0;background:transparent;border-radius:7px;padding:9px 10px;color:#4f4145;font:inherit;cursor:pointer}
.ldck-project-more button:hover{background:#f7ece9}
.ldck-project-more button.is-danger{color:#a14747}
.ldck-project-empty,.ldck-project-load-error{grid-column:1/-1;padding:28px;text-align:center;border:1px dashed #dbc9c5;border-radius:12px;color:#8a7479;background:#fffaf8}

@media(max-width:980px){
  .ldck-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ldck-project-strip{flex-wrap:wrap}
  .ldck-project-strip__controls{margin-left:auto}
  .ldck-project-toolbar-actions{gap:5px}
  .ldck-project-toolbar-button{padding:8px 9px}
}
@media(max-width:640px){
  .ldck-project-modal{padding:12px}
  .ldck-project-modal--library{padding-top:12px}
  .ldck-project-dialog,.ldck-project-library{padding:20px 16px;border-radius:15px;max-height:92vh}
  .ldck-project-grid{grid-template-columns:1fr}
  .ldck-project-library__tools{grid-template-columns:1fr}
  .ldck-project-strip{align-items:flex-start;flex-direction:column;gap:8px}
  .ldck-project-strip__controls{width:100%;margin-left:0;align-items:flex-start;flex-direction:column;gap:7px}
  .ldck-project-toolbar-actions{width:100%;flex-wrap:wrap}
  .ldck-project-save-status{white-space:normal}
  .ldck-project-dialog__actions--three{flex-direction:column}
  .ldck-project-dialog__actions--three>*{width:100%}
}
.ldck-project-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 14px;padding:10px 10px 10px 13px;border-radius:10px;background:#493f42;color:#fff;font-size:13px}
.ldck-project-undo__text{min-width:0;flex:1}
.ldck-project-undo__actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.ldck-project-undo__undo{border:0;border-radius:8px;background:#fff;color:#5b444a;padding:7px 10px;font:inherit;font-weight:750;cursor:pointer}
.ldck-project-undo__close{position:relative;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:rgba(255,255,255,.12);color:#fff;padding:0;cursor:pointer}
.ldck-project-undo__close::before,.ldck-project-undo__close::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;border-radius:2px;background:currentColor;transform-origin:center}
.ldck-project-undo__close::before{transform:translate(-50%,-50%) rotate(45deg)}
.ldck-project-undo__close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.ldck-project-undo__close:hover,.ldck-project-undo__close:focus-visible{background:rgba(255,255,255,.22);outline:none}
.ldck-project-undo[hidden]{display:none!important}


/* 0.5.9 TESTBUILD – Freier Chartmodus V1 */
.ldck-root .ldck-free-workspace-note {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(217,166,160,.58);
  border-radius: 12px;
  background: rgba(243,228,223,.42);
  color: var(--ldck-text);
}
.ldck-root .ldck-free-workspace-note[hidden] { display: none !important; }
.ldck-root .ldck-free-workspace-note strong { display:block; margin-bottom:5px; color:var(--ldck-primary); font-size:14px; line-height:1.5; }
.ldck-root .ldck-free-workspace-note p { margin:0; color:var(--ldck-muted); font-size:14px; line-height:1.5; }
.ldck-app[data-ldck-chart-mode="free"] .ldck-canvas-scroller {
  background: linear-gradient(180deg, #fbf8f6, #f5efec);
}
.ldck-app[data-ldck-chart-mode="free"] .ldck-canvas-zoom > .ldck-canvas { margin-inline:auto; }
.ldck-root .ldck-free-canvas-bg {
  fill:#fff;
  stroke:rgba(217,166,160,.54);
  stroke-width:1.2;
  vector-effect:non-scaling-stroke;
}


/* Einheitliche Toolbar-Buttons. */
/* Werkzeug- und Ansichtsleiste: neutrale Buttons teilen dieselbe Grundform und denselben Hover-/Focus-Effekt. */
.ldck-root .ldck-sticky-tools .ldck-worktool:not(.is-active):not([aria-pressed="true"]),
.ldck-root .ldck-sticky-tools .ldck-icon-button,
.ldck-root .ldck-sticky-tools .ldck-zoom-value,
.ldck-root .ldck-sticky-tools .ldck-toolbar-action,
.ldck-root .ldck-sticky-tools .ldck-view-action {
  min-height: 40px;
  border: 1px solid var(--ldck-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ldck-primary);
  box-shadow: none;
  transform: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease;
}

.ldck-root .ldck-sticky-tools .ldck-worktool:not(.is-active):not([aria-pressed="true"]):hover,
.ldck-root .ldck-sticky-tools .ldck-worktool:not(.is-active):not([aria-pressed="true"]):focus-visible,
.ldck-root .ldck-sticky-tools .ldck-icon-button:not(:disabled):hover,
.ldck-root .ldck-sticky-tools .ldck-icon-button:not(:disabled):focus-visible,
.ldck-root .ldck-sticky-tools .ldck-zoom-value:hover,
.ldck-root .ldck-sticky-tools .ldck-zoom-value:focus-visible,
.ldck-root .ldck-sticky-tools .ldck-toolbar-action:hover,
.ldck-root .ldck-sticky-tools .ldck-toolbar-action:focus-visible,
.ldck-root .ldck-sticky-tools .ldck-toolbar-action[aria-expanded="true"],
.ldck-root .ldck-sticky-tools .ldck-view-action:hover,
.ldck-root .ldck-sticky-tools .ldck-view-action:focus-visible,
.ldck-root .ldck-sticky-tools .ldck-view-action[aria-pressed="true"] {
  border-color: var(--ldck-accent);
  background: var(--ldck-soft);
  color: var(--ldck-primary);
  box-shadow: 0 4px 12px rgba(125, 63, 77, .08);
  outline: 0;
  transform: none;
}

/* Sonderstile von Export/Info werden in der Toolbar bewusst auf dieselbe Button-Sprache zurückgeführt. */
.ldck-root .ldck-sticky-tools .ldck-toolbar-action--export,
.ldck-root .ldck-sticky-tools .ldck-toolbar-action--info,
.ldck-root .ldck-sticky-tools .ldck-toolbar-action--palette {
  border-color: var(--ldck-border);
  background: #fff;
  color: var(--ldck-primary);
  box-shadow: none;
}

.ldck-root .ldck-sticky-tools .ldck-view-toolbar .ldck-zoom-step-button,
.ldck-root .ldck-sticky-tools .ldck-view-toolbar .ldck-zoom-value,
.ldck-root .ldck-sticky-tools .ldck-view-action {
  height: 40px;
  min-height: 40px;
  border-radius: 10px;
}

/* Der aktive Hauptwerkzeug-Button bleibt als Status bewusst bordeaux hervorgehoben. */
.ldck-root .ldck-sticky-tools .ldck-worktool.is-active,
.ldck-root .ldck-sticky-tools .ldck-worktool[aria-pressed="true"],
.ldck-root .ldck-sticky-tools .ldck-worktool.is-active:hover,
.ldck-root .ldck-sticky-tools .ldck-worktool[aria-pressed="true"]:hover {
  transform: none;
}


/* 0.6.0.5 TESTBUILD – Symbolsuche: [hidden] muss die Palette zuverlässig ausblenden.
   Die regulären Grid-/Block-Regeln der Symbolkarten und Kategorien dürfen das native hidden-Attribut nicht übersteuern. */
.ldck-root [data-ldck-library-section][hidden],
.ldck-root [data-ldck-library-section] .ldck-symbol[hidden],
.ldck-root [data-ldck-library-section] .ldck-group[hidden],
.ldck-root .ldck-library-empty[hidden] {
  display: none !important;
}


/* 0.6.1.0 – lokale Offline-Notfallsicherung */
.ldck-emergency-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-4px 0 14px;padding:11px 14px;border:1px solid #e6d6d2;border-radius:12px;background:#fff8f5;box-shadow:0 8px 24px rgba(70,45,50,.05)}
.ldck-emergency-banner[hidden]{display:none!important}
.ldck-emergency-banner__text{display:grid;gap:3px;min-width:0}
.ldck-emergency-banner__text strong{font-size:13px;color:#5d4449}
.ldck-emergency-banner__text span{font-size:12px;line-height:1.45;color:#765f64}
.ldck-emergency-banner__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ldck-emergency-banner.is-warning{border-color:#dfcba7;background:#fffaf0}
.ldck-emergency-banner.is-error{border-color:#e5bcbc;background:#fff5f5}
.ldck-emergency-logout{position:fixed;inset:0;z-index:100080;display:grid;place-items:center;padding:20px;background:rgba(39,31,33,.48)}
.ldck-emergency-logout[hidden]{display:none!important}
.ldck-emergency-logout__dialog{width:min(520px,100%);padding:24px;border:1px solid #eadedb;border-radius:16px;background:#fffaf8;box-shadow:0 24px 70px rgba(45,31,34,.24)}
.ldck-emergency-logout__dialog h3{margin:0 0 8px;color:#493b3e;font-size:20px}
.ldck-emergency-logout__dialog p{margin:0;color:#705f63;line-height:1.55}
.ldck-emergency-logout__actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
@media (max-width:760px){.ldck-emergency-banner{align-items:flex-start;flex-direction:column}.ldck-emergency-banner__actions{justify-content:flex-start;width:100%}.ldck-emergency-logout__actions{align-items:stretch;flex-direction:column}.ldck-emergency-logout__actions button{width:100%}}

/* Phase 6 admin/test actions: button treatment for clearer affordance. */
.ldck-emergency-action-button{white-space:nowrap}
.ldck-emergency-action-button--danger{
  color:#9b4646;
  border-color:rgba(155,70,70,.34);
  background:rgba(255,255,255,.72);
}
.ldck-emergency-action-button--danger:hover,
.ldck-emergency-action-button--danger:focus-visible{
  color:#843b3b;
  border-color:rgba(132,59,59,.55);
  background:#fff7f6;
}


/* 0.6.1.8 – verständliche Hilfe für Offline-/Synchronisationszustände */
.ldck-emergency-help-button {
  gap: 6px;
  white-space: nowrap;
}
.ldck-help-current-state {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(125,63,77,.22);
  border-radius: 12px;
  background: rgba(245,235,232,.62);
}
.ldck-help-current-state > strong {
  display: block;
  margin-bottom: 6px;
}
.ldck-help-current-state p {
  margin: 6px 0 0;
}
/* 0.6.1.9 – Offline-Hilfe: Zwischenüberschriften an die bestehende Editor-Hilfe angleichen */
.ldck-root .ldck-help-topic[data-ldck-help-topic-panel="emergency"] h4 {
  margin: 18px 0 6px;
  color: var(--ldck-primary);
  font-family: inherit !important;
  font-size: 13px !important;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.ldck-help-topic[data-ldck-help-topic-panel="emergency"] ul {
  margin: 8px 0 12px 20px;
}


/* 0.6.1.10 – Konfliktoptionen in der Hilfe kompakt und erklärend */
.ldck-root .ldck-help-conflict-box {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(125,63,77,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.56);
}
.ldck-root .ldck-help-conflict-box__intro {
  margin: 0 0 10px !important;
  color: var(--ldck-primary);
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}
.ldck-root .ldck-help-conflict-choice {
  padding: 9px 0;
  border-top: 1px solid rgba(125,63,77,.12);
}
.ldck-root .ldck-help-conflict-choice:first-of-type {
  border-top: 0;
  padding-top: 2px;
}
.ldck-root .ldck-help-conflict-choice > strong {
  display: block;
  margin: 0 0 3px;
  color: var(--ldck-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
}
.ldck-root .ldck-help-conflict-choice > p {
  margin: 0 !important;
  color: var(--ldck-muted);
  font-size: 12px !important;
  line-height: 1.52 !important;
}


/* 0.6.2.1 – Native Auswahlfelder an die Luxury-Design-Farbwelt angleichen.
   Windows/Chromium verwendet sonst für geöffnete <select>-Listen das systemblaue Highlight. */
[data-ldck-app] select {
  color-scheme: light;
  accent-color: var(--ldck-primary);
}

[data-ldck-app] select option {
  background-color: var(--ldck-white);
  color: var(--ldck-text);
}

[data-ldck-app] select option:checked,
[data-ldck-app] select option:focus,
[data-ldck-app] select option:active {
  color: var(--ldck-white) !important;
  background-color: var(--ldck-primary) !important;
  background-image: linear-gradient(var(--ldck-primary), var(--ldck-primary)) !important;
  box-shadow: 0 0 0 100vmax var(--ldck-primary) inset;
}

[data-ldck-app] select option:hover {
  color: var(--ldck-text);
  background-color: var(--ldck-soft);
  background-image: linear-gradient(var(--ldck-soft), var(--ldck-soft));
}
/* Luxury Design Custom Select – Desktop/Fine Pointer.
   Native Windows/Chromium option hover colors cannot be styled reliably, therefore
   the visible dropdown is rendered as an accessible custom list while the original
   <select> remains the data/control source. */
@media (hover: hover) and (pointer: fine) {
  [data-ldck-app] .ld-luxury-select,
  [data-ldcks-app] .ld-luxury-select {
    position: relative;
    display: block;
    width: 100%;
  }

  [data-ldck-app] select.ld-luxury-native-select,
  [data-ldcks-app] select.ld-luxury-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
  }

  [data-ldck-app] .ld-luxury-select-trigger,
  [data-ldcks-app] .ld-luxury-select-trigger {
    width: 100%;
    min-height: 40px;
    padding: 9px 38px 9px 13px;
    border: 1px solid #E8D8D4;
    border-radius: 12px;
    background: #FFFFFF;
    color: #4F3E43;
    font: inherit;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    position: relative;
    box-shadow: none;
  }

  [data-ldck-app] .ld-luxury-select-trigger::after,
  [data-ldcks-app] .ld-luxury-select-trigger::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #7D3F4D;
    border-bottom: 2px solid #7D3F4D;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
  }

  [data-ldck-app] .ld-luxury-select-trigger:hover,
  [data-ldcks-app] .ld-luxury-select-trigger:hover {
    border-color: #D9A6A0;
    background: #FFF9F7;
  }

  [data-ldck-app] .ld-luxury-select-trigger:focus-visible,
  [data-ldcks-app] .ld-luxury-select-trigger:focus-visible,
  [data-ldck-app] .ld-luxury-select-trigger[aria-expanded='true'],
  [data-ldcks-app] .ld-luxury-select-trigger[aria-expanded='true'] {
    outline: none;
    border-color: #D9A6A0;
    box-shadow: 0 0 0 3px rgba(217, 166, 160, 0.23);
  }

  [data-ldck-app] .ld-luxury-select-trigger:disabled,
  [data-ldcks-app] .ld-luxury-select-trigger:disabled {
    opacity: .55;
    cursor: not-allowed;
    background: #F8F3F2;
  }
}

.ld-luxury-select-menu {
  position: fixed;
  z-index: 2147483000;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #D9C7C3;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 14px 32px rgba(79, 62, 67, 0.18);
  color: #4F3E43;
  font: inherit;
}

.ld-luxury-select-option {
  display: block;
  width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4F3E43;
  text-align: left;
  font: inherit;
  line-height: 1.35;
  cursor: pointer;
}

.ld-luxury-select-option:hover,
.ld-luxury-select-option:focus-visible {
  outline: none;
  background: #F3E4DF;
  color: #4F3E43;
}

.ld-luxury-select-option.is-selected,
.ld-luxury-select-option.is-selected:hover,
.ld-luxury-select-option.is-selected:focus-visible {
  background: #7D3F4D;
  color: #FFFFFF;
}

.ld-luxury-select-option.is-disabled {
  opacity: .5;
  cursor: not-allowed;
}

.ld-luxury-select-group {
  padding: 8px 10px 4px;
  color: rgba(79, 62, 67, .70);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* 0.6.2.5 TESTBUILD – sichtbare, aber nicht produktiv nutzbare Demo-Funktionen */
.ldck-root .ldck-access-locked {
  opacity: .62;
  cursor: not-allowed;
}
.ldck-root .ldck-access-locked:hover,
.ldck-root .ldck-access-locked:focus-visible {
  opacity: .76;
}

/* 0.6.2.9 TESTBUILD: reine UI-Anordnung von Projekt-Hilfesuche und Vollbild. */
.ldck-root .ldck-editor-headline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.ldck-root .ldck-editor-headline .ldck-step{margin:0}
.ldck-root .ldck-editor-headline .ldck-status{min-height:26px;padding:3px 9px;font-size:11px}
.ldck-root .ldck-header-fullscreen{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:44px;padding:9px 17px;border:1px solid #7d3f4d;border-radius:11px;background:#7d3f4d;color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer;white-space:nowrap}
.ldck-root .ldck-header-fullscreen:hover,.ldck-root .ldck-header-fullscreen:focus-visible{background:#65333f;border-color:#65333f;outline:2px solid #ddbcc4;outline-offset:2px}
.ldck-root .ldck-project-help-search{display:flex;align-items:center;gap:7px;min-width:165px;max-width:350px;flex:1 1 210px;padding:0 11px;height:40px;border:1px solid #e5d4d2;border-radius:10px;background:#fff;color:#7d3f4d}
.ldck-root .ldck-project-help-search input{min-width:0;width:100%;height:100%;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;font-size:13px}
.ldck-root .ldck-project-help-search input:disabled{opacity:1;color:#8b7d80;cursor:default}
.ldck-root .ldck-project-help-search input::placeholder{color:#8b7d80;opacity:1}
/* Die Kopfzeile war bislang im Fokusmodus komplett versteckt – für den Ausstieg sichtbar halten. */
.ldck-root .ldck-editor-card--wide.is-focus-mode .ldck-sectionhead--editor,
.ldck-root .ldck-editor-card--wide.is-focus-mode-fallback .ldck-sectionhead--editor,
.ldck-root .ldck-editor-card--wide:fullscreen .ldck-sectionhead--editor{display:flex!important;align-items:center!important;margin-bottom:8px!important}
.ldck-root .ldck-editor-card--wide.is-focus-mode .ldck-sectionhead--editor h2,
.ldck-root .ldck-editor-card--wide.is-focus-mode-fallback .ldck-sectionhead--editor h2,
.ldck-root .ldck-editor-card--wide:fullscreen .ldck-sectionhead--editor h2,
.ldck-root .ldck-editor-card--wide.is-focus-mode .ldck-sectionhead--editor > div > p:last-child,
.ldck-root .ldck-editor-card--wide.is-focus-mode-fallback .ldck-sectionhead--editor > div > p:last-child,
.ldck-root .ldck-editor-card--wide:fullscreen .ldck-sectionhead--editor > div > p:last-child{display:none!important}
@media(max-width:1100px){.ldck-root .ldck-project-strip{flex-wrap:wrap}}
@media(max-width:640px){.ldck-root .ldck-sectionhead--editor{gap:10px}.ldck-root .ldck-header-fullscreen{padding:8px 11px;min-height:38px;font-size:12px}.ldck-root .ldck-project-help-search{width:100%}}

/* 0.6.2.10 — Hilfesuche: ausschließlich Oberfläche, keine Editor-Interaktion */
.ldck-root .ldck-project-help-search{position:relative;overflow:visible}
.ldck-root .ldck-project-help-search input{cursor:text}
.ldck-root .ldck-help-search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;min-width:min(340px,calc(100vw - 32px));max-height:310px;overflow-y:auto;z-index:1005;padding:6px;background:#fff;border:1px solid #e5d4d2;border-radius:11px;box-shadow:0 12px 30px rgba(67,34,43,.16)}
.ldck-root .ldck-help-search-results[hidden]{display:none!important}
.ldck-root .ldck-help-search-result{display:block;width:100%;text-align:left;padding:10px 11px;margin:0;border:0;border-radius:7px;background:transparent;color:#7d3f4d;cursor:pointer;font:inherit}
.ldck-root .ldck-help-search-result:hover,.ldck-root .ldck-help-search-result:focus-visible{background:#f7e9e6;outline:2px solid transparent}
.ldck-root .ldck-help-search-result strong{display:block;font-size:13px;line-height:1.4}
.ldck-root .ldck-help-search-result small{display:block;margin-top:3px;font-size:11.5px;line-height:1.4;color:#66545a}
.ldck-root .ldck-help-search-empty{margin:0;padding:10px;font-size:12px;color:#66545a}

/* 0.6.2.11 TESTBUILD – HilfePilot pilot, isolated read-only dialog */
.ldck-root .ldck-pilot-search-action{display:block;margin-top:6px;color:#7d3f4d;font-weight:700;font-size:12px}
.ldck-root .ldck-pilot-layer{position:fixed;inset:0;z-index:2147482000;pointer-events:none}
.ldck-root .ldck-pilot-shade{position:absolute;inset:0;background:rgba(30,20,25,.30);pointer-events:auto}
.ldck-root .ldck-pilot-dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(440px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;background:#fff;color:#453038;border:1px solid #dfc7ce;border-radius:15px;box-shadow:0 18px 55px #28121c55;pointer-events:auto;outline:none}
.ldck-root .ldck-pilot-handle{background:#f8f0f0;display:flex;align-items:center;gap:8px;padding:13px 16px;font-weight:700;color:#7d3f4d;cursor:grab;touch-action:none;user-select:none}
.ldck-root .ldck-pilot-handle:active{cursor:grabbing}
.ldck-root .ldck-pilot-close{margin-left:auto;border:0;background:transparent;font-size:24px;cursor:pointer;color:#7d3f4d}
.ldck-root .ldck-pilot-content{padding:17px 19px 19px}
.ldck-root .ldck-pilot-tag,.ldck-root .ldck-pilot-counter{margin:0 0 8px;color:#80656d;font-size:12px}
.ldck-root .ldck-pilot-title{font-size:18px;color:#7d3f4d;margin:5px 0 9px}
.ldck-root .ldck-pilot-body{line-height:1.6;margin:0 0 15px;font-size:14px}
.ldck-root .ldck-pilot-visual{background:#faf6f5;border:1px solid #ecdddd;border-radius:10px;padding:15px;min-height:120px}
.ldck-root .ldck-pilot-sample{display:grid;gap:7px;font-size:13px}
.ldck-root .ldck-pilot-sample>div{padding:6px 9px;border-radius:6px;background:#fff;border:1px solid #eadcdd}
.ldck-root .ldck-pilot-sample .ldck-pilot-highlight{border:2px solid #7d3f4d;background:#f7e8eb}
.ldck-root .ldck-pilot-symbols{display:flex;gap:9px;justify-content:space-around;flex-wrap:wrap;font-size:12px}
.ldck-root .ldck-pilot-symbols span{display:flex;flex-direction:column;align-items:center;gap:7px}
.ldck-root .ldck-pilot-symbols b{font-size:30px;color:#7d3f4d}
.ldck-root .ldck-pilot-fake-grid{width:100px;height:60px;background-size:20px 20px;background-image:linear-gradient(#e5d6d6 1px,transparent 1px),linear-gradient(90deg,#e5d6d6 1px,transparent 1px);display:grid;place-items:center;font-size:30px;color:#7d3f4d}
.ldck-root .ldck-pilot-note{font-size:11px;color:#786970;margin:9px 0}
.ldck-root .ldck-pilot-actions{display:flex;justify-content:space-between;gap:12px;margin-top:14px}
.ldck-root .ldck-pilot-actions button{border:1px solid #7d3f4d;background:white;color:#7d3f4d;border-radius:8px;padding:9px 16px;font-weight:600;cursor:pointer}
.ldck-root .ldck-pilot-actions .ldck-pilot-next{background:#7d3f4d;color:white}
.ldck-root .ldck-pilot-actions button:disabled{opacity:.35;cursor:default}
.ldck-root .ldck-pilot-layer button:focus-visible{outline:3px solid #e4b3c0;outline-offset:2px}

/* 0.6.2.12 TESTBUILD – read-only target navigator, first help-pilot step */
.ldck-root .ldck-pilot-spotlight{position:fixed;z-index:1;box-sizing:border-box;border:3px solid #7d3f4d;border-radius:10px;box-shadow:0 0 0 5px rgba(255,255,255,.92),0 0 0 9px rgba(125,63,77,.30);pointer-events:none;transition:left .12s,top .12s,width .12s,height .12s}
.ldck-root .ldck-pilot-pointer{position:fixed;z-index:2;box-sizing:border-box;width:230px;text-align:center;padding:8px 9px;border-radius:9px;background:#7d3f4d;color:#fff;font-weight:700;font-size:12px;line-height:1.35;box-shadow:0 5px 18px #27121b44;pointer-events:none}
.ldck-root .ldck-pilot-pointer::after{content:'';position:absolute;left:calc(50% - 8px);bottom:-13px;border:8px solid transparent;border-top-color:#7d3f4d;border-bottom:0}
.ldck-root .ldck-pilot-pointer.is-below::after{bottom:auto;top:-13px;border:8px solid transparent;border-bottom-color:#7d3f4d;border-top:0}
.ldck-root .ldck-pilot-dialog{z-index:3}
.ldck-root .ldck-pilot-spotlight[hidden],.ldck-root .ldck-pilot-pointer[hidden]{display:none!important}

/* 0.6.2.14 TESTBUILD – HelpPilot individual basic-stitch guide */
.ldck-root .ldck-pilot-basic-detail{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:100px;text-align:center}
.ldck-root .ldck-pilot-basic-detail strong{font-size:20px;color:#7d3f4d}
.ldck-root .ldck-pilot-basic-detail span{font-size:14px}
.ldck-root .ldck-pilot-basic-detail small{font-size:11px;color:#786970}

/* 0.6.2.15 TESTBUILD – HilfePilot UX: clear safety notice and direct exit */
.ldck-root .ldck-pilot-note{display:flex;align-items:center;gap:9px;background:#eef5ee;color:#315c40;border:1px solid #cbdccc;border-radius:8px;padding:10px 12px;margin:12px 0 4px;font-size:13px;line-height:1.45}
.ldck-root .ldck-pilot-note span{font-size:19px;flex:none}
.ldck-root .ldck-pilot-actions{gap:7px;align-items:center}
.ldck-root .ldck-pilot-actions button{padding:9px 10px;white-space:nowrap;font-size:12px}
.ldck-root .ldck-pilot-actions .ldck-pilot-finish{border-color:#dcc6cc;background:#f9f5f5;color:#7d3f4d}
@media(max-width:390px){.ldck-root .ldck-pilot-actions{flex-wrap:wrap}.ldck-root .ldck-pilot-actions button{flex:1 1 auto}}

/* 0.6.2.16 TESTBUILD – Guide overlay must not trap pointer/scroll events
   on the editor's symbol palette. Dialog remains fully interactive. */
.ldck-root .ldck-pilot-shade{pointer-events:none}

/* 0.6.2.17 TESTBUILD – HelpPilot step 3 uses the real palette search, not a replica. */
.ldck-root .ldck-pilot-live-target{display:grid;gap:8px;font-size:13px;line-height:1.5;color:#52434a}
.ldck-root .ldck-pilot-live-target strong{font-size:15px;color:#7d3f4d}

/* 0.6.2.18 TESTBUILD – read-only two-part Setzen walkthrough on real editor. */
.ldck-root .ldck-pilot-place-preview{position:fixed;z-index:2;display:grid;place-items:center;box-sizing:border-box;min-width:20px;min-height:20px;border:2px dashed #7d3f4d;border-radius:6px;background:rgba(255,246,247,.75);color:#7d3f4d;font-size:21px;font-weight:700;pointer-events:none;user-select:none;animation:ldck-pilot-preview-pulse 1.8s ease-in-out infinite}
.ldck-root .ldck-pilot-place-preview[hidden]{display:none!important}
@keyframes ldck-pilot-preview-pulse{50%{box-shadow:0 0 0 7px rgba(125,63,77,.12)}}
@media(prefers-reduced-motion:reduce){.ldck-root .ldck-pilot-place-preview{animation:none}}

/* 0.6.2.23 TESTBUILD – Projektformular must overlay the open project library.
   Both dialogs are siblings; equal z-index previously hid Duplicate/Rename. */
.ldck-root .ldck-project-modal[data-ldck-project-form-modal]:not([hidden]) { z-index:100020; }

/* 0.6.2.28 TESTBUILD – Header-Hilfesuche bündig zum Vollbild-Schalter
   angeordnet (analog zur Strickschrift 0.1.45). Nur DOM-Platzierung und
   Layout: HilfePilot-Such-/Klicklogik, Editor und Projektleiste unverändert. */
.ldck-root .ldck-sectionhead--editor {
  position: relative;
  z-index: 50;
  align-items: flex-start;
  gap: 16px;
}
.ldck-root .ldck-sectionhead--editor > .ldck-editor-head-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}
.ldck-root .ldck-sectionhead--editor > .ldck-editor-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  max-width: none;
  margin-left: auto;
}
.ldck-root .ldck-editor-header-actions > .ldck-project-help-search {
  order: 0;
  flex: 0 1 280px;
  width: 280px;
  min-width: 210px;
  max-width: 320px;
  margin: 0;
}
.ldck-root .ldck-editor-header-actions > .ldck-header-fullscreen {
  flex: 0 0 auto;
  margin: 0;
  align-self: center;
}
@media (max-width: 960px) {
  .ldck-root .ldck-sectionhead--editor { display: flex; flex-wrap: wrap; }
  .ldck-root .ldck-sectionhead--editor > .ldck-editor-header-actions {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
}
@media (max-width: 520px) {
  .ldck-root .ldck-sectionhead--editor > .ldck-editor-header-actions {
    flex-wrap: wrap;
    gap: 9px;
  }
  .ldck-root .ldck-editor-header-actions > .ldck-project-help-search {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}


/* 0.6.2.29 TESTBUILD – targeted mobile layout repair only (offline banner, tools, view).
   No state, persistence, export or symbol behavior changed. */
@media (max-width: 760px) {
  .ldck-root .ldck-emergency-banner,
  .ldck-root .ldck-emergency-banner__text,
  .ldck-root .ldck-emergency-banner__actions {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  .ldck-root .ldck-emergency-banner__text { width: 100%; overflow-wrap: anywhere; }
  .ldck-root .ldck-emergency-banner__actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
    align-items: stretch;
  }
  .ldck-root .ldck-emergency-banner__actions > button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.3;
  }
  .ldck-root .ldck-emergency-banner__actions > [data-ldck-emergency-clear] {
    grid-column: 1 / -1;
  }
}

/* 0.6.2.173 TESTBUILD – Ausschließlich die Editoransicht wird kontrastreicher.
   Root-Klasse statt Projektstatus: SVG/PNG/PDF werden unverändert exportiert.
   SVG-Originalelemente, Farbattribute und gespeicherte Werte bleiben erhalten. */
.ldck-root.ldck-contrast-preview {
  --ldck-grid-line:#b7b7b7;
  --ldck-grid-fill:#ffffff;
}
.ldck-root.ldck-contrast-preview .ldck-canvas .ldck-chart-element {
  color:#101010 !important;
}
.ldck-root.ldck-contrast-preview .ldck-canvas .ldck-symbol-stroke {
  stroke-width:4.8;
}
.ldck-root.ldck-contrast-preview .ldck-canvas .ldck-row-guide,
.ldck-root.ldck-contrast-preview .ldck-canvas .ldck-round-label,
.ldck-root.ldck-contrast-preview .ldck-canvas .ldck-stitch-column-guides > text,
.ldck-root.ldck-contrast-preview .ldck-canvas .ldck-number-annotation > text {
  fill:#151515 !important;
  font-weight:800;
}
.ldck-root.ldck-contrast-preview .ldck-canvas .ldck-round-guide {
  stroke:#777777 !important;
}
.ldck-root.ldck-contrast-preview .ldck-canvas .ldck-polar-guide {
  stroke:#696969 !important;
}
.ldck-root .ldck-contrast-toggle[aria-pressed="true"],
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-contrast-toggle[aria-pressed="true"] {
  border-color:#353535;
  background:#252525;
  color:#ffffff;
}
.ldck-root .ldck-contrast-toggle[aria-pressed="true"] > span {
  color:#ffffff;
}

/* 0.6.2.172 TESTBUILD – Freiwilliger PDF-Veröffentlichungscheck (14 px). */
.ldck-root .ldck-pdf-check {margin:8px 1px 9px;}
.ldck-root .ldck-pdf-check__button {
  display:block;
  width:100%;
  min-height:44px;
  padding:9px 12px;
  border:1px solid #d8abb0;
  border-radius:10px;
  background:#fff7f6;
  color:#7d3f4d;
  font:inherit;
  font-size:14px;
  font-weight:750;
  line-height:1.45;
  text-align:center;
  cursor:pointer;
}
.ldck-root .ldck-pdf-check__button:hover,
.ldck-root .ldck-pdf-check__button:focus-visible {border-color:#b87b83;background:#f9e8e6;}
.ldck-root .ldck-pdf-check__result {
  margin-top:7px;
  padding:12px;
  border:1px solid #e5cfca;
  border-radius:10px;
  background:#fffaf7;
  color:#58464b;
  font-size:14px;
  line-height:1.5;
  white-space:normal;
}
.ldck-root .ldck-pdf-check__result[hidden] {display:none !important;}
.ldck-root .ldck-pdf-check__result > strong {display:block;margin-bottom:8px;color:#7d3f4d;font-size:14px;line-height:1.45;}
.ldck-root .ldck-pdf-check__list {display:grid;gap:7px;margin:0;padding:0;list-style:none;}
.ldck-root .ldck-pdf-check__item {position:relative;padding-left:19px;font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.ldck-root .ldck-pdf-check__item::before {position:absolute;left:0;top:0;font-weight:750;content:'i';color:#888;}
.ldck-root .ldck-pdf-check__item--ok::before {content:'✓';color:#28734a;}
.ldck-root .ldck-pdf-check__item--warn::before {content:'!';color:#a35a1b;}
.ldck-root .ldck-pdf-check__footnote {margin:10px 0 0;font-size:14px;line-height:1.5;color:#6d5960;}
@media (max-width: 520px) {
  .ldck-root .ldck-sticky-tools,
  .ldck-root .ldck-editor-toolbar--040,
  .ldck-root .ldck-toolbar-cluster,
  .ldck-root .ldck-worktool-group,
  .ldck-root .ldck-toolbar-actions,
  .ldck-root .ldck-view-toolbar,
  .ldck-root .ldck-view-zoom {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .ldck-root .ldck-editor-toolbar--040 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .ldck-root .ldck-toolbar-cluster {
    margin-left: 0;
    padding-right: 0;
    border-right: 0;
  }
  .ldck-root .ldck-worktool-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .ldck-root .ldck-worktool {
    width: 100%;
    min-width: 0;
    padding-inline: 5px;
    gap: 4px;
  }
  .ldck-root .ldck-worktool > span:last-child {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
  .ldck-root .ldck-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-left: 0;
  }
  .ldck-root .ldck-toolbar-actions > .ldck-toolbar-action {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding-inline: 4px;
    font-size: 11px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
  .ldck-root .ldck-view-zoom {
    grid-template-columns: 34px minmax(0, 1fr) 34px 54px;
    gap: 4px;
  }
  .ldck-root .ldck-view-toolbar .ldck-zoom-step-button {
    width: 34px;
    min-width: 34px;
  }
  .ldck-root .ldck-zoom-range {
    min-width: 0;
    width: 100%;
  }
  .ldck-root .ldck-view-toolbar .ldck-zoom-value {
    min-width: 0;
    width: 100%;
    padding-inline: 2px;
  }
  .ldck-root .ldck-view-action {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }
}
@media (max-width: 390px) {
  .ldck-root .ldck-emergency-banner__actions { grid-template-columns: minmax(0, 1fr); }
  .ldck-root .ldck-emergency-banner__actions > [data-ldck-emergency-clear] { grid-column: auto; }
}

/* 0.6.2.34 DEV – objektbezogene Farben, barrierearm auch auf Mobilgeräten */
.ldck-color-control { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px; border:1px solid #dfcbd0; border-radius:10px; background:rgba(255,250,247,.75); margin:10px 0; }
.ldck-color-control label { color:#633f4b; font-weight:700; flex:1 1 105px; }
.ldck-color-control input[type=color] { width:52px; height:36px; padding:2px; border:1px solid #b99da6; border-radius:7px; background:#fff; cursor:pointer; }
.ldck-color-control button { min-height:36px; padding:6px 11px; border:1px solid #bfa4ae; border-radius:8px; background:#fff; color:#633f4b; font-weight:600; cursor:pointer; }
.ldck-color-control button:focus-visible, .ldck-color-control input:focus-visible { outline:2px solid #7D3F4D; outline-offset:2px; }
.ldck-color-control small { flex:1 0 100%; font-size:.78rem; line-height:1.4; color:#795b63; }
.ldck-color-control--panel { margin:0 0 9px; }
@media (max-width:580px) { .ldck-color-control { gap:7px; } .ldck-color-control input[type=color] { min-width:54px; } }

/* ChartKompass 0.6.2.35 DEV – equal visual weight and vertically centered group previews.
   Scoped strictly to palette cards, not symbols placed on the chart or export. */
.ldck-group-list--palette .ldck-group {
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: minmax(0, auto) auto;
  column-gap: 9px;
  row-gap: 2px;
  min-height: 64px;
  align-items: center;
}
.ldck-group-list--palette .ldck-group > svg {
  grid-column: 1;
  grid-row: 1 / 3;
  justify-self: center;
  align-self: center;
  width: 46px;
  height: 46px;
  overflow: visible;
}
.ldck-group-list--palette .ldck-group > svg .ldck-symbol-stroke {
  stroke-width: 5;
}
.ldck-group-list--palette .ldck-group-name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}
.ldck-group-list--palette .ldck-group-short {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}


/* 0.6.2.35 – kontrollierte persönliche Farbpalette (keine native Popup-Falle). */
.ldck-color-trigger{display:inline-flex;align-items:center;gap:9px;min-height:38px;padding:5px 10px;border:1px solid #d2b9b5;border-radius:9px;background:#fff;color:#473137;cursor:pointer;font:inherit}
.ldck-color-trigger:disabled{opacity:.5;cursor:not-allowed}
.ldck-color-trigger__swatch{display:inline-block;flex:0 0 23px;width:23px;height:23px;border:1px solid #b7aaaa;border-radius:5px;background:#403432}
.ldck-color-trigger__code{font-size:12px;font-weight:600}
.ldck-color-overlay{position:fixed;inset:0;z-index:2147483640;background:rgba(33,24,30,.56);display:flex;align-items:center;justify-content:center;padding:12px;overflow:auto}
.ldck-color-overlay[hidden]{display:none!important}
.ldck-color-dialog{box-sizing:border-box;width:min(460px,100%);max-height:calc(100vh - 24px);overflow:auto;padding:19px;border:1px solid #dbbfb9;border-radius:16px;background:#fffaf7;color:#463037;box-shadow:0 16px 55px #24121845;font-size:14px}
.ldck-color-dialog h3{margin:0 0 8px;color:#7d3f4d;font-size:20px}
.ldck-color-dialog p{margin:5px 0 12px;font-size:13px;line-height:1.45}
.ldck-color-picker-top{display:flex;align-items:center;gap:12px;margin:12px 0}
.ldck-color-picker-preview{width:47px;height:47px;border:1px solid #9d8385;border-radius:9px;background:#403432;flex-shrink:0}
.ldck-color-dialog input[type=text]{width:118px;min-height:38px;padding:6px 8px;box-sizing:border-box;border:1px solid #d8bcb5;border-radius:7px;background:white;color:#34282b}
.ldck-color-dialog label{display:block;margin:9px 0 3px;font-size:13px;font-weight:600}
.ldck-color-dialog input[type=range]{width:100%;accent-color:#7d3f4d}
.ldck-color-hue{background:linear-gradient(to right,red,#ff0,lime,cyan,blue,magenta,red);border-radius:7px}
.ldck-color-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:9px 0}
.ldck-color-slot{min-height:51px;display:flex;flex-direction:column;align-items:center;gap:3px;justify-content:center;border:2px solid #dfc9c5;background:#fff;color:#593b45;border-radius:8px;cursor:pointer;font:inherit;font-size:11px}
.ldck-color-slot[aria-pressed=true]{border-color:#7d3f4d;box-shadow:0 0 0 2px #dcb9c2}
.ldck-color-slot__swatch{width:24px;height:24px;border-radius:5px;border:1px solid #baaeb0;background:repeating-linear-gradient(45deg,#f1e8e9,#f1e8e9 4px,#fff 4px,#fff 8px)}
.ldck-color-dialog-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.ldck-color-dialog-actions button{flex:1 0 auto;min-height:36px;border:1px solid #9b707a;border-radius:8px;background:white;color:#713b48;font:inherit;font-size:12px;cursor:pointer;padding:7px}
.ldck-color-dialog-actions button.ldck-color-primary{background:#7d3f4d;color:#fff}
.ldck-color-dialog-actions button:disabled{opacity:.55;cursor:not-allowed}
.ldck-color-dialog-status{min-height:19px;font-size:12px;color:#6e505a;margin:7px 0!important}
.ldck-color-trigger:focus-visible,.ldck-color-dialog button:focus-visible,.ldck-color-dialog input:focus-visible{outline:3px solid #e0a76c;outline-offset:2px}
@media(max-width:450px){.ldck-color-dialog{padding:13px}.ldck-color-dialog-actions button{font-size:11px;padding:7px 4px}}


/* Q2 0.6.2.43: bessere Lesbarkeit der rechten Werkzeugpalette, ohne Änderungen an den SVG-Symbolmaßen. */
.ldck-right-palette .ldck-palette-head strong{font-size:14px}
.ldck-right-palette .ldck-pane-kicker,
.ldck-right-palette .ldck-palette-search > span,
.ldck-right-palette .ldck-inspector-label,
.ldck-right-palette .ldck-setup-grid--palette .ldck-field-label{font-size:11.5px}
.ldck-right-palette .ldck-palette-tab,
.ldck-right-palette .ldck-palette-section-head strong,
.ldck-right-palette .ldck-palette-section-head span{font-size:12px}
.ldck-right-palette .ldck-palette-empty,
.ldck-right-palette .ldck-palette-settings .ldck-display-option,
.ldck-right-palette .ldck-setup-grid--palette .ldck-primary-button,
.ldck-right-palette .ldck-palette-coming span{font-size:11.5px}
.ldck-right-palette .ldck-palette-category > summary{font-size:13px}
.ldck-right-palette .ldck-palette-category > summary > span:last-child{font-size:11.5px}
.ldck-right-palette .ldck-symbol-list--palette .ldck-symbol-name,
.ldck-right-palette .ldck-group-list--palette .ldck-group-name{font-size:12.5px;line-height:1.3}
.ldck-right-palette .ldck-symbol-list--palette .ldck-symbol-short,
.ldck-right-palette .ldck-group-list--palette .ldck-group-short,
.ldck-right-palette .ldck-quick-symbol span{font-size:11px}
.ldck-right-palette .ldck-setup-grid--palette .ldck-field input,
.ldck-right-palette .ldck-setup-grid--palette .ldck-field select{font-size:12px}
/* Q2: der schmale, jederzeit sichtbare Aufklapp-Tab verhindert eine 'verschwundene' Palette. */
.ldck-right-palette .ldck-palette-reopen{display:none}
@media (min-width:901px){
 .ldck-right-palette.is-collapsed .ldck-palette-head{display:none}
 .ldck-right-palette.is-collapsed .ldck-palette-reopen{
   display:flex;align-items:center;justify-content:center;gap:11px;
   width:32px;min-height:170px;margin:2px auto;padding:10px 4px;
   writing-mode:vertical-rl;transform:rotate(180deg);
   border:1px solid var(--ldck-border);border-radius:11px;
   background:#fff;color:var(--ldck-primary);font:inherit;font-size:12px;font-weight:800;
   cursor:pointer;white-space:nowrap;
 }
 .ldck-right-palette.is-collapsed .ldck-palette-reopen:hover,
 .ldck-right-palette.is-collapsed .ldck-palette-reopen:focus-visible{
   outline:2px solid var(--ldck-accent);outline-offset:2px;background:var(--ldck-soft);
 }
}
/* Q2: die spätere Altregel 0.4.4.1 blendete die komplette Palette mit !important aus.
   Der neue beschriftete Tab muss deshalb diese Regel ausdrücklich übersteuern. */
.ldck-root .ldck-right-palette.is-collapsed{display:grid !important}
@media (min-width:901px){
  .ldck-root .ldck-professional-stage.is-palette-collapsed{
    grid-template-columns:minmax(0,1fr) 48px !important;
  }
}
@media (max-width:900px){
  .ldck-root .ldck-professional-stage.is-palette-collapsed{
    grid-template-columns:minmax(0,1fr) !important;
  }
  .ldck-root .ldck-right-palette.is-collapsed .ldck-palette-head{display:flex}
}
@keyframes ldck-tut-enter{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}
@keyframes ldck-demo-tap{from{transform:scale(.2);opacity:1}to{transform:scale(2.3);opacity:0}}

/* Q3 Smarte Rapports – nur TESTBUILD, keine Änderung der Zeichenfläche. */
.ldck-rapport-mode-banner:not([hidden]){position:sticky;top:4px;z-index:35;padding:9px 12px;margin:5px 12px;background:#fbefdc;color:#63394a;border:1px solid #cca78b;border-radius:7px;font-size:13px;font-weight:600}
.ldck-rapport-mode-banner button{margin-left:12px;border:1px solid currentColor;border-radius:5px;padding:4px 8px;background:transparent;color:inherit;cursor:pointer}
[data-ldck-smart-rapport-section] [data-ldck-smart-rapport-repeat-panel]:not([hidden]){display:grid;gap:8px;margin:9px 0}
[data-ldck-smart-rapport-section] small{display:block;margin:5px 0}


/* Q3 0.6.2.51 TESTBUILD – visuelle Angleichung an Strickschrift 0.1.61 STABLE.
   Scope nur UI: schwebende Auswahl, Info und Hilfe; keine Chart-SVG-,
   Symbol-, Daten-, Persistenz- oder Exportänderungen. */
.ldck-root .ldck-element-selection-bar__copy strong {font-size:15px;line-height:1.4}
.ldck-root .ldck-element-selection-bar__copy small {font-size:13px;line-height:1.45;color:#59454d}
.ldck-root .ldck-element-selection-bar__action {min-height:44px;font-size:14.5px;line-height:1.4}
.ldck-root .ldck-element-actions {color:#403238;scrollbar-gutter:stable}
.ldck-root .ldck-element-actions__head h3 {font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.ldck-root .ldck-element-actions .ldck-pane-kicker {font-size:12px;line-height:1.4;letter-spacing:.04em;color:#624650}
.ldck-root .ldck-element-actions__section > strong {font-size:16px;line-height:1.4;font-weight:750;color:#49323b}
.ldck-root .ldck-element-actions__section > small,
.ldck-root .ldck-element-actions__section > p {font-size:14.5px;line-height:1.55;color:#58454b;overflow-wrap:break-word}
.ldck-root .ldck-element-actions__subhead {font-size:13.5px;line-height:1.45;color:#58454b;letter-spacing:.025em}
.ldck-root .ldck-element-actions__section,
.ldck-root .ldck-element-actions__section label,
.ldck-root .ldck-element-actions__buttons {min-width:0}
.ldck-root .ldck-element-actions button:not(.ldck-panel-close) {min-height:44px;padding:9px 12px;font-size:14.5px;line-height:1.4;white-space:normal;overflow-wrap:break-word}
.ldck-root .ldck-element-actions__buttons > button {min-width:0}
.ldck-root .ldck-element-actions .ldck-panel-close {flex:0 0 38px;width:38px;height:38px}
.ldck-root [data-ldck-smart-rapport-section] .ldck-field {min-width:0}
.ldck-root [data-ldck-smart-rapport-section] .ldck-field-label {font-size:14px;line-height:1.5;font-weight:650;color:#49383e}
.ldck-root [data-ldck-smart-rapport-section] input,
.ldck-root [data-ldck-smart-rapport-section] select {box-sizing:border-box;width:100%;min-width:0;min-height:44px;font-size:14.5px;line-height:1.4;color:#403238}
.ldck-root [data-ldck-smart-rapport-hint] {font-weight:550}
/* Kontext-Info und vollständige Hilfe. */
.ldck-root .ldck-help-popover__head h3 {font-size:20px;line-height:1.3}
.ldck-root .ldck-help-popover__body p,
.ldck-root .ldck-help-popover p,
.ldck-root .ldck-help-topic p,
.ldck-root .ldck-help-topic ol,
.ldck-root .ldck-help-topic ul,
.ldck-root .ldck-help-quickactions strong,
.ldck-root .ldck-help-quickactions small,
.ldck-root .ldck-help-topic summary,
.ldck-root .ldck-help-more {font-size:14.5px;line-height:1.55;color:#59454d;overflow-wrap:break-word}
.ldck-root .ldck-help-quickactions strong,
.ldck-root .ldck-help-topic summary {color:#7d3f4d;font-weight:750}
.ldck-root .ldck-help-quickactions button,
.ldck-root .ldck-help-more {min-height:44px}
.ldck-root .ldck-help-quickstart h3 {font-size:16px;line-height:1.4}
.ldck-root .ldck-help-drawer__head h2 {font-size:22px;line-height:1.3}
.ldck-root .ldck-help-current-state p,
.ldck-root .ldck-help-conflict-box__intro,
.ldck-root .ldck-help-conflict-choice > p,
.ldck-root .ldck-help-conflict-choice > strong {font-size:14.5px;line-height:1.55;color:#59454d}
.ldck-root .ldck-help-search-result strong {font-size:14.5px;line-height:1.45}
.ldck-root .ldck-help-search-result small,
.ldck-root .ldck-help-search-empty {font-size:14px;line-height:1.5;color:#59454d}
@media (max-width: 520px) {
 .ldck-root .ldck-element-actions {max-height:min(78dvh,640px)}
 .ldck-root .ldck-element-actions__head {padding:13px 12px 11px}
 .ldck-root .ldck-element-actions__body {padding:10px;gap:10px}
 .ldck-root .ldck-element-actions__section {padding:11px}
 .ldck-root .ldck-element-actions__buttons--3 {grid-template-columns:repeat(3,minmax(0,1fr))}
 .ldck-root .ldck-element-actions__section > small {font-size:14px}
 .ldck-root .ldck-help-drawer__scroll {padding:14px 14px 24px}
}
@media (max-width: 360px) {
 .ldck-root .ldck-element-actions__buttons--3 {grid-template-columns:repeat(2,minmax(0,1fr))}
 .ldck-root .ldck-element-actions__buttons--3 button:last-child:nth-child(odd) {grid-column:1 / -1}
}

/* Geführte HilfePilot-Suche und Erklärdialoge analog Strickschrift 0.1.61. */
.ldck-root .ldck-pilot-title {font-size:20px;line-height:1.32}
.ldck-root .ldck-pilot-body {font-size:15.5px;line-height:1.6;font-weight:500;color:#46373d}
.ldck-root .ldck-pilot-tag,
.ldck-root .ldck-pilot-counter,
.ldck-root .ldck-pilot-symbols,
.ldck-root .ldck-pilot-note,
.ldck-root .ldck-pilot-basic-detail small {font-size:14px;line-height:1.5;color:#59454d}
.ldck-root .ldck-pilot-sample,
.ldck-root .ldck-pilot-live-target {font-size:14px;line-height:1.5}
.ldck-root .ldck-pilot-actions button {font-size:14px;line-height:1.4;min-height:44px;white-space:normal}
.ldck-root .ldck-pilot-search-action {font-size:14px;line-height:1.45}
.ldck-root .ldck-pilot-pointer {font-size:14px;line-height:1.4}
@media (max-width:520px) {
 .ldck-root .ldck-pilot-content {padding:15px}
 .ldck-root .ldck-pilot-actions {flex-wrap:wrap}
 .ldck-root .ldck-pilot-actions button {flex:1 1 auto}
}


/* Q3 0.6.2.52 TESTBUILD – durchgängige LESBARKEIT statt Mini-Typografie.
   Nutzerabnahme 17.10.2026: besonders Reihen-Aktionen hatten 11px-Hinweise.
   Adaptiert von der freigegebenen Strickschrift 0.1.61; SVG-Maschensymbole,
   Rastermaß, Funktionsverhalten und Projekt-/Exportdaten werden nicht verändert. */

/* Reihen-Aktionen UND Runden-Aktionen verwenden gemeinsame Aktionszeilen. */
.ldck-root .ldck-row-actions,
.ldck-root .ldck-round-actions {
  box-sizing:border-box;
  width:min(410px,calc(100vw - 24px));
  max-height:min(84dvh,790px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  color:#403238;
}
.ldck-root .ldck-row-actions__head {
  position:sticky;
  top:0;
  z-index:2;
  background:rgba(255,252,250,.995);
  padding:15px 16px 13px;
}
.ldck-root .ldck-row-actions__head h3 {font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.ldck-root .ldck-row-actions .ldck-pane-kicker,
.ldck-root .ldck-round-actions .ldck-pane-kicker {font-size:12px;line-height:1.4;color:#614750;letter-spacing:.04em}
.ldck-root .ldck-row-actions__body,
.ldck-root .ldck-row-actions__more {gap:9px;padding:12px}
.ldck-root .ldck-row-action-button {grid-template-columns:38px minmax(0,1fr);gap:11px;min-height:65px;padding:11px 12px}
.ldck-root .ldck-row-action-button > span:last-child {min-width:0;gap:4px}
.ldck-root .ldck-row-action-button strong {font-size:15px;line-height:1.4;color:#49343d;font-weight:750;overflow-wrap:break-word}
.ldck-root .ldck-row-action-button small {font-size:14px;line-height:1.5;color:#59454d;overflow-wrap:break-word}
.ldck-root .ldck-row-actions__confirm > strong,
.ldck-root .ldck-row-actions__move > strong {font-size:17px;line-height:1.4;color:#49343d}
.ldck-root .ldck-row-actions__confirm p,
.ldck-root .ldck-row-actions__move > p {font-size:14.5px;line-height:1.55;color:#59454d}
.ldck-root .ldck-row-actions__confirm-buttons button,
.ldck-root .ldck-row-move-steps button,
.ldck-root .ldck-row-actions__back {min-height:44px;font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:break-word}
.ldck-root .ldck-row-move-position {font-size:14px;line-height:1.5;color:#49343d}
.ldck-root .ldck-row-move-position input {min-height:44px;font-size:14.5px}
.ldck-root .ldck-row-selection-bar__copy strong {font-size:15px;line-height:1.4;color:#49343d}
.ldck-root .ldck-row-selection-bar__copy small {font-size:13px;line-height:1.45;color:#59454d}
.ldck-root .ldck-row-selection-bar__action {min-height:44px;font-size:14.5px;line-height:1.4}
/* Auch die mobile Runden-Auswahlleiste verwendet die gleichen Klassen. */
.ldck-root .ldck-round-selection-bar .ldck-row-selection-bar__copy strong {font-size:15px}
.ldck-root .ldck-round-selection-bar .ldck-row-selection-bar__copy small {font-size:13px}
.ldck-root .ldck-round-selection-bar .ldck-row-selection-bar__action {min-height:44px;font-size:14px}

/* Reihen-/Rundenfarbe im Aktionsfenster: Legenden und Zurücksetzen. */
.ldck-root .ldck-row-actions .ldck-color-control,
.ldck-root .ldck-round-actions .ldck-color-control {min-width:0;gap:9px;padding:12px}
.ldck-root .ldck-row-actions .ldck-color-control label,
.ldck-root .ldck-round-actions .ldck-color-control label {font-size:15px;line-height:1.4;color:#49343d}
.ldck-root .ldck-row-actions .ldck-color-control small,
.ldck-root .ldck-round-actions .ldck-color-control small {flex-basis:100%;font-size:14px;line-height:1.55;color:#59454d;overflow-wrap:break-word}
.ldck-root .ldck-row-actions .ldck-color-control button,
.ldck-root .ldck-round-actions .ldck-color-control button {min-height:44px;font-size:14px;line-height:1.4}
.ldck-root .ldck-row-actions .ldck-color-trigger__code,
.ldck-root .ldck-round-actions .ldck-color-trigger__code {font-size:13.5px;line-height:1.4}

/* Runden-Einrichtung und Runden-Hinzufügen. */
.ldck-root .ldck-round-setup,
.ldck-root .ldck-round-add-dialog {box-sizing:border-box;max-height:calc(100dvh - 28px);overflow-y:auto}
.ldck-root .ldck-round-setup__head h3 {font-size:20px;line-height:1.35}
.ldck-root .ldck-round-setup__head .ldck-pane-kicker {font-size:12px;line-height:1.4}
.ldck-root .ldck-round-type-options legend {font-size:15px;line-height:1.4}
.ldck-root .ldck-round-type-options strong {font-size:15px;line-height:1.4;color:#49343d}
.ldck-root .ldck-round-type-options small {font-size:14px;line-height:1.5;color:#59454d}
.ldck-root .ldck-round-type-options label {min-height:55px}
.ldck-root .ldck-round-setup__hint,
.ldck-root .ldck-round-setup__preview {font-size:14px;line-height:1.55;color:#59454d}
.ldck-root .ldck-round-setup__body button,
.ldck-root .ldck-round-add-dialog button {min-height:44px;font-size:14px;line-height:1.45}
.ldck-root .ldck-round-subsection-head strong {font-size:15px;line-height:1.4}
.ldck-root .ldck-round-subsection-head small {font-size:14px;line-height:1.5;color:#59454d}

/* Seitenleiste, Hauptwerkzeuge, Projektzeile: keine 10–12px-Erläuterungen. */
.ldck-root .ldck-toolbar-label,
.ldck-root .ldck-editor-toolbar--compact .ldck-toolbar-label,
.ldck-root .ldck-pane-kicker,
.ldck-root .ldck-inspector-label,
.ldck-root .ldck-right-palette .ldck-inspector-label,
.ldck-root .ldck-right-palette .ldck-pane-kicker,
.ldck-root .ldck-right-palette .ldck-palette-search > span,
.ldck-root .ldck-project-strip__identity span {font-size:13px;line-height:1.4;color:#59454d}
.ldck-root .ldck-worktool > span:last-child,
.ldck-root .ldck-toolbar-action,
.ldck-root .ldck-view-action,
.ldck-root .ldck-project-toolbar-button,
.ldck-root .ldck-palette-tab,
.ldck-root .ldck-right-palette .ldck-palette-tab {font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:break-word}
.ldck-root .ldck-status,
.ldck-root .ldck-toast {font-size:14px;line-height:1.5}
.ldck-root .ldck-right-palette .ldck-palette-section-head strong,
.ldck-root .ldck-right-palette .ldck-palette-category > summary,
.ldck-root .ldck-right-palette .ldck-symbol-list--palette .ldck-symbol-name,
.ldck-root .ldck-right-palette .ldck-group-list--palette .ldck-group-name {font-size:14px;line-height:1.45}
.ldck-root .ldck-right-palette .ldck-palette-section-head span,
.ldck-root .ldck-right-palette .ldck-palette-category > summary > span:last-child,
.ldck-root .ldck-right-palette .ldck-symbol-list--palette .ldck-symbol-short,
.ldck-root .ldck-right-palette .ldck-group-list--palette .ldck-group-short {font-size:12.5px;line-height:1.45;color:#604953;overflow-wrap:anywhere}
.ldck-root .ldck-right-palette .ldck-palette-empty,
.ldck-root .ldck-right-palette .ldck-palette-settings .ldck-display-option,
.ldck-root .ldck-right-palette .ldck-palette-coming span,
.ldck-root .ldck-panel-intro,
.ldck-root .ldck-field-label,
.ldck-root .ldck-display-option,
.ldck-root .ldck-inspector-card p,
.ldck-root .ldck-property-list dt,
.ldck-root .ldck-property-list dd,
.ldck-root .ldck-inspector-card strong {font-size:14px;line-height:1.5;color:#59454d}
.ldck-root .ldck-inspector-card strong {color:#7d3f4d;font-weight:750}
.ldck-root .ldck-inspector-delete,
.ldck-root .ldck-inspector .ldck-reset-button,
.ldck-root .ldck-right-palette .ldck-setup-grid--palette .ldck-primary-button {min-height:44px;font-size:14px;line-height:1.4}
.ldck-root .ldck-popover-head strong {font-size:16px;line-height:1.4}
.ldck-root .ldck-popover-head small {font-size:14px;line-height:1.5;color:#59454d}
.ldck-root .ldck-palette-settings .ldck-display-option {font-size:14px;line-height:1.5}

/* Export-/Projekt-Fenster und globaler Farbdialog. */
.ldck-root .ldck-export-menu__head strong,
.ldck-root .ldck-export-option strong {font-size:15px;line-height:1.45}
.ldck-root .ldck-export-menu__head small,
.ldck-root .ldck-export-option small,
.ldck-root .ldck-export-field,
.ldck-root .ldck-export-field small,
.ldck-root .ldck-export-field input,
.ldck-root .ldck-export-field select,
.ldck-root .ldck-export-field textarea {font-size:14px;line-height:1.5;color:#59454d}
.ldck-root .ldck-export-field input,
.ldck-root .ldck-export-field select {min-height:44px}
.ldck-root .ldck-project-dialog__intro,
.ldck-root .ldck-project-dialog > p,
.ldck-root .ldck-project-library__head p,
.ldck-root .ldck-project-field > small,
.ldck-root .ldck-project-library__notice,
.ldck-root .ldck-project-library__tabs span {font-size:14px;line-height:1.5;color:#59454d}
.ldck-root .ldck-project-dialog__actions button,
.ldck-root .ldck-project-library__tabs button {min-height:44px;font-size:14px;line-height:1.4}
.ldck-color-dialog {font-size:15px;line-height:1.55}
.ldck-color-dialog h3 {font-size:21px;line-height:1.35}
.ldck-color-dialog label,
.ldck-color-dialog p {font-size:15px;line-height:1.5;color:#49383e}
.ldck-color-dialog-actions button {min-height:44px;font-size:14px;line-height:1.4}
.ldck-color-dialog-status {font-size:14px;line-height:1.5}
.ldck-color-slot {min-height:66px;font-size:12px;line-height:1.3}

/* Kleinere Viewports: mehr Zeilen und kontrolliertes Scrollen statt Mini-Schrift. */
@media(max-width:700px) {
 .ldck-root .ldck-row-actions,
 .ldck-root .ldck-round-actions {left:12px!important;right:12px;top:auto!important;bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-height:min(76dvh,610px);overflow-y:auto}
 .ldck-root .ldck-row-action-button {min-height:66px}
 .ldck-root .ldck-row-actions__confirm-buttons {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px) {
 .ldck-root .ldck-toolbar-action,
 .ldck-root .ldck-worktool > span:last-child,
 .ldck-root .ldck-project-toolbar-button,
 .ldck-root .ldck-view-action {font-size:13.5px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
 .ldck-root .ldck-row-actions__body,
 .ldck-root .ldck-row-actions__more {padding:10px;gap:8px}
 .ldck-root .ldck-row-action-button {padding:10px;gap:9px;grid-template-columns:34px minmax(0,1fr)}
 .ldck-root .ldck-row-action-button strong {font-size:14.5px}
 .ldck-root .ldck-row-action-button small {font-size:14px}
 .ldck-root .ldck-color-control--panel {padding:10px}
 .ldck-root .ldck-round-setup__body {padding:13px;gap:11px}
 .ldck-root .ldck-round-setup__head {padding:13px}
 .ldck-root .ldck-round-setup__head h3 {font-size:19px}
 .ldck-color-dialog {padding:16px}
 .ldck-color-slot {font-size:12.5px}
}
@media(max-width:360px) {
 .ldck-root .ldck-row-actions__confirm-buttons {grid-template-columns:minmax(0,1fr)}
 .ldck-root .ldck-row-actions__head {padding:11px}
 .ldck-root .ldck-row-action-button {grid-template-columns:30px minmax(0,1fr)}
}

/* Q3 0.6.2.53: Rapport-Fehlgrund im sichtbaren Auswahlfenster. */
.ldck-root [data-ldck-smart-rapport-hint].is-error {
  color: #8c2d38; font-weight: 650;
  display: block; padding: 9px 11px;
  border: 1px solid rgba(140,45,56,.24);
  border-radius: 9px; background: #fff3f3;
}

/* 0.6.2.171 – Bestätigungen müssen auch über dem Farbeditor (z-index:2147483640)
   stehen. Gleiche Dialog-Ebenenfolge wie in der Strickschrift. */
.ldck-root .ldck-decision-modal:not([hidden]){z-index:2147483645}
.ldck-root .ldck-decision-dialog{width:min(510px,100%);box-sizing:border-box}
.ldck-root .ldck-decision-dialog h2{font-size:19px;line-height:1.35;margin:.25rem 38px .7rem 0}
.ldck-root .ldck-decision-dialog [data-ldck-decision-text]{font-size:15.5px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
.ldck-root .ldck-decision-dialog .ldck-project-dialog__actions button{min-height:44px;font-size:14px}
@media(max-width:480px){.ldck-root .ldck-decision-dialog .ldck-project-dialog__actions{flex-wrap:wrap}.ldck-root .ldck-decision-dialog .ldck-project-dialog__actions button{flex:1 1 130px}}

/* 0.6.2.157 – Bestätigungsdialog: kurze Abbruchaktion kompakt,
   längere Fortsetzenaktion bekommt Platz für eine ruhige einzeilige Beschriftung.
   Nur dieser Dialog; übrige Projekt- und Aktionsbuttons bleiben unverändert. */
.ldck-root .ldck-decision-dialog .ldck-project-dialog__actions > button{
  box-sizing:border-box;
  width:auto;
  min-width:0;
  text-align:center;
}
.ldck-root .ldck-decision-dialog .ldck-project-dialog__actions > [data-ldck-decision-cancel]{flex:0 0 36%}
.ldck-root .ldck-decision-dialog .ldck-project-dialog__actions > [data-ldck-decision-accept]{flex:1 1 0}
@media(max-width:340px){
  .ldck-root .ldck-decision-dialog .ldck-project-dialog__actions > [data-ldck-decision-cancel]{flex:1 1 100%}
  .ldck-root .ldck-decision-dialog .ldck-project-dialog__actions > [data-ldck-decision-accept]{flex:1 1 100%}
}

/* 0.6.2.213 – brand-coloured warning presentation, exclusively for protected
   staggered/hexagon grid changes; all other shared decision dialogs stay as-is. */
.ldck-root .ldck-decision-modal--grid-safety .ldck-decision-dialog{
  position:relative;
  border:1px solid var(--ldck-accent,#D9A6A0);
  background:linear-gradient(180deg,#fff7f5 0%,#fffdfc 84%);
  box-shadow:0 25px 75px rgba(77,34,45,.29);
}
.ldck-root .ldck-decision-modal--grid-safety .ldck-decision-dialog::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:9px;
  background:linear-gradient(90deg,var(--ldck-primary,#7D3F4D) 0%,#a76b77 60%,var(--ldck-accent,#D9A6A0) 100%);
  pointer-events:none;
}
.ldck-root .ldck-decision-modal--grid-safety .ldck-decision-dialog h2{
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--ldck-primary,#7D3F4D);
  padding-top:9px;
}
.ldck-root .ldck-decision-modal--grid-safety .ldck-decision-dialog h2::before{
  content:"!";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 29px;
  width:29px;
  height:29px;
  border-radius:50%;
  background:var(--ldck-primary,#7D3F4D);
  color:#fff;
  font-size:19px;
  font-weight:800;
  line-height:1;
}
.ldck-root .ldck-decision-modal--grid-safety .ldck-decision-dialog [data-ldck-decision-text]{
  color:#55444a;
}
.ldck-root .ldck-decision-modal--grid-safety .ldck-decision-dialog [data-ldck-decision-accept]{
  color:#fff;
  background:var(--ldck-primary,#7D3F4D);
  border:1px solid var(--ldck-primary,#7D3F4D);
  font-weight:700;
}
.ldck-root .ldck-decision-modal--grid-safety .ldck-decision-dialog [data-ldck-decision-accept]:hover,
.ldck-root .ldck-decision-modal--grid-safety .ldck-decision-dialog [data-ldck-decision-accept]:focus-visible{
  background:#63313d;
  border-color:#63313d;
  box-shadow:0 0 0 3px rgba(125,63,77,.22);
}

/* Q3 0.6.2.56: Druckmodus-Auswahl im Export-Popover */
.ldck-root .ldck-pdf-choice{border:1px solid #dfc8cb;border-radius:10px;margin:12px 0;padding:10px 12px;background:#fffaf9;min-width:0}
.ldck-root .ldck-pdf-choice legend{font-size:15px;font-weight:700;color:#7D3F4D;padding:0 6px}
.ldck-root .ldck-pdf-choice label{display:flex;align-items:flex-start;gap:10px;padding:9px 4px;cursor:pointer;line-height:1.4;font-size:14px;font-weight:650;color:#43363b}
.ldck-root .ldck-pdf-choice label+label{border-top:1px solid #eadcdd}
.ldck-root .ldck-pdf-choice input[type=radio]{width:19px;height:19px;min-width:19px;margin:1px 0 0;accent-color:#7D3F4D}
.ldck-root .ldck-pdf-choice label span{min-width:0}
.ldck-root .ldck-pdf-choice small{display:block;font-size:13px;font-weight:400;line-height:1.45;color:#59454d;padding-top:3px}

.ldck-root .ldck-export-menu{max-height:min(82vh,700px);overflow-y:auto;overscroll-behavior:contain}

/* 0.6.2.120 TESTBUILD – Exportfenster passend zum sichtbaren Viewport.
   Die Auswahl bleibt lesbar und "Als PDF ausgeben" kann unter der
   Druckaufteilung erreicht werden, auch bei kleineren Bildschirmhöhen. */
.ldck-root .ldck-export-menu.ldck-export-menu--above {
  top: auto;
  bottom: calc(100% + 8px);
}
.ldck-root .ldck-pdf-choice {
  margin-top: 8px;
  margin-bottom: 5px;
  padding-top: 8px;
  padding-bottom: 7px;
}
.ldck-root .ldck-pdf-choice label { padding-top: 7px; padding-bottom: 7px; }


/* Q3 0.6.2.62 – Export-Popover: kein horizontaler Scrollbalken.
   Auf Desktop erbt das Popover sonst das white-space: nowrap der
   Toolbar-Aktionen. Nur die Textumbrueche im Exportfenster zuruecksetzen. */
.ldck-root .ldck-export-menu {
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  overflow-x: hidden;
  overflow-y: auto;
}
/* 0.6.2.216: The PDF option can scroll 40px above the bottom edge.
   Keep the established compact export palette, without an extra popup. */
.ldck-root .ldck-export-menu { padding-bottom: 48px; }

/* Matching the knitting editor's accessible burgundy export switch. */
.ldck-root .ldck-export-grid-setting {
  margin: 0 6px 9px;
  border: 1px solid rgba(125,63,77,.2);
  border-radius: 10px;
  background: #fff8f5;
}
.ldck-root .ldck-export-grid-setting__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  padding: 9px 10px;
  cursor: pointer;
}
.ldck-root .ldck-export-grid-setting__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ldck-root .ldck-export-grid-setting__copy strong {
  font-size: 12px;
  line-height: 1.35;
  color: var(--ldck-text);
}
.ldck-root .ldck-export-grid-setting__copy small {
  font-size: 10px;
  line-height: 1.35;
  color: var(--ldck-muted);
}
.ldck-root .ldck-export-grid-setting input[role="switch"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  margin: 0;
  position: relative;
  border: 1px solid #b89da4;
  border-radius: 999px;
  background: #d9cbd0;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ldck-root .ldck-export-grid-setting input[role="switch"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(44,29,34,.2);
  transition: transform .15s ease;
}
.ldck-root .ldck-export-grid-setting input[role="switch"]:checked {
  background: var(--ldck-primary);
  border-color: var(--ldck-primary);
}
.ldck-root .ldck-export-grid-setting input[role="switch"]:checked::before { transform: translateX(18px); }
.ldck-root .ldck-export-grid-setting input[role="switch"]:focus-visible { outline: 3px solid rgba(125,63,77,.35); outline-offset: 3px; }
.ldck-root .ldck-export-menu__head,
.ldck-root .ldck-export-project-fields,
.ldck-root .ldck-export-field,
.ldck-root .ldck-export-option,
.ldck-root .ldck-export-option > span:last-child,
.ldck-root .ldck-pdf-choice,
.ldck-root .ldck-pdf-choice label,
.ldck-root .ldck-pdf-choice label > span {
  min-width: 0;
  max-width: 100%;
}
.ldck-root .ldck-export-menu__head small,
.ldck-root .ldck-export-field > span,
.ldck-root .ldck-export-option > span:last-child,
.ldck-root .ldck-export-option small,
.ldck-root .ldck-pdf-choice label > span,
.ldck-root .ldck-pdf-choice small {
  white-space: normal;
  overflow-wrap: break-word;
}


/* M1.1 – Zähler in eigenem Fenster; der Chart bleibt vollständig bedienbar. */
.ldck-root .ldck-stitch-counter {
  display:block;box-sizing:border-box;position:fixed;left:12px;top:12px;z-index:10036;
  width:min(395px,calc(100vw - 24px));max-height:min(74dvh,650px);
  overflow-x:hidden;overflow-y:auto;min-width:0;
  border:1px solid #dcc5ca;border-radius:16px;background:#fffcfa;
  box-shadow:0 18px 50px rgba(67,40,50,.22);color:#403238;
}
.ldck-root .ldck-stitch-counter[hidden]{display:none!important;}
.ldck-root .ldck-stitch-counter__head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  position:sticky;top:0;z-index:1;padding:12px 14px;
  background:#fff8f6;border-bottom:1px solid #eadbd6;
  cursor:grab;touch-action:none;user-select:none;
}
.ldck-root .ldck-stitch-counter__head:active{cursor:grabbing;}
.ldck-root .ldck-stitch-counter__head-text{display:grid;gap:2px;min-width:0;}
.ldck-root .ldck-stitch-counter__head-text strong{font-size:17px;line-height:1.35;color:#7d3f4d;}
.ldck-root .ldck-stitch-counter__head-text span{font-size:13px;line-height:1.4;color:#745b62;}
.ldck-root .ldck-stitch-counter__close{
  min-width:44px;min-height:44px;border:1px solid #dec7cc;border-radius:10px;
  background:#fff;color:#7d3f4d;font-size:26px;line-height:1;cursor:pointer;flex-shrink:0;
}
.ldck-root .ldck-stitch-counter__close:hover,
.ldck-root .ldck-stitch-counter__close:focus-visible{background:#f7e9ea;outline:2px solid #d9a6a0;}
.ldck-root .ldck-counter-toggle[aria-expanded="true"]{background:#f8edf0;border-color:#b88b98;}
.ldck-root .ldck-stitch-counter .ldck-property-list{margin:8px 0;}
.ldck-root .ldck-stitch-counter .ldck-property-list>div{display:flex;justify-content:space-between;gap:10px;}
.ldck-root .ldck-stitch-counter .ldck-property-list dd{margin:0;text-align:right;}
.ldck-root .ldck-stitch-counter__content {display:grid;gap:12px;padding:14px;min-width:0;}
.ldck-root .ldck-stitch-counter__intro,.ldck-root .ldck-stitch-counter__note {font-size:12px;line-height:1.5;color:#655158;margin:0;white-space:normal;overflow-wrap:anywhere;}
.ldck-root .ldck-stitch-counter__result {background:#fffaf8;padding:10px;border:1px solid #eadbd6;border-radius:10px;min-width:0;}
.ldck-root .ldck-stitch-counter__result[hidden],.ldck-root [data-ldck-count-unit-wrap][hidden],.ldck-root .ldck-stitch-counter__result .ldck-property-list[hidden] {display:none!important;}
.ldck-root .ldck-stitch-counter__heading {font-size:14px;display:block;color:#7d3f4d;}
.ldck-root .ldck-stitch-counter__types {display:grid;gap:4px;margin:9px 0 0;padding:0;list-style:none;}
.ldck-root .ldck-stitch-counter__types li {display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:4px 0;border-top:1px solid #f0e7e2;font-size:13px;color:#57434a;}
.ldck-root .ldck-stitch-counter__types li span {overflow-wrap:anywhere;min-width:0;}
.ldck-root .ldck-stitch-counter__types li strong {color:#7d3f4d;flex:0 0 auto;}
.ldck-root .ldck-stitch-counter__caution {font-size:12px;line-height:1.45;color:#754651;background:#f9efec;padding:8px;border-radius:8px;margin:10px 0 0;overflow-wrap:anywhere;}
.ldck-root .ldck-stitch-counter__caution[hidden] {display:none!important;}
.ldck-root .ldck-stitch-counter .ldck-property-list>div {align-items:flex-start;}
.ldck-root .ldck-stitch-counter .ldck-property-list dt {max-width:68%;line-height:1.45;}
.ldck-root .ldck-stitch-counter select {width:100%;min-width:0;}


@media (max-width:900px){
  .ldck-root .ldck-stitch-counter:not([hidden]){
    inset:auto 0 0 0!important;width:100%!important;max-width:none!important;
    top:auto!important;left:0!important;bottom:0!important;
    max-height:min(76dvh,700px);border-radius:18px 18px 0 0;
    border-bottom:0;box-shadow:0 -12px 35px rgba(67,40,50,.2);
  }
  .ldck-root .ldck-stitch-counter__head{cursor:default;touch-action:auto;}
}
@media (max-width:520px){
  .ldck-root .ldck-counter-toggle{flex:1 1 auto;min-height:44px;font-size:13.5px;}
  .ldck-root .ldck-stitch-counter__content{padding:12px;}
}

/* Kontext-Hilfe muss vor allen normalen Arbeitsfenstern liegen: auch vor den
   Runden-Aktionen (10070), aus denen sie über das kleine i geöffnet wird. */
.ldck-root .ldck-help-popover:not([hidden]){z-index:10075;}
.ldck-root .ldck-help-backdrop:not([hidden]){z-index:10075;}
.ldck-root .ldck-help-drawer:not([hidden]){z-index:10076;}


/* 0.6.2.67 TESTBUILD – kompakte Desktop-Oberfläche (kein Funktionsverlust)
   3 Bereiche: Projekt+Editor / Werkzeuge / Arbeitsbereich inkl. Ansicht.
   Mobil und schmale Fenster behalten ihre sicherere Umbruchstruktur. */
.ldck-root .ldck-compact-topbar { min-width:0; margin:0 0 8px; }
.ldck-root .ldck-compact-topbar .ldck-sectionhead--editor { margin-bottom:7px; align-items:center; }
.ldck-root .ldck-compact-topbar .ldck-editor-headline { margin-bottom:0; }
.ldck-root .ldck-compact-topbar .ldck-editor-head-text h2 { display:none; }
.ldck-root .ldck-compact-topbar .ldck-project-strip {
  margin:0; min-width:0; padding:6px 10px; gap:10px;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__controls { flex-wrap:wrap; gap:7px; }
.ldck-root .ldck-compact-topbar .ldck-project-toolbar-actions { flex-wrap:nowrap; }
.ldck-root .ldck-compact-topbar .ldck-project-save-status { font-size:11px; }
.ldck-root .ldck-controls-collapse {
  flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
  gap:5px; min-height:38px; padding:5px 9px; cursor:pointer; font:inherit;
  font-size:12px; font-weight:700; color:#7D3F4D; white-space:nowrap;
  background:#fff; border:1px solid #dfcac8; border-radius:10px;
}
.ldck-root .ldck-controls-collapse:hover, .ldck-root .ldck-controls-collapse:focus-visible {
  border-color:#7D3F4D; background:#f7e9e6; outline-offset:2px;
}
.ldck-root .ldck-controls-collapse__icon { font-size:18px; line-height:1; }
.ldck-root .ldck-toolbar-collapsed .ldck-controls-collapse__icon { transform:rotate(180deg); }
@media (min-width:1580px) {
  .ldck-root .ldck-compact-topbar { display:grid; grid-template-columns:minmax(510px,1fr) auto; align-items:center; gap:14px; }
  .ldck-root .ldck-compact-topbar .ldck-sectionhead--editor { margin:0; min-width:0; }
  .ldck-root .ldck-compact-topbar .ldck-sectionhead--editor > .ldck-editor-header-actions { gap:8px; }
  .ldck-root .ldck-compact-topbar .ldck-editor-header-actions > .ldck-project-help-search { width:225px; min-width:170px; flex-basis:225px; }
  .ldck-root .ldck-compact-topbar .ldck-header-fullscreen { padding-inline:10px; }
  .ldck-root .ldck-compact-topbar .ldck-project-strip { background:#fffaf8; }
  .ldck-root .ldck-compact-topbar .ldck-project-strip__controls { flex-wrap:nowrap; }
}
/* The view bar lives inside the canvas head; no duplicate separate row. */
.ldck-root .ldck-canvas-head--compact {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px;
  min-height:52px; padding:6px 12px;
}
.ldck-root .ldck-canvas-head--compact > div:first-child { flex:0 1 auto; min-width:120px; }
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar {
  display:flex; flex:1 1 485px; min-width:0; align-items:center; flex-wrap:wrap;
  gap:6px; min-height:40px; padding:0; border:0; border-radius:0; background:transparent;
}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar__label { display:none; }
.ldck-root .ldck-canvas-head--compact .ldck-view-zoom {
  display:grid; flex:1 1 280px; min-width:180px;
  grid-template-columns:38px minmax(70px,1fr) 38px 68px; gap:4px;
}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-zoom-step-button { min-width:38px; width:38px; height:38px; }
.ldck-root .ldck-canvas-head--compact .ldck-zoom-range { width:100%; min-width:0; }
.ldck-root .ldck-canvas-head--compact .ldck-zoom-value { width:68px; min-width:68px; height:38px; }
.ldck-root .ldck-canvas-head--compact .ldck-view-action { min-height:38px; }
.ldck-root .ldck-canvas-head--compact .ldck-canvas-badge { margin-left:auto; }
.ldck-root .ldck-sticky-tools--040 { margin-bottom:8px; padding:4px; }
.ldck-root .ldck-editor-toolbar--040 { padding:6px 8px; }
/* Collapsed: chart viewing tools remain; project/save/status and fullscreen exit remain. */
.ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-sticky-tools--040 { display:none!important; }
@media (max-width:800px) {
  .ldck-root .ldck-compact-topbar .ldck-project-strip { flex-wrap:wrap; }
  .ldck-root .ldck-compact-topbar .ldck-project-strip__controls { width:100%; justify-content:space-between; }
  .ldck-root .ldck-compact-topbar .ldck-project-toolbar-actions { flex-wrap:wrap; }
  .ldck-root .ldck-canvas-head--compact { gap:8px; }
  .ldck-root .ldck-canvas-head--compact .ldck-view-toolbar { flex:1 1 100%; }
  .ldck-root .ldck-canvas-head--compact .ldck-view-zoom { flex:1 1 100%; }
}
@media (max-width:420px) {
  .ldck-root .ldck-canvas-head--compact .ldck-view-action { flex:1 1 calc(50% - 6px); padding-inline:5px; }
  .ldck-root .ldck-compact-topbar .ldck-controls-collapse { padding-inline:6px; }
}

/* Keep existing neutral button language after moving View into canvas head. */
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-zoom-step-button,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-zoom-value,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action {
  min-height:38px; border:1px solid var(--ldck-border); border-radius:10px;
  background:#fff; color:var(--ldck-primary); box-shadow:none;
}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-zoom-step-button:hover,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-zoom-step-button:focus-visible,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-zoom-value:hover,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-zoom-value:focus-visible,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action:hover,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action:focus-visible {
  border-color:var(--ldck-accent); background:var(--ldck-soft); outline-offset:2px;
}
.ldck-root .ldck-editor-card--wide {box-sizing:border-box; width:100%;}
.ldck-root .ldck-compact-topbar, .ldck-root .ldck-compact-topbar .ldck-project-strip {box-sizing:border-box;max-width:100%;}


/* 0.6.2.68 TESTBUILD – semantische Kopfzeile, eindeutige Aktionen, klare Chart-Buttons.
   Projekt zuerst im DOM; Hilfe/Vollbild/Leistenschalter folgen rechts.
   Kein Button und kein Werkzeug wird dupliziert oder aus dem Editor entfernt. */
.ldck-root .ldck-compact-topbar {box-sizing:border-box;display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;}
.ldck-root .ldck-compact-topbar .ldck-project-strip {order:0;flex:1 1 620px;justify-content:flex-start;gap:14px;background:transparent;border:0;padding:5px 8px;margin:0;}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity {flex:0 1 auto;align-items:center;gap:8px;max-width:min(35vw,340px);}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity strong {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.3;}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity > .ldck-status {letter-spacing:normal;text-transform:none;font-size:12px;line-height:1.4;flex-shrink:0;}
.ldck-root .ldck-compact-topbar .ldck-project-strip__controls {gap:8px;flex:1 1 auto;justify-content:flex-start;margin:0;min-width:0;}
.ldck-root .ldck-compact-topbar .ldck-project-toolbar-actions {gap:6px;}
.ldck-root .ldck-compact-topbar .ldck-project-save-status {font-size:12px;line-height:1.4;}
.ldck-root .ldck-compact-topbar .ldck-sectionhead--editor {order:1;flex:0 0 auto;min-width:0;display:flex;align-items:center;margin:0;gap:0;}
.ldck-root .ldck-compact-topbar .ldck-sectionhead--editor > .ldck-editor-head-text {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;margin:0;padding:0;}
.ldck-root .ldck-compact-topbar .ldck-sectionhead--editor .ldck-visually-hidden-title {display:block;}
.ldck-root .ldck-compact-topbar .ldck-sectionhead--editor > .ldck-editor-header-actions {display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;margin:0;flex:0 1 auto;}
.ldck-root .ldck-compact-topbar .ldck-editor-header-actions > .ldck-project-help-search {flex:0 1 225px;width:225px;min-width:175px;max-width:225px;}
.ldck-root .ldck-compact-topbar .ldck-header-fullscreen {min-height:44px;padding:8px 12px;font-size:14px;}
.ldck-root .ldck-compact-topbar .ldck-controls-collapse {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:152px;padding:8px 12px;font-size:14px;font-weight:700;white-space:nowrap;}
.ldck-root .ldck-compact-topbar .ldck-controls-collapse__icon {display:block;flex:0 0 22px;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease;transform-origin:50% 50%;}
.ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-controls-collapse__icon {transform:rotate(180deg);}
@media(min-width:1500px){
  .ldck-root .ldck-compact-topbar {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;}
  .ldck-root .ldck-compact-topbar .ldck-project-strip {min-width:0;flex-wrap:nowrap;}
  .ldck-root .ldck-compact-topbar .ldck-project-strip__controls {flex-wrap:nowrap;}
  .ldck-root .ldck-compact-topbar .ldck-project-strip__identity {flex:0 1 auto;min-width:120px;max-width:280px;}
}
@media(max-width:1499px){
  .ldck-root .ldck-compact-topbar .ldck-project-strip {flex:1 1 100%;flex-wrap:wrap;}
  .ldck-root .ldck-compact-topbar .ldck-sectionhead--editor {flex:1 1 100%;}
  .ldck-root .ldck-compact-topbar .ldck-sectionhead--editor > .ldck-editor-header-actions {width:100%;justify-content:flex-end;}
}
@media(max-width:760px){
  .ldck-root .ldck-compact-topbar .ldck-project-strip__identity {flex-wrap:wrap;max-width:100%;}
  .ldck-root .ldck-compact-topbar .ldck-project-strip__controls {width:100%;justify-content:flex-start;flex-wrap:wrap;}
  .ldck-root .ldck-compact-topbar .ldck-sectionhead--editor > .ldck-editor-header-actions {flex-wrap:wrap;justify-content:flex-start;}
  .ldck-root .ldck-compact-topbar .ldck-editor-header-actions > .ldck-project-help-search {flex:1 1 180px;width:auto;min-width:155px;max-width:100%;}
  .ldck-root .ldck-compact-topbar .ldck-controls-collapse {min-width:0;}
}
/* Header geometry is intentionally the same before and after collapsing.
   Only the tool strip is hidden; project/search/fullscreen stay anchored. */
/* Accent buttons: prominence without overwhelming the slider or rest of controls. */
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-fit-all],
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-counter-toggle] {
  min-height:44px;min-width:142px;padding:9px 15px;font-size:15px;font-weight:700;line-height:1.3;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;
  border-radius:11px;box-shadow:none;cursor:pointer;
}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-fit-all] {background:#fff9f9;border:1.5px solid #7D3F4D;color:#7D3F4D;}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-counter-toggle] {background:#7D3F4D;border:1.5px solid #7D3F4D;color:#fff;}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-fit-all]:hover,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-fit-all]:focus-visible {background:#f5e6e9;border-color:#62303d;outline:2px solid #e2bdc5;outline-offset:1px;}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-counter-toggle]:hover,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-counter-toggle]:focus-visible,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-counter-toggle][aria-expanded="true"] {background:#62303d;border-color:#62303d;color:#fff;outline:2px solid #e2bdc5;outline-offset:1px;}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-fit-all] > span:first-child,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-counter-toggle] > span:first-child {font-size:18px;line-height:1;}
@media(max-width:420px){.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-fit-all],.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-counter-toggle] {flex:1 1 100%;min-width:0;white-space:normal;}}
/* Statuschip remains compact beside the project title, including longer status text. */
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity > .ldck-status {box-sizing:border-box;min-height:32px;height:auto;padding:5px 10px;align-self:center;}


/* The help search keeps its ordinary width in both toolbar states. */
/* Primär-Aktionsfarbe entspricht „Vollbild beenden“ / „Setzen“.
   WordPress-/Theme-Styles dürfen die Beschriftung nicht dunkel überlagern. */
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar button.ldck-view-action[data-ldck-counter-toggle] {
  background:#7D3F4D;
  border-color:#7D3F4D;
  color:#fff;
}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar button.ldck-view-action[data-ldck-counter-toggle] > span {
  color:#fff !important;
  font-size:15px;
  font-weight:700;
  line-height:1.25;
}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar button.ldck-view-action[data-ldck-counter-toggle] > span:first-child {
  font-size:18px;
}
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar button.ldck-view-action[data-ldck-counter-toggle]:hover,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar button.ldck-view-action[data-ldck-counter-toggle]:focus-visible,
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar button.ldck-view-action[data-ldck-counter-toggle][aria-expanded="true"] {
  background:#65333f;
  border-color:#65333f;
  color:#fff;
}
/* Sekundärfunktion „Alles anzeigen“ bleibt optisch weiß. */
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar button.ldck-view-action[data-ldck-fit-all] {
  background:#fff;
  color:#7D3F4D;
}


/* 0.6.2.71 – Project title must stay legible after dynamic status/Undo messages.
   Never force it into a one-character-wide flex slot; instead allow status and
   project controls to wrap as complete controls on narrow viewports. */
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity,
.ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-project-strip__identity {
  flex:0 0 auto;
  min-width:0;
  max-width:100%;
  flex-wrap:wrap;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity > strong {
  flex:0 1 auto;
  min-width:120px;
  max-width:min(240px, 25vw);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  overflow-wrap:normal;
  word-break:normal;
  line-height:1.3;
}
@media (min-width:1500px) {
  .ldck-root .ldck-compact-topbar .ldck-project-strip {flex-wrap:wrap;}
  .ldck-root .ldck-compact-topbar .ldck-project-strip__controls {flex-wrap:wrap;}
}
@media (max-width:760px) {
  .ldck-root .ldck-compact-topbar .ldck-project-strip__identity > strong {
    min-width:100px;
    max-width:min(220px, 52vw);
  }
}

/* R1 · Rasterformen: Einstellungen innerhalb der bestehenden Arbeitsflächen-Palette. */
.ldck-r1-grid-field { margin-top: 12px; }
.ldck-r1-grid-field .ldck-field-label { display:flex; align-items:center; gap:8px; }
.ldck-r1-grid-note { font-size:12px; line-height:1.45; color:var(--ldck-muted, #735d67); margin: 5px 0 8px; }

/* 0.6.2.210: independently recognisable grid-shape settings card in the palette. */
.ldck-root .ldck-grid-shape-card {
  box-sizing: border-box;
  min-width: 0;
  margin: 14px 0 12px;
  padding: 12px;
  border: 1.5px solid rgba(136, 65, 80, .45);
  border-left: 4px solid var(--ldck-primary, #824257);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf8 0%, #f9eeeb 100%);
  box-shadow: 0 2px 8px rgba(97, 49, 58, .08);
}
.ldck-root .ldck-grid-shape-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.ldck-root .ldck-grid-shape-card__head strong {
  min-width: 0;
  color: var(--ldck-primary, #824257);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}
.ldck-root .ldck-grid-shape-card .ldck-r1-grid-field { margin-top: 0; }
.ldck-root .ldck-grid-shape-card .ldck-field select { width: 100%; max-width: 100%; }
.ldck-root .ldck-grid-shape-card .ldck-display-option { margin-top: 8px; }
.ldck-root .ldck-grid-shape-card .ldck-r1-grid-note:last-child { margin-bottom: 0; }
.ldck-root .ldck-grid-shape-card:focus-within {
  border-color: var(--ldck-primary, #824257);
  box-shadow: 0 0 0 2px rgba(136, 65, 80, .10);
}


/* 0.6.2.75 R1 UX: actionable, readable feedback for smart rapports.
   Fixed positioning follows the visible viewport, not the document or chart scroll.
   Warnings stay dismissible; status never blocks the canvas or its tools. */
.ldck-root .ldck-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: max-content;
  max-width: min(calc(100vw - 32px), 520px);
  min-height: 46px;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  pointer-events: auto;
}
.ldck-root .ldck-toast[hidden] { display: none !important; }
.ldck-root .ldck-toast__copy { min-width: 0; overflow-wrap: anywhere; }
.ldck-root .ldck-toast__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(125,63,77,.25);
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  color: #7d3f4d;
  cursor: pointer;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.ldck-root .ldck-toast__close:hover,
.ldck-root .ldck-toast__close:focus-visible {
  background: #f7e8e9;
  outline: 2px solid rgba(125,63,77,.3);
  outline-offset: 1px;
}
@media (max-width: 520px) {
  .ldck-root .ldck-toast {
    max-width: calc(100vw - 22px);
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 100px);
    padding: 9px 9px 9px 12px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ldck-root .ldck-toast { transition: none; }
}

/* 0.6.2.76 – Symbolfarbe direkt in den schwebenden Symbol-Aktionen. */
.ldck-root .ldck-action-color-section{gap:9px}
.ldck-root .ldck-action-color-quick,
.ldck-root .ldck-action-color-favorites{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.ldck-root .ldck-action-color-favorites{grid-template-columns:repeat(5,minmax(0,1fr))}
.ldck-root .ldck-action-color-label{font-size:12px;color:#6b535b;font-weight:650}
.ldck-root .ldck-action-color-quick button,
.ldck-root .ldck-action-color-favorites button{position:relative;min-width:0;min-height:42px;padding:5px;border-radius:10px;border:1px solid #d6b9b9;background:#fff;display:grid;place-items:center;cursor:pointer}
.ldck-root .ldck-action-color-quick button::before,
.ldck-root .ldck-action-color-favorites button::before{content:"";display:block;width:26px;height:26px;border-radius:6px;background:var(--ldck-swatch,#fff);border:1px solid rgba(0,0,0,.16)}
.ldck-root .ldck-action-color-favorites button:disabled{opacity:.42;cursor:not-allowed}
.ldck-root .ldck-action-color-favorites button:disabled::before{background:repeating-linear-gradient(45deg,#f5eceb 0,#f5eceb 4px,#e9d7d4 4px,#e9d7d4 7px)}
.ldck-root .ldck-action-color-quick button[aria-pressed="true"],
.ldck-root .ldck-action-color-favorites button[aria-pressed="true"]{outline:2px solid #7d3f4d;outline-offset:1px}
.ldck-root .ldck-action-color-quick button:focus-visible,
.ldck-root .ldck-action-color-favorites button:focus-visible,
.ldck-root .ldck-action-color-footer button:focus-visible{outline:3px solid #7d3f4d;outline-offset:2px}
.ldck-root .ldck-action-color-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.ldck-root .ldck-action-color-footer .ldck-action-color-open{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;background:#fff5f1;border-color:#b99299;color:#7d3f4d}
.ldck-root .ldck-action-color-footer .ldck-action-color-reset{padding-inline:12px}
.ldck-root .ldck-action-color-preview{width:22px;height:22px;flex:0 0 22px;background:#403432;border:1px solid #c4b0ae;border-radius:5px}
@media(max-width:360px){.ldck-root .ldck-action-color-quick,.ldck-root .ldck-action-color-favorites{gap:4px}.ldck-root .ldck-action-color-quick button,.ldck-root .ldck-action-color-favorites button{padding:3px}.ldck-root .ldck-action-color-quick button::before,.ldck-root .ldck-action-color-favorites button::before{width:23px;height:23px}}
/* Keep six direct color swatches inside the 320px mobile bottom sheet despite theme button padding. */
.ldck-root .ldck-element-actions .ldck-action-color-quick button,
.ldck-root .ldck-element-actions .ldck-action-color-favorites button{box-sizing:border-box;min-width:0;width:100%;padding:4px;white-space:normal}
@media(max-width:360px){
 .ldck-root .ldck-element-actions .ldck-action-color-quick button,
 .ldck-root .ldck-element-actions .ldck-action-color-favorites button{padding:2px}
 .ldck-root .ldck-element-actions .ldck-action-color-quick button::before,
 .ldck-root .ldck-element-actions .ldck-action-color-favorites button::before{width:22px;height:22px}
}


/* 0.6.2.77 R1 – Fokusmodus ohne dritten Scrollcontainer.
 * Ein fester Editor-Viewport mit scrollbarer Zeichenfläche und Palette.
 * Kein Eingriff in normaler WordPress-Seite oder kleinen Touchansichten.
 */
@media (min-width: 901px) and (min-height: 610px) {
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback) {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    overflow: hidden !important;
  }
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback) > .ldck-compact-topbar,
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback) > .ldck-sticky-tools--040 {
    flex: 0 0 auto;
  }
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback) > .ldck-professional-stage {
    flex: 1 1 0%;
    min-height: 0 !important;
    max-height: none;
    overflow: hidden;
    align-items: stretch;
    grid-template-rows: minmax(0, 1fr);
  }
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback) .ldck-canvas-panel--040 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback) .ldck-canvas-head--compact {
    flex: 0 0 auto;
  }
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback) .ldck-canvas-panel--040 .ldck-canvas-scroller {
    flex: 1 1 auto;
    height: 0;
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback) .ldck-right-palette {
    position: relative;
    top: auto;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback) .ldck-right-palette.is-collapsed {
    overflow: hidden;
  }
}

/* N1 0.6.2.79 – optionaler Maschen-/Gruppenmagnet nur im freien Chartmodus. */
.ldck-root .ldck-free-workspace-note .ldck-free-magnet-toggle {display:inline-flex;margin-top:11px;font-size:14px;line-height:1.5;font-weight:700}
.ldck-root .ldck-free-workspace-note .ldck-free-magnet-note {margin-top:7px;font-size:14px;line-height:1.5}
.ldck-free-magnet-guide {stroke:#7D3F4D;stroke-width:1.7;stroke-dasharray:6 4;vector-effect:non-scaling-stroke;opacity:.88;pointer-events:none}
.ldck-free-chain-guide {fill:#FFF5F6;stroke:#7D3F4D;stroke-width:2.1;vector-effect:non-scaling-stroke;pointer-events:none;opacity:.98}

/* 0.6.2.116: one free-chart magnet state, accessible in both established places. */
.ldck-root .ldck-element-magnet-row[hidden] {display:none!important}
.ldck-root .ldck-element-magnet-row {display:grid;gap:5px;margin-top:8px;padding-top:10px;border-top:1px solid rgba(217,166,160,.45)}
.ldck-root .ldck-element-magnet-toggle {display:inline-flex;align-items:center;gap:10px;margin:0;font-size:14px;line-height:1.5;font-weight:700}
.ldck-root .ldck-element-magnet-row > small {color:#58454b;font-size:13px;line-height:1.45}

/* N2 / Phase 1: geometry-driven Fächer/Bogen/Kreis in Freier Chart only. */
.ldck-root .ldck-n2-panel[hidden],
.ldck-root [data-ldck-n2-span-wrap][hidden],
.ldck-root .ldck-n2-actions button[hidden] { display: none !important; }
.ldck-root .ldck-n2-panel {
  margin: 15px 0 9px;
  padding: 14px;
  border: 1px solid rgba(125,63,77,.28);
  border-radius: 12px;
  background: rgba(252,247,246,.94);
  display: grid;
  gap: 10px;
}
.ldck-root .ldck-n2-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ldck-root .ldck-n2-heading strong {font-size:14px;line-height:1.5;color:#7D3F4D;}
.ldck-root .ldck-n2-panel p {font-size:14px;line-height:1.5;margin:0;color:#604d52;}
.ldck-root .ldck-n2-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.ldck-root .ldck-n2-panel .ldck-field {margin:0;min-width:0;}
.ldck-root .ldck-n2-panel input,
.ldck-root .ldck-n2-panel select { width:100%;min-width:0;box-sizing:border-box;font-size:14px; }
.ldck-root .ldck-n2-panel .ldck-n2-hint {font-size:13px;color:#6b5058;}
.ldck-root .ldck-n2-panel .ldck-n2-status {min-height:1.4em;font-weight:650;}
.ldck-root .ldck-n2-panel .ldck-n2-status[data-error="1"] {color:#8f3030;}
.ldck-root .ldck-n2-actions {display:flex;gap:8px;flex-wrap:wrap;}
.ldck-root .ldck-n2-actions button {flex:1 1 100px;min-height:40px;white-space:normal;font-size:14px;}
.ldck-root .ldck-n2-actions button:disabled {opacity:.48;cursor:not-allowed;}
.ldck-n2-guide {fill:none;stroke:#7D3F4D;stroke-width:2.4;stroke-dasharray:8 5;opacity:.75;vector-effect:non-scaling-stroke;}
.ldck-n2-pivot {fill:#7D3F4D;stroke:white;stroke-width:2;vector-effect:non-scaling-stroke;}
.ldck-n2-preview-element {opacity:.95;}
@media(max-width:480px) {
  .ldck-root .ldck-n2-panel {padding:11px;}
  .ldck-root .ldck-n2-actions button {flex-basis:100%;}
}

/* 0.6.2.85 – N2 inside the existing Symbol-Aktionen popup / mobile sheet. */
.ldck-root .ldck-element-actions__section--n2[hidden] { display:none !important; }
.ldck-root .ldck-n2-disclosure { min-width:0; }
.ldck-root .ldck-n2-disclosure > summary {
  display:list-item; cursor:pointer; color:#7D3F4D; font-size:14px; font-weight:750;
  line-height:1.5; padding:5px 3px; list-style-position:inside;
}
.ldck-root .ldck-n2-disclosure > summary:focus-visible {outline:2px solid #7D3F4D;outline-offset:3px;border-radius:5px;}
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-panel { margin:8px 0 0; padding:10px; }
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-actions button {
  font-size:14px; min-height:42px;
}
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-hint {font-size:14px;line-height:1.5;}
@media (max-width:480px){
  .ldck-root .ldck-element-actions__section--n2 .ldck-n2-fields {grid-template-columns:1fr;}
}

/* 0.6.2.90 – N2 finish: match the existing round info icons and make the disclosure visible.
   Pure styling in the existing Aktionen popup; chart state and actions are unchanged. */
.ldck-root .ldck-element-actions .ldck-n2-heading button.ldck-inline-info {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  box-sizing: border-box;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  padding: 0;
  margin: 0;
  border: 1.5px solid rgba(125,63,77,.68);
  border-radius: 50%;
  background: rgba(243,228,223,.85);
  color: #7D3F4D;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.ldck-root .ldck-element-actions .ldck-n2-heading button.ldck-inline-info:hover,
.ldck-root .ldck-element-actions .ldck-n2-heading button.ldck-inline-info[aria-expanded="true"] {
  border-color: #7D3F4D;
  background: #F3E4DF;
  color: #683646;
}
.ldck-root .ldck-element-actions .ldck-n2-heading button.ldck-inline-info:focus-visible {
  outline: 2px solid #7D3F4D;
  outline-offset: 3px;
}
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  box-sizing: border-box;
  list-style: none;
  padding: 10px 12px;
  border: 1px solid #CA99A1;
  border-left: 4px solid #7D3F4D;
  border-radius: 9px;
  background: #F6E8E8;
  color: #6B3645;
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.4;
  cursor: pointer;
}
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-disclosure > summary::-webkit-details-marker {display: none;}
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-disclosure > summary::before {
  content: '▸';
  display: inline-block;
  flex: 0 0 12px;
  color: #7D3F4D;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-disclosure[open] > summary {
  background: #F0DDE2;
  border-color: #B77C8C;
  border-left-color: #7D3F4D;
  color: #5D293A;
}
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-disclosure[open] > summary::before {content: '▾';}
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-disclosure > summary:hover {
  background: #EBD3DA;
}
.ldck-root .ldck-element-actions__section--n2 .ldck-n2-disclosure > summary:focus-visible {
  outline: 2px solid #7D3F4D;
  outline-offset: 3px;
}

/* 0.6.2.92 – N2 Winkelfelder: zentrierter Wert direkt mit Gradzeichen, kleine
   eigene Pfeile rechts. Pfeile sind echte Buttons, numerische Eingaben bleiben. */
.ldck-root .ldck-n2-degree-input {
  display:flex; position:relative; align-items:center; justify-content:center;
  box-sizing:border-box; width:100%; min-width:0; min-height:46px;
  border:1px solid #e5c9c6; border-radius:12px;
  background:#fff; box-shadow:0 2px 3px rgba(85,48,60,.06);
}
.ldck-root .ldck-n2-degree-input:focus-within {outline:2px solid rgba(125,63,77,.65);outline-offset:1px;}
.ldck-root .ldck-n2-degree-value {display:flex; align-items:center; justify-content:center; gap:1px; min-width:0;}
.ldck-root .ldck-n2-degree-input .ldck-n2-degree-value > input[type="number"] {
  appearance:textfield; -moz-appearance:textfield;
  width:var(--ldck-n2-value-width, 4.35ch) !important; max-width:55px; flex:0 0 auto; min-width:0;
  box-sizing:content-box; padding:0 !important; margin:0; height:32px; min-height:0;
  border:0 !important; background:transparent !important; border-radius:0; box-shadow:none !important;
  font-size:14px; font-weight:500; text-align:right; color:#554750;
}
.ldck-root .ldck-n2-degree-input .ldck-n2-degree-value > input[type="number"]::-webkit-inner-spin-button,
.ldck-root .ldck-n2-degree-input .ldck-n2-degree-value > input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance:none; margin:0;
}
.ldck-root .ldck-n2-degree-input .ldck-n2-degree-mark {
  position:static; transform:none; flex:none; pointer-events:none; user-select:none;
  color:#7D3F4D; font-size:15px; font-weight:700; line-height:1;
}
.ldck-root .ldck-n2-degree-input .ldck-n2-angle-stepper {
  position:absolute; right:5px; top:50%; transform:translateY(-50%);
  display:flex; flex-direction:column; gap:1px; width:24px;
}
.ldck-root .ldck-n2-degree-input .ldck-n2-angle-stepper button {
  display:flex; align-items:center; justify-content:center;
  width:24px; height:20px; min-height:20px; max-height:20px;
  box-sizing:border-box; border:0; border-radius:5px; padding:0;
  background:transparent; color:#7D3F4D; font-size:15px; line-height:1; cursor:pointer;
}
.ldck-root .ldck-n2-degree-input .ldck-n2-angle-stepper button:hover {background:#F3E4DF;}
.ldck-root .ldck-n2-degree-input .ldck-n2-angle-stepper button:focus-visible {outline:2px solid #7D3F4D;outline-offset:0;}
.ldck-root .ldck-n2-degree-input .ldck-n2-angle-stepper button:disabled {opacity:.4;cursor:not-allowed;}

/* 0.6.2.93 – freier N2-Drehgriff für einzelne Maschen */
.ldck-root .ldck-free-rotate-stem{stroke:#7D3F4D;stroke-width:1.8;stroke-dasharray:4 3;vector-effect:non-scaling-stroke;opacity:.82}
.ldck-root .ldck-free-rotate-handle{cursor:grab;touch-action:none;outline:none}
.ldck-root .ldck-free-rotate-handle:active{cursor:grabbing}
.ldck-root .ldck-free-rotate-disc{fill:#fff5f3;stroke:#7D3F4D;stroke-width:2.2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 2px 3px rgba(85,48,60,.22))}
.ldck-root .ldck-free-rotate-glyph{fill:#7D3F4D;font-size:24px;font-weight:700;user-select:none}
.ldck-root .ldck-free-rotate-angle{fill:#7D3F4D;font-size:17px;font-weight:750;paint-order:stroke;stroke:white;stroke-width:3px;stroke-linejoin:round}
.ldck-root .ldck-free-rotate-handle:focus-visible .ldck-free-rotate-disc{stroke:#4e1830;stroke-width:3.5}
.ldck-root .ldck-free-rotate-controls.is-invalid .ldck-free-rotate-disc{stroke:#b53144;fill:#fff0f2}
.ldck-root .ldck-free-rotate-controls.is-invalid .ldck-free-rotate-angle{fill:#b53144}
.ldck-root .ldck-free-rotate-controls.has-overlap:not(.is-invalid) .ldck-free-rotate-angle{fill:#876221}
.ldck-root .ldck-free-rotation-invalid{opacity:.48}
.ldck-root .ldck-free-rotate-handle, .ldck-root .ldck-free-rotate-handle *{touch-action:none!important}

/* 0.6.2.96 – quiet, context-sensitive help right beside the selection actions. */
.ldck-root .ldck-element-selection-bar__tools {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
}
.ldck-root .ldck-element-selection-bar__info {
  appearance: none;
  flex: 0 0 40px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7D3F4D;
  cursor: pointer;
}
.ldck-root .ldck-element-selection-bar__info .ldck-info-icon {
  width: 24px;
  height: 24px;
  border: 1.5px solid #7D3F4D;
  border-radius: 50%;
  background: #FFF9F7;
  color: #7D3F4D;
  font-size: 13px;
}
.ldck-root .ldck-element-selection-bar__info:hover,
.ldck-root .ldck-element-selection-bar__info[aria-expanded="true"] {
  background: #F3E4DF;
}
.ldck-root .ldck-element-selection-bar__info:focus-visible {
  outline: 2px solid #7D3F4D;
  outline-offset: 2px;
}
.ldck-root .ldck-element-selection-bar__close {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(125, 63, 77, .3);
  border-radius: 10px;
  background: #fff9f7;
  color: #7D3F4D;
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.ldck-root .ldck-element-selection-bar__close:hover {background: #F3E4DF;}
.ldck-root .ldck-element-selection-bar__close:focus-visible {outline: 2px solid #7D3F4D; outline-offset: 2px;}
@media (max-width: 360px) {
  .ldck-root.ldck-compact-actions .ldck-element-selection-bar__tools {gap: 2px;}
  .ldck-root.ldck-compact-actions .ldck-element-selection-bar__action {padding-inline: 9px;}
}

/* The explicitly requested selection help opens as a generously sized, labelled card. */
.ldck-root .ldck-help-popover.is-selection-work-help {
  width: min(430px, calc(100vw - 24px));
}

/* N2 Phase 2 A1 – Intelligente Einzelrunde, ruhiges Aktionen-Popup. */
.ldck-root .ldck-round-intelligent {border:1px solid #c18b98;border-left:4px solid #7d3f4d;border-radius:12px;background:#fff4f3;min-width:0}
.ldck-root .ldck-round-intelligent > summary {display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:13px 12px;font-size:15px;font-weight:750;color:#7d3f4d;list-style:none}
.ldck-root .ldck-round-intelligent > summary::-webkit-details-marker{display:none}
.ldck-root .ldck-round-intelligent > summary:focus-visible{outline:2px solid #7d3f4d;outline-offset:2px}
.ldck-root .ldck-round-intelligent[hidden]{display:none!important}
.ldck-root .ldck-round-intelligent__content{padding:0 12px 13px;display:grid;gap:11px}
.ldck-root .ldck-round-intelligent__content p{margin:0;color:#59454d;font-size:14px;line-height:1.5}
.ldck-root .ldck-round-intelligent__toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ldck-root .ldck-round-intelligent__toolbar button{min-height:40px;font-size:14px}
.ldck-root .ldck-round-intelligent__toolbar button[hidden]{display:none!important}
.ldck-root .ldck-round-intelligent__toolbar .ldck-help-inline-i{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;border:1.5px solid #7d3f4d!important;border-radius:50%!important;background:#fff!important;color:#7d3f4d!important;font-size:15px!important;font-weight:800!important;padding:0!important;display:grid!important;place-items:center!important}
.ldck-root .ldck-round-intelligent__status[data-error="1"]{color:#9c3240;font-weight:650}
.ldck-root .ldck-round-intelligent-preview-ring{stroke:#7d3f4d;stroke-width:2.5;stroke-dasharray:9 6;opacity:.9;vector-effect:non-scaling-stroke}

/* N3 – variable distances live inside the established action popups. */
.ldck-root .ldck-spacing-control{border:1px solid #d9b0b8;border-left:4px solid #7d3f4d;border-radius:12px;background:#fffaf8;min-width:0}
.ldck-root .ldck-spacing-control[hidden]{display:none!important}
.ldck-root .ldck-spacing-control>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;padding:13px 12px;font-size:15px;font-weight:750;color:#7d3f4d;list-style:none}
.ldck-root .ldck-spacing-control>summary::-webkit-details-marker{display:none}
.ldck-root .ldck-spacing-control>summary:focus-visible{outline:2px solid #7d3f4d;outline-offset:2px}
.ldck-root .ldck-spacing-control__content{padding:0 12px 13px;display:grid;gap:10px}
.ldck-root .ldck-spacing-control__content p{margin:0;color:#59454d;font-size:14px;line-height:1.5}
.ldck-root .ldck-spacing-control__content input[type="number"]{width:100%;min-height:42px}
.ldck-root .ldck-spacing-control__toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ldck-root .ldck-spacing-control__toolbar button{min-height:40px;font-size:14px}
.ldck-root .ldck-spacing-control__toolbar button[hidden]{display:none!important}
.ldck-root .ldck-spacing-control__toolbar .ldck-help-inline-i{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;border:1.5px solid #7d3f4d!important;border-radius:50%!important;background:#fff!important;color:#7d3f4d!important;font-size:15px!important;font-weight:800!important;padding:0!important;display:grid!important;place-items:center!important}
.ldck-root .ldck-spacing-control__status[data-error="1"]{color:#9c3240;font-weight:650}
.ldck-root .ldck-spacing-preview-guide{stroke:#7d3f4d;stroke-width:2;stroke-dasharray:7 5;opacity:.85;vector-effect:non-scaling-stroke;pointer-events:none}


/* 0.6.2.105 TESTBUILD – Popup-Buttons entsprechen jetzt der tatsächlich
   vorhandenen Palette/Eigenschaften-Aktivfarbe (#F3E4DF).
   Kein neues Farbsystem: bestehende Markentokens und dezentes Bordeaux.
   Nur UI; Schließen, i-Hilfe, Farbfelder und kleine Winkelpfeile ausgenommen. */
.ldck-root .ldck-element-actions,
.ldck-root .ldck-row-actions,
.ldck-root .ldck-round-actions {
  --ldck-popup-action: #F3E4DF;
  --ldck-popup-action-hover: #EBD5D0;
  --ldck-popup-action-secondary: #F3E4DF;
  --ldck-popup-danger: #EBD3DA;
  --ldck-popup-danger-hover: #DFC2CC;
  --ldck-popup-text: #7D3F4D;
  --ldck-popup-border: rgba(217,166,160,.55);
  --ldck-popup-focus: #7D3F4D;
}
/* Gleicher ruhiger Hintergrund für alle normalen Text-Aktionsbuttons.
   Form und Größe des bestehenden Popups bleiben unangetastet. */
.ldck-root .ldck-element-actions button:where(:not(.ldck-panel-close):not(.ldck-inline-info):not(.ldck-help-inline-i):not([data-ldck-action-quick-color]):not([data-ldck-action-favorite-color]):not([data-ldck-n2-angle-step])),
.ldck-root .ldck-row-actions button:where(:not(.ldck-panel-close):not(.ldck-color-trigger):not(.ldck-help-inline-i)),
.ldck-root .ldck-round-actions button:where(:not(.ldck-panel-close):not(.ldck-color-trigger):not(.ldck-help-inline-i)) {
  box-sizing: border-box;
  background: var(--ldck-popup-action);
  border: 1px solid var(--ldck-popup-border);
  color: var(--ldck-popup-text);
  box-shadow: inset 0 0 0 1px rgba(217,166,160,.14);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ldck-root .ldck-element-actions button:where(:not(.ldck-panel-close):not(.ldck-inline-info):not(.ldck-help-inline-i):not([data-ldck-action-quick-color]):not([data-ldck-action-favorite-color]):not([data-ldck-n2-angle-step])):hover,
.ldck-root .ldck-row-actions button:where(:not(.ldck-panel-close):not(.ldck-color-trigger):not(.ldck-help-inline-i)):hover,
.ldck-root .ldck-round-actions button:where(:not(.ldck-panel-close):not(.ldck-color-trigger):not(.ldck-help-inline-i)):hover {
  background: var(--ldck-popup-action-hover);
  border-color: #D9A6A0;
  color: var(--ldck-popup-text);
  box-shadow: inset 0 0 0 1px rgba(217,166,160,.3);
}
.ldck-root .ldck-element-actions button:where(:not(.ldck-panel-close):not(.ldck-inline-info):not(.ldck-help-inline-i):not([data-ldck-action-quick-color]):not([data-ldck-action-favorite-color]):not([data-ldck-n2-angle-step])):focus-visible,
.ldck-root .ldck-row-actions button:where(:not(.ldck-panel-close):not(.ldck-color-trigger):not(.ldck-help-inline-i)):focus-visible,
.ldck-root .ldck-round-actions button:where(:not(.ldck-panel-close):not(.ldck-color-trigger):not(.ldck-help-inline-i)):focus-visible {
  background: var(--ldck-popup-action-hover);
  border-color: #D9A6A0;
  color: var(--ldck-popup-text);
  outline: 2px solid var(--ldck-popup-focus);
  outline-offset: 2px;
}
/* Auch Abbrechen/Zurück nutzen exakt den Paletten-Hintergrund. */
.ldck-root .ldck-element-actions button.ldck-reset-button,
.ldck-root .ldck-row-actions button.ldck-reset-button,
.ldck-root .ldck-round-actions button.ldck-reset-button {
  background: var(--ldck-popup-action-secondary);
  border-color: var(--ldck-popup-border);
  color: var(--ldck-popup-text);
}
/* Der Farbdialog-Einstieg hat eine historische gesonderte CSS-Regel. */
.ldck-root .ldck-element-actions .ldck-action-color-footer button.ldck-action-color-open {
  background: var(--ldck-popup-action);
  border-color: var(--ldck-popup-border);
  color: var(--ldck-popup-text);
}
.ldck-root .ldck-element-actions .ldck-action-color-footer button.ldck-action-color-open:hover,
.ldck-root .ldck-element-actions .ldck-action-color-footer button.ldck-action-color-open:focus-visible {
  background: var(--ldck-popup-action-hover);
  border-color: #D9A6A0;
  color: var(--ldck-popup-text);
}
/* Mehrzeilige Reihen-/Rundenaktionen behalten dunkle gut lesbare Texte. */
.ldck-root .ldck-row-actions .ldck-row-action-button strong,
.ldck-root .ldck-round-actions .ldck-row-action-button strong {
  color: var(--ldck-popup-text);
}
.ldck-root .ldck-row-actions .ldck-row-action-button small,
.ldck-root .ldck-round-actions .ldck-row-action-button small {
  color: #604953;
}
.ldck-root .ldck-row-actions .ldck-row-action-button > span:first-child,
.ldck-root .ldck-round-actions .ldck-row-action-button > span:first-child {
  background: rgba(255,255,255,.38);
  color: var(--ldck-popup-text);
}
/* Kritische Aktionen: diskret eine Stufe dunkler, nicht knallig. */
.ldck-root .ldck-element-actions button.ldck-element-actions__danger,
.ldck-root .ldck-row-actions button.ldck-danger-button,
.ldck-root .ldck-round-actions button.ldck-danger-button,
.ldck-root .ldck-row-actions button.ldck-row-action-button--danger,
.ldck-root .ldck-round-actions button.ldck-row-action-button--danger {
  background: var(--ldck-popup-danger);
  border-color: #D2A3AE;
  color: var(--ldck-popup-text);
}
.ldck-root .ldck-element-actions button.ldck-element-actions__danger:hover,
.ldck-root .ldck-row-actions button.ldck-danger-button:hover,
.ldck-root .ldck-round-actions button.ldck-danger-button:hover,
.ldck-root .ldck-row-actions button.ldck-row-action-button--danger:hover,
.ldck-root .ldck-round-actions button.ldck-row-action-button--danger:hover {
  background: var(--ldck-popup-danger-hover);
  border-color: #C88E9C;
  color: var(--ldck-popup-text);
}
.ldck-root .ldck-element-actions button.ldck-element-actions__danger:focus-visible,
.ldck-root .ldck-row-actions button.ldck-danger-button:focus-visible,
.ldck-root .ldck-round-actions button.ldck-danger-button:focus-visible,
.ldck-root .ldck-row-actions button.ldck-row-action-button--danger:focus-visible,
.ldck-root .ldck-round-actions button.ldck-row-action-button--danger:focus-visible {
  background: var(--ldck-popup-danger-hover);
  border-color: #C88E9C;
  color: var(--ldck-popup-text);
  outline: 2px solid var(--ldck-popup-focus);
  outline-offset: 2px;
}
.ldck-root .ldck-element-actions button:disabled:not([data-ldck-action-favorite-color]),
.ldck-root .ldck-row-actions button:disabled,
.ldck-root .ldck-round-actions button:disabled {
  opacity: .5;
  box-shadow: none;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .ldck-root .ldck-element-actions button,
  .ldck-root .ldck-row-actions button,
  .ldck-root .ldck-round-actions button { transition: none; }
}


/* 0.6.2.109 TESTBUILD – Häkelschrift: komplette Chart-Ansicht bei Desktop/Tablet
   in der bestehenden Werkzeugleiste. Smartphone und ausgeblendete Leiste
   behalten den ursprünglichen Chart-Kopf. Keine Duplikation der Controls. */
.ldck-root .ldck-canvas-head--compact.is-toolbar-merged { display: none !important; }
.ldck-root .ldck-toolbar-views,
.ldck-root .ldck-toolbar-meta { display: none; }
@media (min-width:760px) and (min-height:560px) {
  .ldck-root.ldck-view-in-toolbar .ldck-editor-toolbar--040 {
    display:flex; flex-wrap:wrap; align-items:flex-end; gap:7px 9px;
  }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views {
    display:flex; flex:1 1 465px; min-width:310px;
    flex-direction:column; gap:4px; padding-left:9px;
    border-left:1px solid rgba(232,216,212,.82); box-sizing:border-box;
  }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views > .ldck-toolbar-label { align-self:flex-start; }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views .ldck-view-toolbar {
    display:flex; flex-flow:row wrap; gap:6px; align-items:center;
    justify-content:flex-start; min-height:40px; width:100%; max-width:none;
    margin:0; padding:0; border:0; background:transparent; box-sizing:border-box;
  }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views .ldck-view-toolbar__label { display:none; }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views .ldck-view-zoom {
    display:grid; grid-template-columns:34px minmax(74px,1fr) 34px 61px;
    flex:1 1 235px; gap:4px; min-width:202px; width:auto; max-width:none;
  }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views .ldck-zoom-range { min-width:0; width:100%; }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views .ldck-zoom-step-button { width:34px; min-width:34px; height:40px; }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views .ldck-zoom-value { width:61px; min-width:0; height:40px; padding:5px; }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views .ldck-view-action {
    display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
    width:auto; min-width:0; min-height:40px; padding:6px 9px;
    font-size:12px; white-space:nowrap;
  }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views .ldck-counter-toggle {
    min-height:40px; font-size:12px; font-weight:650;
    background:#7D3F4D; border-color:#7D3F4D; color:#fff;
  }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-meta {
    display:flex; align-items:center; flex:1 0 100%; gap:8px; min-width:0;
    padding:5px 8px 1px; border-top:1px solid rgba(232,216,212,.8);
    box-sizing:border-box;
  }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-meta > div {
    display:flex; flex-wrap:wrap; align-items:center; gap:6px 9px;
  }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-meta .ldck-help-heading { display:inline-flex; align-items:center; gap:5px; }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-meta .ldck-pane-kicker { display:none; }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-meta [data-ldck-canvas-subtitle] { font-size:12px; line-height:1.4; }
  .ldck-root.ldck-view-in-toolbar .ldck-editor-toolbar--040 > .ldck-toolbar-actions { margin-left:auto; }
  .ldck-root.ldck-view-in-toolbar .ldck-editor-toolbar--040 > .ldck-toolbar-cluster:nth-child(1) { order:1; }
  .ldck-root.ldck-view-in-toolbar .ldck-editor-toolbar--040 > .ldck-toolbar-cluster:nth-child(2) { order:2; }
  .ldck-root.ldck-view-in-toolbar .ldck-editor-toolbar--040 > .ldck-toolbar-cluster--active { order:3; }
  .ldck-root.ldck-view-in-toolbar .ldck-editor-toolbar--040 > .ldck-toolbar-views { order:4; }
  .ldck-root.ldck-view-in-toolbar .ldck-editor-toolbar--040 > .ldck-toolbar-actions { order:5; }
  .ldck-root.ldck-view-in-toolbar .ldck-editor-toolbar--040 > .ldck-toolbar-meta { order:6; }
}
@media (min-width:760px) and (max-width:1100px) and (min-height:560px) {
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views { flex:1 1 100%; min-width:0; }
  .ldck-root.ldck-view-in-toolbar .ldck-toolbar-views .ldck-view-toolbar { flex-wrap:wrap; }
}

/* 0.6.2.111 TESTBUILD – Griffhinweis im beweglichen Maschenzähler.
   Verschiebelogik bleibt unverändert; Symbol nur bei Maus-Desktopansicht,
   da das Fenster bis 900 px fest am unteren Bildschirmrand positioniert ist. */
@media (min-width: 901px) and (pointer: fine) {
  .ldck-root .ldck-stitch-counter__head-text {
    position: relative;
    padding-left: 23px;
  }
  .ldck-root .ldck-stitch-counter__head-text::before {
    content: '⠿';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: rgba(125, 63, 77, .58);
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
  }
}

/* 0.6.2.113 TESTBUILD – Ruhige Projektzeile analog Strickschrift 0.1.84.18.
   Die Aktivanzeige wandert neben den Projektnamen; Projektaktionen erhalten
   dauerhaft eine eigene Zeile. Echte lokale Sicherungswarnungen bleiben
   unverändert unterhalb des Headers erhalten. */
.ldck-root .ldck-compact-topbar .ldck-project-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(46px, auto) minmax(42px, auto);
  align-content: start;
  justify-content: stretch;
  row-gap: 6px;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 10px;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  margin: 0;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity > strong {
  flex: 0 1 auto;
  min-width: 100px;
  max-width: min(230px, 25vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity .ldck-project-active-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #e4c5c4;
  border-radius: 999px;
  background: #f8e9e5;
  color: #75424d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity .ldck-project-active-chip strong {
  flex: 0 1 auto;
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity .ldck-project-active-chip .ldck-active-tool-dot {
  flex: 0 0 8px;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity > .ldck-status {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 200px;
  max-width: 320px;
  min-height: 38px;
  padding: 7px 16px;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__controls,
.ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-project-strip__controls {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
}
@media (max-width: 1050px) {
  .ldck-root .ldck-compact-topbar .ldck-project-strip__identity {
    flex-wrap: wrap;
    align-content: center;
    min-height: 76px;
  }
  .ldck-root .ldck-compact-topbar .ldck-project-strip__identity > .ldck-status {
    min-width: 0;
  }
}
@media (max-width: 520px) {
  .ldck-root .ldck-compact-topbar .ldck-project-strip__identity .ldck-project-active-chip {
    width: 100%;
    border-radius: 13px;
  }
}

/* CK-PROG 0.6.2.118 TESTBUILD — geschützter Arbeitsmodus mit grünen Schlössern. */
.ldck-root .ldck-progress-toggle[aria-pressed="true"] {
  background: #f5e7e5;
  border-color: #975663;
  color: #783d4b;
}
.ldck-root .ldck-progress-panel {
  margin: 9px 12px 12px;
  padding: 12px 15px;
  border: 1px solid #e2cfd0;
  border-radius: 14px;
  background: #fffaf8;
  box-shadow: 0 3px 12px rgba(106, 59, 67, .07);
  color: #6b3744;
}
.ldck-root .ldck-progress-panel[hidden] { display: none !important; }
.ldck-root .ldck-progress-panel__summary,
.ldck-root .ldck-progress-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.ldck-root .ldck-progress-panel__summary { margin-bottom: 10px; }
.ldck-root .ldck-progress-panel__summary strong { font-size: 15px; }
.ldck-root .ldck-progress-panel__summary > span { font-size: 12px; }
.ldck-root .ldck-progress-panel__readonly {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0e4df;
  color: #783d4b;
  font-weight: 650;
}
.ldck-root .ldck-progress-action {
  border: 1px solid #d9bfc0;
  border-radius: 999px;
  padding: 7px 12px;
  background: white;
  color: #783d4b;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ldck-root .ldck-progress-action--primary {
  background: #7d3f4d;
  border-color: #7d3f4d;
  color: #fff;
}
.ldck-root .ldck-progress-action:disabled { opacity: .45; cursor: default; }
.ldck-root .ldck-progress-panel__jump { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ldck-root .ldck-progress-panel__jump input {
  width: 65px;
  min-height: 33px;
  padding: 4px 7px;
  border: 1px solid #d9bfc0;
  border-radius: 8px;
  color: #783d4b;
  background: white;
}
.ldck-root .ldck-progress-panel > small {
  display: block;
  margin-top: 10px;
  color: #856c70;
  font-size: 12px;
  line-height: 1.45;
}
.ldck-root.ldck-progress-reading .ldck-worktool-group,
.ldck-root.ldck-progress-reading .ldck-button-group,
.ldck-root.ldck-progress-reading .ldck-toolbar-actions,
.ldck-root.ldck-progress-reading .ldck-right-palette { opacity: .48; pointer-events: none; }
.ldck-root.ldck-progress-reading .ldck-canvas { pointer-events: none; }
.ldck-root .ldck-progress-row { pointer-events: none; }
.ldck-root .ldck-progress-row--done { fill: rgba(95, 150, 117, .19); }
.ldck-root .ldck-progress-row--current { fill: rgba(181, 116, 52, .19); stroke: #ac7244; stroke-width: 2.2; }
.ldck-root .ldck-progress-round { stroke-width: 13; pointer-events: none; }
.ldck-root .ldck-progress-round--done { stroke: rgba(95, 150, 117, .35); }
.ldck-root .ldck-progress-round--current { stroke: rgba(181, 116, 52, .52); }
.ldck-root .ldck-progress-round-label--current .ldck-round-label { fill: #a76730; font-weight: 900; }
@media (max-width: 640px) {
  .ldck-root .ldck-progress-panel { margin: 8px 5px; padding: 12px; }
  .ldck-root .ldck-progress-panel__readonly { margin-left: 0; }
}
/* 0.6.2.121 TESTBUILD: reine Zahlenhinweise als separate Chart-Ebene. */
.ldck-root .ldck-number-notes__body {display:grid;gap:10px;padding:8px 10px 12px;min-width:0}
.ldck-root .ldck-number-notes__hint {margin:0;color:#604953;font-size:12.5px;line-height:1.45}
.ldck-root .ldck-number-notes__digits {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;min-width:0;width:100%;max-width:100%;box-sizing:border-box;align-items:stretch}
.ldck-root .ldck-number-notes__arrows {grid-template-columns:repeat(4,minmax(0,1fr))}
.ldck-root .ldck-number-notes__arrows-label {color:#4d4144;font-size:12.5px;font-weight:700}
.ldck-root .ldck-right-palette .ldck-number-notes > summary > span.ldck-library-count {flex:0 0 auto;white-space:nowrap;overflow-wrap:normal;min-width:31px}
.ldck-root .ldck-number-notes__arrows button svg {display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
/* WordPress-/Theme-Buttons bringen teils feste Mindestbreiten und horizontale
   Innenabstände mit. Bei fünf Spalten verursacht das den Fächer-Überlauf. */
.ldck-root .ldck-number-notes__digits > button {display:grid;place-items:center;justify-self:stretch;box-sizing:border-box;width:100%!important;max-width:100%;min-width:0!important;height:38px;min-height:38px;padding:0!important;margin:0!important;border:1px solid #dcc9c6;border-radius:8px;background:#fff;color:#bd1c29;font:700 16px/1 Arial,Helvetica,sans-serif;cursor:pointer}
.ldck-root .ldck-number-notes__digits button:hover,.ldck-root .ldck-number-notes__digits button:focus-visible {background:#f8eded;border-color:#b98991;outline:2px solid #e9d6d7;outline-offset:1px}
.ldck-root .ldck-number-notes__field {display:grid;gap:4px;min-width:0;color:#4d4144;font-size:12.5px;font-weight:700}
.ldck-root .ldck-number-notes__field input,.ldck-root .ldck-number-notes__field select,.ldck-root .ldck-number-notes__field textarea {box-sizing:border-box;width:100%;min-width:0;min-height:36px;padding:6px 8px;border:1px solid #dcc9c6;border-radius:8px;background:#fff;color:#403638;font:600 14px/1.35 Arial,Helvetica,sans-serif}
.ldck-root .ldck-number-notes__field textarea {min-height:82px;resize:vertical;white-space:pre-wrap;font-weight:500}
.ldck-root .ldck-text-note-counter {display:block;text-align:right;color:var(--ldck-muted);font:500 12px/1.45 Arial,Helvetica,sans-serif}
.ldck-root .ldck-text-note-hint {display:block;color:#756569;font:400 11.5px/1.45 Arial,Helvetica,sans-serif}
.ldck-root .ldck-text-note-counter.is-invalid,.ldck-root .ldck-text-note-hint.is-invalid {color:#b11d2e;font-weight:700}
.ldck-root .ldck-number-notes__field textarea[aria-invalid="true"] {border-color:#b11d2e;box-shadow:0 0 0 1px rgba(177,29,46,.16)}
.ldck-root .ldck-number-notes__field input[type=color] {padding:3px 7px;cursor:pointer}
.ldck-root .ldck-number-notes__settings {display:grid;grid-template-columns:1fr 86px;gap:8px}
.ldck-root .ldck-number-notes__actions {display:grid;gap:6px}
.ldck-root .ldck-number-notes__actions button {min-height:36px;padding:7px 9px;border:1px solid #c9acb2;border-radius:9px;background:#fff7f6;color:#75404f;font:700 12.5px/1.35 Arial,Helvetica,sans-serif;cursor:pointer}
.ldck-root .ldck-number-notes__actions [data-ldck-note-place].is-armed,.ldck-root .ldck-number-notes__actions [data-ldck-note-place-text].is-armed {background:#7d3f4d;color:#fff}
.ldck-root .ldck-number-notes__actions button:disabled {opacity:.42;cursor:default}
.ldck-root [data-ldck-note-status] {display:block;color:#604953;font-size:12px;line-height:1.5}
.ldck-number-annotation {cursor:move}
.ldck-number-annotation text {font-family:Arial,Helvetica,sans-serif;font-weight:700;paint-order:stroke fill;stroke:#fff;stroke-width:.5px;stroke-linejoin:round;user-select:none}
.ldck-number-annotation .ldck-number-note-selection {fill:none;stroke:#7d3f4d;stroke-width:1.5;stroke-dasharray:4 3;pointer-events:none}

/* 0.6.2.124 TESTBUILD – Desktop- und Vollbild-Kopfzeile nach Sichttest:
   Projektinformationen UND Hilfe/Vollbild/Leistenschalter stehen auf derselben
   oberen Linie. Die Projekt- und Speicheraktionen sitzen ungekürzt darunter.
   Auch bei eingeklappter Werkzeugleiste gilt diese Ausrichtung. */
@media (min-width: 1100px) {
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: minmax(44px, auto) minmax(44px, auto);
    align-items: center;
    gap: 6px 14px;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar > .ldck-project-strip,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar > .ldck-project-strip {
    display: contents;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-strip__identity,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-project-strip__identity {
    grid-column: 1;
    grid-row: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    align-content: center;
    flex: none;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-left: 8px;
    gap: 8px 10px;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-strip__identity > .ldck-status {
    min-width: 0;
    max-width: 300px;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-strip__controls,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-project-strip__controls {
    grid-column: 1 / -1;
    grid-row: 2;
    box-sizing: border-box;
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding-left: 8px;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-toolbar-actions {
    flex: 0 0 auto;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-toolbar-button > span {
    white-space: nowrap;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-sectionhead--editor,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-sectionhead--editor {
    grid-column: 2;
    grid-row: 1;
    display: flex !important;
    flex: none;
    align-self: center;
    align-items: center;
    width: auto;
    min-width: 0;
    min-height: 44px;
    margin: 0 !important;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-sectionhead--editor > .ldck-editor-header-actions,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-sectionhead--editor > .ldck-editor-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
    min-width: 0;
    margin: 0;
  }
}

/* Bei schmalen Desktop-Fenstern bleiben alle drei Gruppen auf eigenen,
   durchgehenden Zeilen statt sich seitlich zu überlagern. Mobil unverändert. */
@media (min-width: 761px) and (max-width: 1099px) {
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 6px;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar > .ldck-project-strip,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar > .ldck-project-strip {
    display: contents;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-strip__identity,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-project-strip__identity {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-left: 8px;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-strip__controls,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-project-strip__controls {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding-left: 8px;
    justify-content: flex-start;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-sectionhead--editor,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-sectionhead--editor {
    grid-row: 3;
    grid-column: 1;
    display: flex !important;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0 !important;
    padding-left: 8px;
  }
  .ldck-root .ldck-editor-card--wide .ldck-compact-topbar .ldck-sectionhead--editor > .ldck-editor-header-actions,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-sectionhead--editor > .ldck-editor-header-actions {
    width: auto;
    justify-content: flex-start;
  }
}

/* I-08R / 0.6.2.139 – administrator-only language selector QA.
 * Layout addition: on desktop, second row aligned to the right edge of
 * "Leiste ausblenden"; public accounts keep their original header grid.
 * Do not show flags as a proxy for languages. */
.ldck-root.ldck-locale-preview-enabled .ldck-compact-topbar {
  position: relative;
  z-index: 40;
}
.ldck-root .ldck-locale-picker {
  position: relative;
  z-index: 41;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  width: 290px;
  max-width: 100%;
  min-width: 0;
}
.ldck-root .ldck-locale-trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid #caaea4;
  border-radius: 7px;
  background: linear-gradient(180deg, #fffefa 0%, #fcf8f4 100%);
  box-shadow: 0 1px 1px rgba(93,59,58,.04);
  color: #463b3e;
  text-align: left;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}
.ldck-root .ldck-locale-trigger:hover,
.ldck-root .ldck-locale-trigger[aria-expanded="true"] {
  border-color: #bd9a71;
  box-shadow: 0 0 0 2px rgba(189,154,113,.14);
}
.ldck-root .ldck-locale-trigger:focus-visible,
.ldck-root .ldck-locale-menu [role="option"]:focus-visible {
  outline: 2px solid #7d3f4d;
  outline-offset: 3px;
}
.ldck-root .ldck-locale-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 47px;
  width: 47px;
  height: 27px;
  padding: 1px 2px;
  border: 1px solid #d9c9bd;
  border-radius: 4px;
  background: #faf5ef;
  color: #7d3f4d;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .025em;
  font-weight: 800;
}
.ldck-root .ldck-locale-trigger__text {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.ldck-root .ldck-locale-trigger__text small {
  color: #a48982;
  font-size: 9px;
  letter-spacing: .10em;
  font-weight: 700;
  text-transform: uppercase;
}
.ldck-root .ldck-locale-trigger__text strong {
  color: #463b3e;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}
.ldck-root .ldck-locale-chevron {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #8d6770;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.ldck-root .ldck-locale-trigger[aria-expanded="true"] .ldck-locale-chevron {transform:rotate(180deg);}
.ldck-root .ldck-locale-menu {
  position: absolute;
  z-index: 42;
  top: calc(100% + 8px);
  right: 0;
  box-sizing: border-box;
  width: 100%;
  max-height: min(65vh, 366px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #dcc7bd;
  border-radius: 8px;
  background: #fffefc;
  box-shadow: 0 16px 32px rgba(67,44,48,.18);
  color: #463b3e;
}
.ldck-root .ldck-locale-menu[hidden] {display:none!important;}
.ldck-root .ldck-locale-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,#7d3f4d,#bd9a71,#e7d2b8);
}
.ldck-root .ldck-locale-menu__heading {
  padding: 9px 10px 7px;
  color: #9c7d7a;
  font-size: 10px;
  letter-spacing: .13em;
  font-weight: 750;
  text-transform: uppercase;
}
.ldck-root .ldck-locale-menu [role="option"] {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #463b3e;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.ldck-root .ldck-locale-menu [role="option"]:hover,
.ldck-root .ldck-locale-menu [role="option"][aria-selected="true"] {
  border-color: #ead9ce;
  background: #f8f1ec;
}
.ldck-root .ldck-locale-menu__option-text {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  line-height: 1.3;
}
.ldck-root .ldck-locale-menu__option-text strong {font-size:12px;font-weight:750;}
.ldck-root .ldck-locale-menu__option-text small {font-size:11px;color:#927d7e;}
.ldck-root .ldck-locale-check {color:#7d3f4d;font-size:16px;visibility:hidden;}
.ldck-root .ldck-locale-menu [role="option"][aria-selected="true"] .ldck-locale-check {visibility:visible;}
@media (min-width: 1100px) {
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-strip__controls,
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-project-strip__controls {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
    align-content: center;
  }
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide .ldck-compact-topbar > .ldck-locale-picker {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
  }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide .ldck-compact-topbar > .ldck-locale-picker {
    grid-column: 1;
    grid-row: 4;
    justify-self: end;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide .ldck-compact-topbar > .ldck-locale-picker,
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar > .ldck-locale-picker {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
  }
  .ldck-root .ldck-locale-trigger {width: min(100%, 290px);}
  .ldck-root .ldck-locale-menu {left: 0;right:auto;width: min(100%, 290px);}
}

/* 0.6.2.174 TESTBUILD – Aktiver Kontrast-Schalter bleibt lesbar.
   Die Kontrastdarstellung des Charts selbst wird nicht verändert. */
.ldck-root button.ldck-view-action.ldck-contrast-toggle[aria-pressed="true"],
.ldck-root.ldck-view-in-toolbar .ldck-toolbar-views button.ldck-view-action.ldck-contrast-toggle[aria-pressed="true"],
.ldck-root .ldck-canvas-head--compact .ldck-view-toolbar button.ldck-view-action.ldck-contrast-toggle[aria-pressed="true"] {
  background:#252525 !important;
  border-color:#252525 !important;
  color:#ffffff !important;
}
.ldck-root button.ldck-view-action.ldck-contrast-toggle[aria-pressed="true"] > span {
  color:#ffffff !important;
}

/* 0.6.2.175 TESTBUILD – Zurückhaltender Hinweis in der bestehenden Kontext-Info. */
.ldck-root .ldck-help-new-features {
  margin:9px 0 0;
  padding:9px 10px;
  font-size:13px;
  line-height:1.5;
  color:#59454d;
  background:#fff9f7;
  border-left:3px solid #b9838c;
}

/* 0.6.2.182 TESTBUILD – Desktop-Werkzeugleiste ruhig in drei Bereiche ordnen.
   Ausschließlich Layout: dieselben DOM-Elemente, Datenattribute, Verknüpfungen,
   Exportmenüs und Event-Listener. Mobile und Vollbild/Fokusmodus bleiben wie zuvor.
   Gegenüber .181 greift das Raster auch bei großen Desktop-Browserfenstern;
   die Gruppen beginnen oben statt an der Unterkante des höchsten Blocks. */
@media (min-width: 980px) and (min-height: 560px) {
  .ldck-root.ldck-view-in-toolbar
  .ldck-editor-card--wide:not(:fullscreen):not(.is-focus-mode-fallback)
  > .ldck-sticky-tools--040 .ldck-editor-toolbar--040 {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 5px 10px;
  }

  .ldck-root.ldck-view-in-toolbar
  .ldck-editor-card--wide:not(:fullscreen):not(.is-focus-mode-fallback)
  > .ldck-sticky-tools--040 .ldck-editor-toolbar--040 > .ldck-toolbar-cluster:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .ldck-root.ldck-view-in-toolbar
  .ldck-editor-card--wide:not(:fullscreen):not(.is-focus-mode-fallback)
  > .ldck-sticky-tools--040 .ldck-editor-toolbar--040 > .ldck-toolbar-cluster:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  /* Export, Info und Palette bilden rechts den Abschluss der Werkzeugzeile. */
  .ldck-root.ldck-view-in-toolbar
  .ldck-editor-card--wide:not(:fullscreen):not(.is-focus-mode-fallback)
  > .ldck-sticky-tools--040 .ldck-editor-toolbar--040 > .ldck-toolbar-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    margin-left: 0;
  }

  /* Ansicht nutzt die ganze Breite; kein zufälliger Umbruch neben Aktionen. */
  .ldck-root.ldck-view-in-toolbar
  .ldck-editor-card--wide:not(:fullscreen):not(.is-focus-mode-fallback)
  > .ldck-sticky-tools--040 .ldck-editor-toolbar--040 > .ldck-toolbar-views {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    padding: 5px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(232, 216, 212, .82);
  }

  /* Charttitel und Lesehinweis schließen die Leiste als ruhige Fußzeile ab. */
  .ldck-root.ldck-view-in-toolbar
  .ldck-editor-card--wide:not(:fullscreen):not(.is-focus-mode-fallback)
  > .ldck-sticky-tools--040 .ldck-editor-toolbar--040 > .ldck-toolbar-meta {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin: 0;
  }
}

/* 0.6.2.183 TESTBUILD – Nur Desktop-Zoom horizontal harmonisieren.
   Der Slider endet etwa unter der Trennlinie rechts von "Radierer";
   die anderen Ansichtsschalter bleiben als geschlossene Gruppe rechts.
   Keine Änderung an Zoomwerten, Events, Vollbild oder Mobilansicht. */
@media (min-width: 1100px) and (min-height: 560px) {
  .ldck-root.ldck-view-in-toolbar
  .ldck-editor-card--wide:not(:fullscreen):not(.is-focus-mode-fallback)
  > .ldck-sticky-tools--040 .ldck-toolbar-views .ldck-view-zoom {
    flex: 0 1 438px;
    width: 438px;
    max-width: 100%;
  }

  .ldck-root.ldck-view-in-toolbar
  .ldck-editor-card--wide:not(:fullscreen):not(.is-focus-mode-fallback)
  > .ldck-sticky-tools--040 .ldck-toolbar-views .ldck-view-action[data-ldck-fit-all] {
    margin-left: auto;
  }
}

/* 0.6.2.184 TESTBUILD – Projektname und aktives Symbol aus der Enge befreien.
   Dieselbe Statusanzeige bleibt via data-ldck-status an die bestehende
   Logik/Übersetzung gebunden, steht jedoch nun bei den Projektaktionen.
   Auch lange Meldungen dürfen weich umbrechen, niemals abgeschnitten werden. */
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity > strong {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity .ldck-project-active-chip {
  flex: 0 1 auto;
  min-width: 120px;
  max-width: 230px;
  white-space: nowrap;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity .ldck-project-active-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  white-space: nowrap;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__controls > .ldck-status {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 380px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: normal;
  overflow-wrap: break-word;
}

/* Zweite Kopfzeile auf Desktop bis vor die rechts stehende Sprachauswahl
   nutzen. Die Hilfe-/Vollbild-Schalter in Zeile 1 bleiben unangetastet. */
@media (min-width: 1100px) {
  .ldck-root.ldck-locale-preview-enabled
  .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-strip__controls,
  .ldck-root.ldck-locale-preview-enabled
  .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-project-strip__controls {
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100% - 306px);
    max-width: calc(100% - 306px);
    justify-self: start;
  }
}

/* 0.6.2.185 TESTBUILD – Lange Arbeitsmeldungen nicht mehr als neue
   Flexzeile auslagern. Die dritte Spalte ist dauerhaft reserviert;
   Textumbrüche passieren nur innerhalb dieser Spalte. */
@media (min-width: 1100px) {
  .ldck-root.ldck-locale-preview-enabled
  .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-strip__controls,
  .ldck-root.ldck-locale-preview-enabled
  .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-compact-topbar .ldck-project-strip__controls {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .ldck-root.ldck-locale-preview-enabled
  .ldck-editor-card--wide .ldck-compact-topbar .ldck-project-strip__controls > .ldck-status {
    justify-self: start;
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* 0.6.2.186 TESTBUILD – Projektnamen nicht künstlich auf 260 px kürzen.
   Platz bis ca. 320 px nutzen; bei längeren Namen natürlich umbrechen,
   statt die Bezeichnung mit Auslassungspunkten zu verbergen.
   Eingabegrenze 3–50 Zeichen, Zähler und gespeicherte Namen bleiben gleich. */
@media (min-width: 1100px) {
  .ldck-root .ldck-compact-topbar .ldck-project-strip__identity > strong {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 320px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

/* 0.6.2.187 TESTBUILD – Eingeklappte Werkzeugleiste: Ansichtsblock wie
 * die freigegebene Strickschrift 0.1.84.79. Vorhandene Controls nur mit
 * CSS verteilen. Mobile Ansicht, Daten und Events bleiben unveraendert.
 * Die zwei unteren Buttonpaare werden gleich gross und gut lesbar. */
@media (min-width: 761px) {
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed .ldck-canvas-head--compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 6px 9px;
  }

  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-canvas-head--compact > div:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }

  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-canvas-head--compact > .ldck-view-toolbar {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 780px;
    min-width: 0;
    gap: 6px;
    margin: 0;
    padding: 0;
  }

  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-zoom {
    grid-column: 1 / -1;
    justify-self: start;
    width: min(100%, 438px);
    max-width: 438px;
    min-width: 0;
  }

  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-fit-all],
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-counter-toggle] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 10px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 650;
    white-space: nowrap;
  }

  /* Vorhandene Chartkopf-Regeln setzen alle span-Texte auf 11 px.
   * Kontrast und Arbeitsmodus sollen so lesbar wie die zwei oberen
   * Aktionsbuttons sein, nicht kleiner wie im alten Bild. */
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action.ldck-contrast-toggle > span,
  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action.ldck-progress-toggle > span {
    font-size: 14px;
    line-height: 1.3;
  }

  .ldck-root .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-canvas-head--compact > .ldck-canvas-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    margin-left: 0;
  }
}

/* 0.6.2.201 TESTBUILD – collapsed fullscreen workspace only.
 * The compact header in .187 deliberately uses three control rows for the
 * normal editor. In fullscreen that consumed valuable chart height even
 * after hiding the tool strip. Place zoom + four view actions on the same
 * horizontal line as the chart heading when room permits. Keep all controls,
 * event bindings, palette and ordinary editor layouts unchanged. */
@media (min-width: 901px) and (min-height: 610px) {
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact {
    display: grid;
    grid-template-columns: minmax(150px, 205px) minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 6px 10px;
    min-height: 0;
    padding: 7px 11px;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact > div:first-child {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact > div:first-child .ldck-pane-kicker {
    display: none;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact > .ldck-view-toolbar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-zoom {
    grid-column: auto;
    grid-row: auto;
    flex: 1 1 225px;
    width: auto;
    min-width: 190px;
    max-width: 275px;
    grid-template-columns: 34px minmax(65px, 1fr) 34px 65px;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action,
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-fit-all],
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action[data-ldck-counter-toggle] {
    box-sizing: border-box;
    flex: 1 1 130px;
    width: auto;
    max-width: 175px;
    min-width: 115px;
    min-height: 38px;
    height: 38px;
    padding: 5px 8px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact .ldck-view-toolbar .ldck-view-action > span {
    font-size: 13px;
    line-height: 1.25;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-canvas-head--compact > .ldck-canvas-badge {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin-left: 0;
  }

  /* In the reading/work mode, progress actions share one compact row with
   * progress status. The explanatory note stays available via the nearby i. */
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-progress-panel:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin: 4px 11px 7px;
    padding: 6px 11px;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-progress-panel__summary {
    min-width: 0;
    gap: 6px 9px;
    margin: 0;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-progress-panel__actions {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-progress-panel > small {
    display: none;
  }
}

/* Intermediate desktop widths: never force the progress buttons beyond the
 * viewport or over the palette. Two concise rows are preferable to overlap. */
@media (min-width: 901px) and (max-width: 1399px) and (min-height: 610px) {
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-progress-panel:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
  .ldck-root .ldck-editor-card--wide:is(:fullscreen, .is-focus-mode-fallback).ldck-toolbar-collapsed
  .ldck-progress-panel__actions {
    flex-wrap: wrap;
  }
}

/* 0.6.2.218 – optionale Maschenanweisungen in der Exportpalette. */
.ldck-root .ldck-export-description-count {
  display: block;
  padding-top: 3px;
  text-align: right;
  color: var(--ldck-muted);
  font-size: 12px;
}
.ldck-root .ldck-export-instructions {
  margin: 0 6px 9px;
  border: 1px solid rgba(125,63,77,.21);
  border-radius: 10px;
  background: #fffaf8;
  color: var(--ldck-text);
}
.ldck-root .ldck-export-instructions > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 57px;
  padding: 9px 10px;
  list-style: none;
  cursor: pointer;
}
.ldck-root .ldck-export-instructions > summary::-webkit-details-marker { display: none; }
.ldck-root .ldck-export-instructions__summary-copy { display: grid; gap: 3px; min-width: 0; }
.ldck-root .ldck-export-instructions__summary-copy strong { font-size: 14px; line-height: 1.45; font-weight: 700; }
.ldck-root .ldck-export-instructions__summary-copy small { font-size: 12.5px; line-height: 1.45; color: var(--ldck-muted); }
.ldck-root .ldck-export-instructions__chevron { color: var(--ldck-primary); font-size: 20px; transition: transform .15s; }
.ldck-root .ldck-export-instructions[open] .ldck-export-instructions__chevron { transform: rotate(180deg); }
.ldck-root .ldck-export-instructions > summary:focus-visible { outline: 3px solid rgba(125,63,77,.35); outline-offset: -3px; border-radius: 9px; }
.ldck-root .ldck-export-instructions__body { display: grid; gap: 11px; padding: 0 10px 11px; }
.ldck-root .ldck-export-instructions__intro,
.ldck-root .ldck-export-instructions__empty { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ldck-muted); }
.ldck-root .ldck-export-instructions__symbols { display: grid; gap: 10px; }
.ldck-root .ldck-export-instructions__symbol { display: grid; gap: 4px; }
.ldck-root .ldck-export-instructions__symbol > label { font-size: 14px; font-weight: 750; line-height: 1.45; color: var(--ldck-text); }
.ldck-root .ldck-export-instructions__symbol small { font-weight: 600; color: var(--ldck-muted); }
.ldck-root .ldck-export-instructions textarea {
  display: block;
  width: 100%;
  min-height: 68px;
  max-height: 180px;
  padding: 8px 9px;
  border: 1px solid var(--ldck-border);
  border-radius: 9px;
  background: white;
  color: var(--ldck-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
.ldck-root .ldck-export-instructions textarea:focus { outline: 2px solid rgba(125,63,77,.3); outline-offset: 1px; }

/* 0.6.2.233 TESTBUILD – Die grosse Hilfe begleitet die Arbeit im Chart.
 * Ein modaler Hintergrund darf Arbeitsflaeche und Werkzeuge nicht sperren. */
.ldck-root .ldck-help-backdrop {
  pointer-events: none;
}

.ldck-root .ldck-help-drawer {
  box-sizing: border-box;
  top: 12px;
  right: 12px;
  width: min(400px, calc(100vw - 24px));
  height: min(82dvh, 780px);
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--ldck-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(79, 62, 67, .22);
}

@media (min-width: 1101px) and (pointer: fine) {
  .ldck-root:not(.ldck-compact-actions) .ldck-help-drawer__head {
    cursor: move;
    touch-action: none;
    user-select: none;
  }
  .ldck-root .ldck-help-drawer.is-dragging-panel {
    box-shadow: 0 20px 52px rgba(79, 62, 67, .3);
  }
  .ldck-root .ldck-help-drawer__head button {
    cursor: pointer;
  }
}

@media (max-width: 720px) {
  .ldck-root .ldck-help-drawer {
    top: auto;
    bottom: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    height: min(52dvh, 440px);
    max-height: calc(100dvh - 16px);
  }
}

/* 0.6.2.234 TESTBUILD – Sicherungspille und Status wie bei der Strickschrift.
 * Die bestehenden Sicherungsaktionen und Speicherablaeufe bleiben erhalten. */
.ldck-root .ldck-emergency-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #d8b6bd;
  border-radius: 999px;
  background: #f8efec;
  color: #7d3f4d;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.ldck-root .ldck-emergency-chip[hidden] { display: none !important; }
.ldck-root .ldck-emergency-chip:hover,
.ldck-root .ldck-emergency-chip:focus-visible {
  background: #f2e0dc;
  outline: 2px solid #b98593;
  outline-offset: 2px;
}
.ldck-root .ldck-emergency-chip.is-warning {
  color: #794b1e;
  background: #fff3de;
  border-color: #d1a669;
}
.ldck-root .ldck-emergency-chip.is-error {
  color: #953d4d;
  background: #fff0ef;
  border-color: #cb8191;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity > .ldck-emergency-chip--header {
  flex: 0 0 auto;
  margin-left: auto;
  max-width: 205px;
  min-width: 0;
}
.ldck-root .ldck-compact-topbar .ldck-project-strip__identity > .ldck-emergency-chip--header span {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

/* Das Sicherungsfenster ist nur nach Klick auf die Pille sichtbar. */
.ldck-root .ldck-emergency-overlay {
  position: fixed;
  inset: 0;
  z-index: 100079;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 18px;
}
.ldck-root .ldck-emergency-overlay[hidden] { display: none !important; }
.ldck-root .ldck-emergency-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(47,37,40,.47);
  backdrop-filter: blur(2px);
}
.ldck-root .ldck-emergency-overlay > .ldck-emergency-banner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: stretch;
  gap: 16px;
  box-sizing: border-box;
  width: min(580px,100%);
  max-width: 100%;
  max-height: min(85vh,740px);
  margin: 0;
  padding: 26px;
  border: 1px solid #ead3d8;
  border-radius: 18px;
  background: #fffaf8;
  overflow-y: auto;
  box-shadow: 0 24px 75px rgba(50,34,41,.26);
}
.ldck-root .ldck-emergency-overlay .ldck-emergency-banner__text {
  gap: 10px;
  padding-right: 36px;
}
.ldck-root .ldck-emergency-overlay .ldck-emergency-banner__text strong {
  font-size: 20px;
  line-height: 1.3;
  color: #49383e;
}
.ldck-root .ldck-emergency-overlay .ldck-emergency-banner__text span {
  font-size: 14px;
  line-height: 1.55;
}
.ldck-root .ldck-emergency-overlay .ldck-emergency-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}
.ldck-root .ldck-emergency-overlay .ldck-emergency-banner__actions > button { min-height: 40px; }
.ldck-root .ldck-emergency-dialog__close { z-index: 2; top: 14px; right: 14px; }

/* Status und langer Sicherungstext stehen in getrennten, ungekürzten Spalten. */
@media (min-width: 1100px) {
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide
  .ldck-compact-topbar .ldck-project-strip__controls,
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide.ldck-toolbar-collapsed
  .ldck-compact-topbar .ldck-project-strip__controls {
    grid-template-columns: max-content max-content minmax(0, 1fr);
  }
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide
  .ldck-compact-topbar .ldck-project-strip__controls > .ldck-status {
    box-sizing: border-box;
    width: max-content;
    min-width: 68px;
    max-width: 185px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .ldck-root.ldck-locale-preview-enabled .ldck-editor-card--wide
  .ldck-compact-topbar .ldck-project-strip__controls > .ldck-project-save-status {
    min-width: 0;
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 1099px) {
  .ldck-root .ldck-compact-topbar .ldck-project-strip__identity {
    flex-wrap: wrap;
    white-space: normal;
  }
  .ldck-root .ldck-compact-topbar .ldck-project-strip__identity > .ldck-emergency-chip--header {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .ldck-root .ldck-emergency-overlay > .ldck-emergency-banner { padding: 20px 16px; }
  .ldck-root .ldck-emergency-overlay .ldck-emergency-banner__actions { width: 100%; }
  .ldck-root .ldck-emergency-overlay .ldck-emergency-banner__actions > button {
    flex: 1 1 170px;
    width: auto;
    max-width: 100%;
  }
  .ldck-root .ldck-emergency-chip { white-space: normal; }
}

/* CK-SEM P1 follow-up: stack action buttons in narrow property panes. */
.ldck-root .ldck-semantic-link-panel .ldck-selection-editor__buttons,
.ldck-root .ldck-semantic-link-panel .ldck-element-actions__buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}
.ldck-root .ldck-semantic-link-panel button[data-ldck-semantic-pick],
.ldck-root .ldck-semantic-link-panel button[data-ldck-semantic-clear] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 9px 12px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* CK-TRANSFORM-01 0.6.2.268: compact group transform controls in the existing
   persistent Symbol-Aktionen panel; do not affect rows / rounds. */
.ldck-root [data-ldck-free-rotate-section] {
  display: grid;
  gap: 9px;
  padding-top: 11px;
  margin-top: 6px;
  border-top: 1px solid rgba(217, 166, 160, .5);
  min-width: 0;
}
.ldck-root [data-ldck-free-rotate-section][hidden] { display: none !important; }
.ldck-root [data-ldck-free-rotate-section] > strong { font-size: 15px; color: #49323b; }
.ldck-root [data-ldck-free-rotate-section] > small { font-size: 13px; line-height: 1.45; color: #58454b; }
.ldck-root [data-ldck-free-rotate-section] .ldck-field { margin: 0; min-width: 0; }
.ldck-root [data-ldck-free-rotate-section] .ldck-field-label { font-size: 13.5px; line-height: 1.5; font-weight: 650; }
.ldck-root [data-ldck-free-rotate-section] input[data-ldck-free-rotation-angle] { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; font-size: 15px; }
