/* Leveling → Karten-Designer */
.lvcd { min-width: 0; }
.lvcd-loading { padding: 3rem 1rem; text-align: center; color: var(--lv-muted); }
.lvcd-h3 { margin: 0 0 0.2rem; font-family: var(--lv-display); font-size: 1.02rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 0.5rem; }
.lvcd-h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.45rem 0.7rem; margin: 0.4rem 0 0.8rem; font-size: 0.95rem; color: #fff; }
.lvcd-h4 i { color: var(--lv-accent); }
.lvcd-h4 span { font-size: 0.76rem; font-weight: 500; color: var(--lv-muted); }
.lvcd-count { padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--lv-accent-soft); color: #c7ccff; font-size: 0.72rem; font-family: inherit; }
.lvcd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.8rem; }
.lvcd-muted { color: var(--lv-muted); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.lvcd-empty { padding: 1rem; border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: var(--lv-radius-sm); color: var(--lv-muted); font-size: 0.85rem; text-align: center; }
.lvcd-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); }
.lvcd-dot--ms { background: transparent; box-shadow: inset 0 0 0 2px #f5c542; }
.lvcd-tag { padding: 0.12rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 650; color: #c7ccff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.lvcd-tag.is-on { color: #fff; background: rgba(88, 101, 242, 0.32); border-color: rgba(88, 101, 242, 0.6); }
.lvcd-danger:hover { color: #ff6b6e !important; background: rgba(237, 66, 69, 0.12) !important; }
.lvcd-body.is-off .lv-card:not(:first-child) { opacity: 0.86; }

/* Kopf */
.lvcd-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.4rem; align-items: center;
    background: radial-gradient(120% 140% at 0% 0%, rgba(88, 101, 242, 0.24), transparent 55%), rgba(16, 18, 30, 0.82); }
.lvcd-hero .lv-card-desc { margin: 0.35rem 0 0; max-width: 680px; }
.lvcd-hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.lvcd-switch { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 650; font-size: 0.86rem; cursor: pointer; }
.lvcd-savebar { display: flex; align-items: center; gap: 0.7rem; }
.lvcd-dirty { font-size: 0.76rem; color: var(--lv-warning); display: inline-flex; align-items: center; gap: 0.35rem; }
.lvcd-dirty i { font-size: 0.45rem; }
.lvcd-onboard { grid-column: 1 / -1; display: flex; gap: 0.6rem; align-items: center; padding: 0.7rem 0.9rem; border-radius: var(--lv-radius-sm); background: rgba(88, 101, 242, 0.12); border: 1px solid rgba(88, 101, 242, 0.3); font-size: 0.84rem; color: #dfe2ff; }

/* Bibliothek */
.lvcd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.85rem; }
.lvcd-tile { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color 0.18s, transform 0.18s; min-width: 0; }
.lvcd-tile:hover { border-color: rgba(88, 101, 242, 0.5); }
.lvcd-tile__img { position: relative; display: block; padding: 0; border: 0; cursor: pointer; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px); aspect-ratio: 1120 / 380; overflow: hidden; }
.lvcd-tile__img img, .lvcd-gal img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity 0.25s; }
.lvcd-tile__img img.is-ready, .lvcd-gal img.is-ready { opacity: 1; }
.lvcd-tile__edit { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 7, 14, 0.55); color: #fff; font-weight: 700; font-size: 0.85rem; opacity: 0; transition: opacity 0.18s; }
.lvcd-tile__img:hover .lvcd-tile__edit, .lvcd-tile__img:focus-visible .lvcd-tile__edit { opacity: 1; }
.lvcd-tile__meta { padding: 0.65rem 0.8rem 0.3rem; min-width: 0; }
.lvcd-tile__name { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvcd-tile__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.lvcd-tile__actions { display: flex; justify-content: flex-end; gap: 0.15rem; padding: 0.2rem 0.4rem 0.45rem; margin-top: auto; }
.lvcd-tile--add { align-items: center; justify-content: center; gap: 0.35rem; min-height: 170px; cursor: pointer; border: 1.5px dashed rgba(88, 101, 242, 0.45); background: rgba(88, 101, 242, 0.06); color: #c7ccff; font-family: inherit; }
.lvcd-tile--add i { font-size: 1.4rem; color: var(--lv-accent); }
.lvcd-tile--add strong { font-size: 0.92rem; color: #fff; }
.lvcd-tile--add span { font-size: 0.76rem; color: var(--lv-muted); }
.lvcd-tile--add:hover { background: rgba(88, 101, 242, 0.14); transform: translateY(-1px); }

/* Standard-Modus */
.lvcd-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin: 0.7rem 0 0.9rem; }
.lvcd-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; text-align: left; padding: 0.8rem 0.9rem; border-radius: 12px; cursor: pointer; font-family: inherit; color: var(--lv-text); background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.09); transition: border-color 0.18s, background 0.18s; }
.lvcd-mode i { color: var(--lv-muted); font-size: 1rem; margin-bottom: 0.15rem; }
.lvcd-mode strong { font-size: 0.88rem; }
.lvcd-mode span { font-size: 0.74rem; color: var(--lv-muted); line-height: 1.4; }
.lvcd-mode:hover { border-color: rgba(255, 255, 255, 0.2); }
.lvcd-mode.is-on { border-color: var(--lv-accent); background: rgba(88, 101, 242, 0.14); box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.4) inset; }
.lvcd-mode.is-on i { color: var(--lv-accent); }
.lvcd-field-inline { max-width: 360px; }
.lvcd-pool { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.lvcd-pool__label { font-size: 0.78rem; color: var(--lv-muted); margin-right: 0.2rem; }
.lvcd-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 0.8rem; font-weight: 600; color: var(--lv-muted); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.lvcd-chip b { padding: 0 0.4rem; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.68rem; color: #fff; }
.lvcd-chip.is-on { color: #fff; background: rgba(88, 101, 242, 0.2); border-color: rgba(88, 101, 242, 0.6); }
.lvcd-warn { color: var(--lv-warning) !important; margin-top: 0.5rem; }

/* Regeln */
.lvcd-rules { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.7rem 0; }
.lvcd-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; padding: 0.55rem 0.7rem; border-radius: 12px; background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.84rem; }
.lvcd-rule.is-off { opacity: 0.55; }
.lvcd-rule__num { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; background: rgba(88, 101, 242, 0.2); color: #c7ccff; flex-shrink: 0; }
.lvcd-rule__params { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; color: var(--lv-muted); }
.lvcd-rule__arrow { color: var(--lv-muted); font-size: 0.75rem; }
.lvcd-rule__design { min-width: 150px; }
.lvcd-rule__tools { display: inline-flex; align-items: center; gap: 0.1rem; margin-left: auto; }
.lvcd-rule__tools .lv-toggle { margin-right: 0.3rem; }
.lvcd-sel, .lvcd-num { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; padding: 0.38rem 0.55rem; color: #fff; font-family: inherit; font-size: 0.82rem; }
.lvcd-sel:focus, .lvcd-num:focus { outline: none; border-color: var(--lv-accent); box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.22); }
.lvcd-rule-add { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.4rem; }

/* Zeitstrahl */
.lvcd-timeline { display: grid; grid-template-columns: repeat(50, minmax(0, 1fr)); gap: 3px; }
.lvcd-cell { position: relative; aspect-ratio: 1 / 1.6; min-height: 14px; padding: 0; border: 0; border-radius: 3px; cursor: pointer; background: var(--c); transition: transform 0.12s, filter 0.12s; }
.lvcd-cell:hover { transform: scaleY(1.18); filter: brightness(1.25); z-index: 1; }
.lvcd-cell.is-random { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0 3px, rgba(255, 255, 255, 0.12) 3px 6px); }
.lvcd-cell.is-ms::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #f5c542; }
.lvcd-axis { display: flex; justify-content: space-between; margin-top: 0.7rem; font-size: 0.68rem; color: var(--lv-muted); font-variant-numeric: tabular-nums; }
.lvcd-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.7rem; }
.lvcd-legend__item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--lv-text); }
.lvcd-test { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.lvcd-test__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; font-size: 0.84rem; }
.lvcd-test__bar label { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.lvcd-test__bar .lvcd-num { width: 80px; }
.lvcd-test__img { margin-top: 0.75rem; max-width: 640px; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.3); aspect-ratio: 1120 / 380; }
.lvcd-test__img img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: 0; transition: opacity 0.25s; }
.lvcd-test__img img.is-ready { opacity: 1; }

/* Modal */
body.lvcd-noscroll { overflow: hidden !important; }
.lvcd-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lvcd-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 4, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lvcd-modal__box { position: relative; width: min(1100px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: rgba(14, 16, 27, 0.98); border: 1px solid rgba(88, 101, 242, 0.3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lvcd-modal--editor .lvcd-modal__box { width: min(1360px, 100%); height: calc(100dvh - 32px); }
.lvcd-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); flex-shrink: 0; }
.lvcd-modal__head h3 { margin: 0; font-family: var(--lv-display); color: #fff; }
.lvcd-modal__head p { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--lv-muted); }
.lvcd-modal__scroll { overflow-y: auto; padding: 1rem 1.2rem 1.4rem; }
.lvcd-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); color: #fff; cursor: pointer; flex-shrink: 0; }
.lvcd-x:hover { background: rgba(255, 255, 255, 0.12); }

/* Galerie */
.lvcd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; margin-bottom: 1.4rem; }
.lvcd-gal { display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 13px; overflow: hidden; cursor: pointer; font-family: inherit; color: var(--lv-text); background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color 0.16s, transform 0.16s; }
.lvcd-gal img { aspect-ratio: 1120 / 380; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px); }
.lvcd-gal:hover, .lvcd-gal:focus-visible { border-color: var(--lv-accent); transform: translateY(-2px); outline: none; }
.lvcd-gal__meta { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.6rem 0.75rem 0.75rem; }
.lvcd-gal__meta strong { font-size: 0.9rem; color: #fff; }
.lvcd-gal__meta small { font-size: 0.74rem; color: var(--lv-muted); line-height: 1.4; }
.lvcd-gal__tags { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.15rem; }
.lvcd-gal__tags em { font-style: normal; font-size: 0.66rem; font-weight: 650; padding: 0.08rem 0.45rem; border-radius: 999px; background: rgba(88, 101, 242, 0.18); color: #c7ccff; }

/* Editor */
.lvcd-ed-title { display: flex; align-items: center; gap: 0.6rem; min-width: 0; flex: 1; }
.lvcd-ed-title input { min-width: 0; flex: 1; max-width: 380px; background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 0.35rem 0.5rem; color: #fff; font-family: var(--lv-display); font-size: 1.1rem; font-weight: 700; }
.lvcd-ed-title input:hover { border-color: rgba(255, 255, 255, 0.12); }
.lvcd-ed-title input:focus { outline: none; border-color: var(--lv-accent); background: rgba(0, 0, 0, 0.3); }
.lvcd-ed-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.lvcd-editor { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); }
.lvcd-stage { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.2rem; overflow-y: auto; background: radial-gradient(80% 60% at 50% 30%, rgba(88, 101, 242, 0.1), transparent 70%), #0a0b12; border-right: 1px solid rgba(255, 255, 255, 0.07); }
.lvcd-stage__frame { position: relative; border-radius: 14px; overflow: hidden; background: #313338; padding: 14px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); min-height: 120px; }
.lvcd-stage__frame img { display: block; width: 100%; height: auto; border-radius: 6px; opacity: 0; transition: opacity 0.2s; }
.lvcd-stage__frame img.is-ready { opacity: 1; }
.lvcd-stage__spin { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.lvcd-stage__spin.is-on { opacity: 1; }
.lvcd-stage__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; font-size: 0.84rem; }
.lvcd-stage__bar label { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--lv-muted); white-space: nowrap; }
.lvcd-stage__bar strong { color: #fff; min-width: 2ch; font-variant-numeric: tabular-nums; }
.lvcd-stage__bar input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--lv-accent); }
.lvcd-quick { display: inline-flex; gap: 0.25rem; }
.lvcd-quick button { padding: 0.25rem 0.55rem; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #fff; cursor: pointer; font-size: 0.76rem; font-family: inherit; }
.lvcd-quick button:hover { border-color: var(--lv-accent); }
.lvcd-stage__note { display: flex; gap: 0.4rem; align-items: center; }
.lvcd-stage__note i { color: var(--lv-success); }
.lvcd-controls { overflow-y: auto; padding: 0.8rem 1rem 2rem; }

.lvcd-sec { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.lvcd-sec summary { list-style: none; display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 0.2rem; cursor: pointer; font-weight: 700; font-size: 0.9rem; color: #fff; user-select: none; }
.lvcd-sec summary::-webkit-details-marker { display: none; }
.lvcd-sec summary > i:first-child { width: 18px; text-align: center; color: var(--lv-accent); }
.lvcd-sec__chev { margin-left: auto; font-size: 0.7rem; color: var(--lv-muted); transition: transform 0.18s; }
.lvcd-sec[open] .lvcd-sec__chev { transform: rotate(180deg); }
.lvcd-sec__body { display: flex; flex-direction: column; gap: 0.75rem; padding: 0 0.2rem 1rem; }
.lvcd-f input[type="range"] { accent-color: var(--lv-accent); width: 100%; }
.lvcd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.lvcd-togs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 0.8rem; }
.lvcd-tog { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; cursor: pointer; }
.lvcd-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.lvcd-color { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.5rem; border-radius: 10px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); min-width: 0; }
.lvcd-color__sw { position: relative; width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.lvcd-color__sw input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.lvcd-color__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lvcd-color__txt span { font-size: 0.68rem; color: var(--lv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvcd-color__txt input { width: 100%; background: transparent; border: 0; padding: 0; color: #fff; font: 600 0.8rem ui-monospace, Consolas, monospace; }
.lvcd-color__txt input:focus { outline: none; color: #c7ccff; }
.lvcd-mini { width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: var(--lv-muted); cursor: pointer; flex-shrink: 0; }
.lvcd-mini:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lvcd-themes { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lvcd-theme { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem 0.3rem 0.35rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #fff; cursor: pointer; font-family: inherit; font-size: 0.76rem; font-weight: 600; }
.lvcd-theme span { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.lvcd-theme:hover { border-color: var(--lv-accent); }
.lvcd-layouts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
.lvcd-layout { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.5rem 0.25rem; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 0.7rem; font-weight: 600; color: var(--lv-muted); background: rgba(0, 0, 0, 0.26); border: 1px solid rgba(255, 255, 255, 0.09); }
.lvcd-layout.is-on { color: #fff; border-color: var(--lv-accent); background: rgba(88, 101, 242, 0.16); }
.lvcd-layout__ico { position: relative; width: 52px; height: 22px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; gap: 4px; padding: 0 4px; overflow: hidden; }
.lvcd-layout__ico i { width: 12px; height: 12px; border-radius: 50%; background: #c7ccff; flex-shrink: 0; }
.lvcd-layout__ico b { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.5); }
.lvcd-layout__ico s { width: 12px; height: 12px; border-radius: 3px; background: var(--lv-accent); flex-shrink: 0; transform: rotate(45deg) scale(0.8); }
.lvcd-layout__ico u { position: absolute; right: 3px; top: 1px; font: 900 18px/20px sans-serif; color: rgba(88, 101, 242, 0.7); text-decoration: none; }
.lvcd-layout__ico u::before { content: '42'; }
.lvcd-layout__ico em { width: 16px; align-self: stretch; margin-left: -4px; background: var(--lv-accent); clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%); }
.lvcd-ico--centered { flex-direction: column; justify-content: center; gap: 2px; }
.lvcd-ico--centered i { width: 9px; height: 9px; }
.lvcd-ico--centered b { flex: none; width: 26px; }
.lvcd-upload { display: flex; gap: 0.7rem; align-items: flex-start; }
.lvcd-upload__thumb { width: 96px; height: 54px; flex-shrink: 0; border-radius: 9px; background: #000 center / cover no-repeat; border: 1px solid rgba(255, 255, 255, 0.12); display: grid; place-items: center; color: var(--lv-muted); }
.lvcd-upload__btns { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.lvcd-upload__btns .lv-hint { width: 100%; margin: 0.1rem 0 0; }

@media (max-width: 1080px) {
    .lvcd-editor { grid-template-columns: 1fr; overflow-y: auto; }
    .lvcd-stage { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); overflow: visible; position: sticky; top: 0; z-index: 2; padding: 0.8rem; }
    .lvcd-stage__note { display: none; }
    .lvcd-controls { overflow: visible; }
    .lvcd-modal--editor .lvcd-modal__box { overflow-y: auto; }
}
@media (max-width: 760px) {
    .lvcd-hero { grid-template-columns: 1fr; }
    .lvcd-hero__side { align-items: stretch; }
    .lvcd-savebar { justify-content: space-between; }
    .lvcd-modes { grid-template-columns: 1fr; }
    .lvcd-timeline { grid-template-columns: repeat(25, minmax(0, 1fr)); }
    .lvcd-rule__tools { margin-left: 0; width: 100%; justify-content: flex-end; }
    .lvcd-modal { padding: 0; }
    .lvcd-modal__box, .lvcd-modal--editor .lvcd-modal__box { max-height: 100dvh; height: 100dvh; border-radius: 0; }
    .lvcd-modal__head { flex-wrap: wrap; padding: 0.75rem 0.9rem; }
    .lvcd-ed-actions { width: 100%; justify-content: flex-end; }
    .lvcd-colors, .lvcd-togs { grid-template-columns: 1fr; }
    .lvcd-layouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lvcd-quick { display: none; }
    .lvcd-grid, .lvcd-gallery { grid-template-columns: 1fr; }
}
.lvcd [hidden], .lvcd-modal [hidden] { display: none !important; }

/* Übersicht: Einrichtungs-Check (leveling-health.js) */
.lvh-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.lvh-score { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.lvh-ring { width: 64px; height: 64px; display: block; }
.lvh-pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.9rem; font-weight: 800; color: #fff; }
.lvh-title { margin: 0; font-family: var(--lv-display); font-size: 1.02rem; color: #fff; }
.lvh-sub { margin: 3px 0 0; font-size: 0.84rem; color: var(--lv-muted); }
.lvh-sub.is-crit { color: #ffb3b5; font-weight: 600; }
.lvh-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lvh-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.24); border: 1px solid rgba(255, 255, 255, 0.07); }
.lvh-item > i { width: 18px; text-align: center; flex-shrink: 0; }
.lvh-item > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lvh-item strong { font-size: 0.85rem; color: #fff; }
.lvh-item span { font-size: 0.75rem; color: var(--lv-muted); line-height: 1.4; }
.lvh-item.is-ok > i { color: #3ba55d; }
.lvh-item.is-tip > i { color: #faa61a; }
.lvh-item.is-crit { border-color: rgba(237, 66, 69, 0.45); background: rgba(237, 66, 69, 0.08); }
.lvh-item.is-crit > i { color: #ff6b6e; }
.lvh-item.is-wait > i { color: var(--lv-muted); }
@media (max-width: 760px) { .lvh-list { grid-template-columns: 1fr; } }
.lvcd-rank-img { margin-top: 0.4rem; aspect-ratio: 1120 / 464; }
.lvcd-send { position: relative; display: flex; }
.lvcd-send__pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; width: min(340px, 90vw); padding: 12px; border-radius: 14px; border: 1px solid rgba(88, 101, 242, 0.4); background: rgba(14, 16, 26, 0.98); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; gap: 8px; }
.lvcd-send__pop[hidden] { display: none; }
.lvcd-send__pop label { font-size: 0.74rem; color: var(--lv-muted); font-weight: 600; }
.lvcd-send__pop select { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; padding: 0.45rem 0.6rem; color: #fff; font-family: inherit; }
.lvcd-send__pop .lv-hint { margin: 0; }
.lvcd-send__btns { display: flex; justify-content: flex-end; gap: 6px; }

/* ---------- Animierte Level-Up-Karten ---------- */
.lvcd-anim { margin-bottom: 16px; }
.lvcd-anim.is-on { border-color: rgba(139, 147, 255, 0.45); box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.15) inset, 0 16px 40px rgba(88, 101, 242, 0.12); }
.lvcd-anim__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lvcd-new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #1a1400; background: linear-gradient(135deg, #fde68a, #f59e0b); vertical-align: 2px; }
.lvcd-anim__body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; margin-top: 14px; align-items: start; }
.lvcd-anim:not(.is-on) .lvcd-anim__opts { opacity: 0.55; }
.lvcd-fxrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lvcd-fx { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: rgba(235, 237, 245, 0.75); font-size: 0.82rem; font-weight: 600; cursor: pointer; user-select: none; }
.lvcd-fx input { position: absolute; opacity: 0; pointer-events: none; }
.lvcd-fx.is-on { color: #fff; border-color: rgba(139, 147, 255, 0.6); background: rgba(88, 101, 242, 0.2); }
.lvcd-fx:focus-within { outline: 2px solid #8b93ff; outline-offset: 2px; }
.lvcd-anim__conf { width: 100%; margin-bottom: 10px; }
.lvcd-anim__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.lvcd-anim__hint { margin: 10px 0 0; font-size: 0.78rem; color: rgba(235, 237, 245, 0.5); }
.lvcd-anim__preview { display: grid; place-items: center; min-height: 150px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.25); overflow: hidden; color: rgba(235, 237, 245, 0.45); font-size: 0.85rem; }
.lvcd-anim__preview img { display: block; width: 100%; height: auto; }
.lvcd-anim__preview .is-err { color: #ff9ea0; }
@media (max-width: 760px) { .lvcd-anim__body { grid-template-columns: 1fr; } }

/* ---------- KI-Design ---------- */
.lvcd-ai { margin-bottom: 18px; padding: 14px; border-radius: 16px; border: 1px solid rgba(139, 147, 255, 0.4); background: radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, 0.2), transparent 60%), rgba(88, 101, 242, 0.06); }
.lvcd-ai__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lvcd-ai__head strong { display: block; color: #fff; font-size: 1rem; }
.lvcd-ai__head small { display: block; color: rgba(235, 237, 245, 0.6); font-size: 0.8rem; line-height: 1.45; }
.lvcd-ai__ico { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #5865f2, #8b5cf6); box-shadow: 0 8px 20px rgba(88, 101, 242, 0.35); }
.lvcd-ai__row { display: flex; gap: 10px; align-items: stretch; }
.lvcd-ai__row textarea { flex: 1; min-height: 46px; resize: vertical; }
.lvcd-ai__row .lv-btn { flex-shrink: 0; white-space: nowrap; }
.lvcd-ai__ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lvcd-ai__idea { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: rgba(235, 237, 245, 0.75); font: 600 0.76rem Inter, system-ui, sans-serif; cursor: pointer; }
.lvcd-ai__idea:hover { color: #fff; border-color: rgba(139, 147, 255, 0.55); background: rgba(88, 101, 242, 0.16); }
.lvcd-ai__msg { margin: 10px 0 0; font-size: 0.82rem; color: #ff9ea0; }

/* Premium-Teile auf Free-Servern */
.lvcd-locked { position: relative; }
.lvcd-locked > *:not(.lvcd-premium) { opacity: 0.55; filter: saturate(0.6); }
.lvcd-premium { position: absolute; top: -0.65rem; right: 0.9rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: #1a1305; background: linear-gradient(135deg, #f5c542, #f59e0b); box-shadow: 0 2px 10px rgba(245, 197, 66, 0.25); text-decoration: none; }
.lvcd-premium:hover { filter: brightness(1.08); }
.lvcd-gal { position: relative; }
.lvcd-gal.is-locked img, .lvcd-gal.is-locked .lvcd-gal__meta { opacity: 0.5; filter: saturate(0.5); }
.lvcd-gal__lock { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; color: #1a1305; background: linear-gradient(135deg, #f5c542, #f59e0b); }
.lvcd-mode.is-locked { opacity: 0.6; }
.lvcd-mode.is-locked i { color: #f5c542; }
.lvcd-free-hint { margin: 0 0 0.9rem; padding: 0.6rem 0.8rem; border-radius: 10px; font-size: 0.84rem; color: #f8e3a3; background: rgba(245, 197, 66, 0.08); border: 1px solid rgba(245, 197, 66, 0.25); }
.lvcd-free-hint i { color: #f5c542; margin-right: 0.3rem; }
@media (max-width: 600px) { .lvcd-ai__row { flex-direction: column; } }
