
:root,
#ton-shell, .asg-preview .asg-page, .at-erkundung, .ae-vorschau-laeufer {
  --font: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --hand: 'Playwrite DE Grund', cursive;
  --panel: #ffffff;
  --paper: #ffffff;
  --line: #dcd8d0;
  --shadow: 0 1px 6px rgba(38, 36, 31, .2);
  --raised: var(--panel);
  --field: #f3f2ef;
  --field-hover: color-mix(in srgb, var(--field) 97%, var(--ink));
  --field-pressed: color-mix(in srgb, var(--field) 88%, var(--ink));
  --edge: #8a857c;              
  --ink: #26241f;
  --muted: #6e6a62;
  --status-ok: #217953;
  --status-ok-soft: #e4f3ed;
  --attention: #fff0a6;         
  --status-warnung: #92621d;
  --status-gehalten: #3b6ea5;
  --status-fehler: #b93f5a;
  --live-text: #1668b3;
}
:root {
  --chrome: #f3f2ef;
  --accent: #0b5c8d;
  --accent-ink: #ffffff;        
  --accent-hover: color-mix(in srgb, var(--accent) 82%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--panel));
  --accent-line: color-mix(in srgb, var(--accent) 38%, var(--line));
  --gruen: #1f9e6a;
  --bernstein: #e0a020;
  --r: 6px;                     
  --r-small: 3px;               
  --r-paper: 2px;               
  --r-speech: 12px;             
  --pill: 999px;                
  --round: 50%;                 
  --stage-bg: #0e1016;
  --scroll: color-mix(in srgb, #1668b3 42%, var(--line));
  --bounce: cubic-bezier(.34, 1.4, .5, 1);
}
:root[data-farbmodus="dunkel"] {
  color-scheme: dark;
  --at-buehne: #101012;
  --panel: #17171a;
  --chrome: #0e0e10;
  --line: #33333a;              
  --shadow: 0 1px 6px rgba(0, 0, 0, .6);
  --raised: #202024;
  --field: #2a2a30;
  --edge: #807e86;              
  --ink: #ecebe6;               
  --muted: #a09d96;             
  --status-ok: #62c79b;
  --status-ok-soft: #1c3025;
  --attention: #353013;
  --status-warnung: #d8a85c;
  --status-gehalten: #8db3e2;
  --status-fehler: #ee93a7;
  --scroll: color-mix(in srgb, #6fb3e0 42%, var(--line));
  --live-text: #6c9cc7;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--panel);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.group { display: flex; align-items: center; gap: 6px; }
:root {
  --mask-underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 6' preserveAspectRatio='none'%3E%3Cpath d='M1.5 3.9Q260 2.3 598.5 3.1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --mask-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.6 4.2Q10 10.6 16.9 16.5M16.3 3.3Q9.7 10.1 3.4 16.9' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --mask-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --mask-title-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 10' preserveAspectRatio='none'%3E%3Cpath d='M1.5 3.2Q320 2.2 598.5 2.9M3 8.1Q300 7.2 596 7.6' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --mask-rule-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 4' preserveAspectRatio='none'%3E%3Cpath d='M0.8 2.4L599.2 1.6' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --mask-rule-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 600' preserveAspectRatio='none'%3E%3Cpath d='M1.6 0.8L2.3 599.2' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --mask-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M54 3.6Q72 2.8 88 3.2Q97.6 3.6 97.3 14Q97.9 50 97.4 84Q97 96.6 86 96.9Q50 97.6 13 96.5Q2.9 96.2 2.7 85Q2.2 50 3.1 15Q3.6 4.4 14.5 4.1Q40 3.2 64 2.5Q80 1.9 91 1.2' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --mask-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.8 12.6l4.6 4.6 9.8-11' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --mask-check-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M2.5 12.5Q5.5 14.5 8.6 19.2Q13.8 8.4 24 2.4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ks-title-rule { position: relative; width: fit-content; max-width: 100%; padding-bottom: 12px; }
.ks-title-rule::after {
  content: ""; position: absolute; left: -6px; right: -12px; bottom: 0; height: 10px; pointer-events: none;
  background: var(--ink); -webkit-mask: var(--mask-title-rule) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-title-rule) 0 0 / 100% 100% no-repeat;
}
.ks-note-frame { position: relative; padding: 22px 26px 18px; }
.ks-note-frame::before {
  content: ""; position: absolute; inset: -4px; pointer-events: none; background: var(--ink);
  -webkit-mask: var(--mask-rule-h) 0 2px / 100% 4px no-repeat, var(--mask-rule-h) 0 calc(100% - 2px) / 100% 4px no-repeat,
    var(--mask-rule-v) 2px 0 / 4px 100% no-repeat, var(--mask-rule-v) calc(100% - 2px) 0 / 4px 100% no-repeat;
  mask: var(--mask-rule-h) 0 2px / 100% 4px no-repeat, var(--mask-rule-h) 0 calc(100% - 2px) / 100% 4px no-repeat,
    var(--mask-rule-v) 2px 0 / 4px 100% no-repeat, var(--mask-rule-v) calc(100% - 2px) 0 / 4px 100% no-repeat;
}
.ks-circle {
  background: var(--status-ok); -webkit-mask: var(--mask-circle) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-circle) 0 0 / 100% 100% no-repeat; pointer-events: none;
}
@media (forced-colors: active) {
  .ks-title-rule::after, .ks-note-frame::before { forced-color-adjust: none; background: CanvasText; }
  .ks-circle { forced-color-adjust: none; background: Highlight; }
}
.ks-boxes { display: inline-flex; flex-wrap: wrap; gap: 3px; vertical-align: middle; }
.ks-boxes i {
  display: block; flex: none; width: 14px; height: 14px; box-sizing: border-box;
  border: 1.5px solid var(--area-ink, var(--edge)); border-radius: var(--r-paper); background: var(--panel);
}
.ks-boxes i.on { background: var(--area-ink, var(--accent)); border-color: var(--area-ink, var(--accent)); }
.ks-boxes i.half { border-color: var(--ink); background: var(--panel) repeating-linear-gradient(-55deg, transparent 0 2.5px, var(--ink) 2.5px 3.7px); }
@media (forced-colors: active) {
  .ks-boxes i { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .ks-boxes i.on { background: CanvasText; }
  .ks-boxes i.half { background: Canvas repeating-linear-gradient(-55deg, transparent 0 2.5px, CanvasText 2.5px 3.7px); }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (forced-colors: active) {
  :focus-visible { outline: 2px solid CanvasText !important; }
}
:where(button, select) {
  font: inherit;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
:where(button, select):where(:hover:not(:disabled, [aria-disabled="true"])) { background-color: var(--field); }
:where(button, select):where(:active:not(:disabled, [aria-disabled="true"])) { background-color: var(--field-pressed); color: var(--ink); }
:where(select):where(:disabled) { color: var(--muted); background-color: transparent; cursor: not-allowed; }
button:where(:not(.primary, .ks-secondary, .ks-onward, .ks-tool, .ks-switch, .ks-segmented > button,
  .ks-tabs > [role=tab])):where(:not(:is(.pl-root, .pk-fenster, .me-wahl) *)):disabled { opacity: .45; cursor: default; }
button:where([class]:not(.primary, .ks-secondary, .ks-onward, .ks-tool, .ks-switch, .ks-segmented > button,
  .ks-tabs > [role=tab])):where(:not(:is(.pl-root, .pk-fenster, .me-wahl) *)):hover:not(:disabled) { border-color: var(--accent); }
:where(.pl-root, .pk-fenster, .me-wahl) button:disabled { color: var(--muted); cursor: default; }
button.mini { padding: 2px 6px; border-width: 0; font-size: 13px; }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primary:hover:not(:disabled, [aria-disabled="true"]) {
  background: color-mix(in srgb, var(--accent) 84%, rgb(from var(--accent-ink) calc(255 - r) calc(255 - g) calc(255 - b)));
}
button.primary:active:not(:disabled, [aria-disabled="true"]) {
  background: color-mix(in srgb, var(--accent) 68%, rgb(from var(--accent-ink) calc(255 - r) calc(255 - g) calc(255 - b)));
  color: var(--accent-ink);
}
button.primary:is(:disabled, [aria-disabled="true"]) { background: var(--field); color: var(--muted); cursor: not-allowed; }
.ks-secondary, .ks-onward {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 12px 0 10px; font-weight: 600; white-space: nowrap;
}
.ks-onward { padding: 0 10px 0 12px; color: var(--accent); }
.ks-onward:active:not(:disabled) { color: var(--ink); }
.ks-secondary .ic, .ks-onward .ic { width: 18px; height: 18px; flex: none; }
.ks-secondary .ic { color: var(--accent); }
.ks-secondary:is(:disabled, [aria-disabled="true"]) .ic { color: inherit; }
.ks-back .ic { color: inherit; }
.sticky-note {
  background: var(--attention); color: var(--ink); border-radius: var(--r-paper); box-shadow: var(--shadow);
  transform: rotate(-.8deg);
}
.sticky-note.is-way { display: inline-flex; align-items: center; gap: 4px; min-height: 0; padding: 5px 8px 6px 10px; font-size: 13px;
  font-weight: 700; line-height: 1.2; text-align: left; transform: rotate(-1.2deg); }
.sticky-note.is-way .ic { flex: none; width: 16px; height: 16px; }
.sticky-note.is-way:hover:not(:disabled) { background: var(--attention); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sticky-note.is-way:active:not(:disabled) { background: color-mix(in srgb, var(--attention) 88%, var(--ink)); }
@media (pointer: coarse) { .sticky-note.is-way { min-height: 40px; } }
.ks-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 36px; height: 36px; padding: 0 8px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.ks-tool:has(> .ic + *) { padding: 0 12px 0 10px; }
.ks-tool .ic { width: 20px; height: 20px; flex: none; }
.ks-tool[aria-pressed="true"] { background-color: var(--accent-soft); color: var(--accent); }
.ks-tool[aria-pressed="true"]:hover:not(:disabled) { background-color: color-mix(in srgb, var(--accent-soft) 97%, var(--ink)); }
.ks-tool[aria-pressed="true"]:active:not(:disabled) { background-color: color-mix(in srgb, var(--accent-soft) 88%, var(--ink)); }
.ks-segmented { display: inline-flex; gap: 3px; }
.ks-segmented > button {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px;
  background-color: var(--field); font-size: 13px; font-weight: 600;
}
.ks-segmented > button:not([aria-pressed="true"]):hover:not(:disabled) { background-color: var(--field-hover); }
.ks-segmented > button:not([aria-pressed="true"]):active:not(:disabled) { background-color: var(--field-pressed); }
.ks-segmented > button[aria-pressed="true"] { background-color: var(--accent); color: var(--accent-ink); }
.ks-segmented > button:disabled { color: var(--muted); cursor: not-allowed; }
.ks-segmented > button[aria-pressed="true"]:disabled { background-color: var(--line); }
.ks-tabs { display: flex; gap: 4px; }
.ks-tabs > [role=tab] {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 8px;
  color: var(--muted); white-space: nowrap;
}
.ks-tabs > [role=tab]:hover:not(:disabled) { color: var(--ink); background-color: var(--field); }
.ks-tabs > [role=tab]:active:not(:disabled) { color: var(--ink); background-color: var(--field-pressed); }
.ks-tabs > [role=tab][aria-selected="true"] { color: var(--ink); font-weight: 600; }
.ks-tabs > [role=tab]::after {
  content: ""; position: absolute; left: 4px; right: 2px; bottom: 2px; height: 5px; pointer-events: none;
  background: var(--accent); -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; opacity: 0;
}
.ks-tabs > [role=tab][aria-selected="true"]::after { opacity: 1; }
.ks-tabs > [role=tab]:disabled::after { background: var(--muted); }
.ks-switch {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 6px 4px 46px; font-size: 13px; font-weight: 600;
}
.ks-switch::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 36px; height: 20px; margin-top: -10px;
  border: 1px solid var(--edge); border-radius: var(--pill); background: var(--panel); box-sizing: border-box;
}
.ks-switch::after {
  content: ""; position: absolute; left: 8px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: var(--round); background: var(--edge);
}
.ks-switch[aria-checked="true"]::before { background: var(--accent); border-color: var(--accent); }
.ks-switch[aria-checked="true"]::after { left: 24px; background: var(--accent-ink); }
.ks-switch:hover:not(:disabled)::before { border-color: var(--ink); }
.ks-switch:active:not(:disabled)::before { background-color: var(--field-pressed); }
.ks-switch[aria-checked="true"]:active:not(:disabled)::before { background-color: color-mix(in srgb, var(--accent) 68%, var(--ink)); }
.ks-switch:disabled::before { border-style: dashed; border-color: var(--edge); background: var(--field); }
.ks-switch:disabled::after { background: var(--muted); }
:is(.ks-secondary, .ks-onward, .ks-tool, .ks-switch, .ks-tabs > [role=tab]):disabled {
  color: var(--muted); background-color: transparent; cursor: not-allowed;
}
.ks-secondary[aria-disabled="true"] { color: var(--muted); background-color: transparent; cursor: not-allowed; }
select { font-weight: 600; }
@supports (appearance: base-select) {
  select:not([multiple], [size]), select:not([multiple], [size])::picker(select) { appearance: base-select; }
  select:not([multiple], [size]) { white-space: normal; overflow-wrap: break-word; text-align: start; }
  select:not([multiple], [size]) { align-items: center; }
  select::picker-icon {
    content: ""; flex: none; width: 16px; height: 16px; background: var(--accent);
    -webkit-mask: var(--mask-arrow) 0 0 / 100% 100% no-repeat; mask: var(--mask-arrow) 0 0 / 100% 100% no-repeat;
  }
  select:disabled::picker-icon { background: var(--muted); }
  select::picker(select) {
    padding: 4px; border: 0; border-radius: var(--r); background: var(--raised); color: var(--ink);
    box-shadow: var(--shadow);
  }
  select option { padding: 5px 8px; border-radius: var(--r-small); font-weight: 400; }
  select option:hover, select option:focus-visible { background: var(--field); }
  select option:checked { font-weight: 600; }
  select option::checkmark { display: none; }
}
label.inline { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
label.inline input { width: 58px; }
input:where([type="number"], [type="text"]):not(.ks-in-place) {
  font: inherit;
  padding: 4px 6px;
  border: 1px var(--edge-style, solid) var(--edge-now, var(--edge));
  border-radius: var(--r);
}
:where(input[type="number"], input[type="text"]) { background: var(--fill-now, var(--panel)); color: var(--ink-now, var(--ink)); }
input[type="number"] { width: 64px; }
:where(input[type="number"], input[type="text"]):where(:hover:not(:disabled)) { --edge-now: var(--ink); }
:where(input[type="number"], input[type="text"]):where(:disabled) {
  --edge-style: dashed; --edge-now: var(--line); --fill-now: var(--field); --ink-now: var(--muted);
}
.ks-search { position: relative; display: flex; align-items: center; min-width: 0; }
.ks-search > .ic { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.ks-search > input {
  flex: 1; width: 100%; min-width: 0; height: 34px; padding: 0 10px 0 34px; border: 0; border-radius: var(--r);
  background: var(--field); color: var(--ink); font: inherit; font-size: 14px; transition: background-color .15s;
}
.ks-search > input:hover { background: var(--field-hover); }
.ks-search > input::placeholder { color: var(--muted); opacity: 1; }
.ks-search > input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ks-search > kbd {
  position: absolute; right: 10px; display: inline-flex; align-items: center; justify-content: center; min-width: 22px;
  height: 22px; padding: 0 5px; border-radius: var(--r-small); background: var(--panel); color: var(--ink);
  font-family: inherit; font-size: 12px; font-weight: 600; pointer-events: none;
}
.ks-search:has(> kbd) > input { padding-right: 42px; }
.ks-search.is-large > input { height: 52px; padding-left: 46px; font-size: 16px; }
.ks-search.is-large:has(> kbd) > input { padding-right: 52px; }
.ks-search.is-large > .ic { left: 16px; width: 20px; height: 20px; }
.ks-search.is-large > kbd { right: 14px; min-width: 26px; height: 26px; font-size: 13px; }
@media (pointer: coarse) { .ks-search.is-large > kbd { display: none; } }
@media (forced-colors: active) { .ks-search > input { border: 1px solid CanvasText; } }
input[type="checkbox"], input[type="radio"].ks-pick {
  appearance: none; -webkit-appearance: none;
  position: relative; display: inline-block; flex: none; vertical-align: middle;
  width: 18px; height: 18px;
  border: 1.5px solid var(--edge); border-radius: var(--r-small); background: var(--panel); cursor: pointer;
}
input[type="checkbox"]::before, input[type="radio"].ks-pick::before {
  content: ""; position: absolute; inset: -17% -22% -17% -11%; pointer-events: none;
  background: var(--accent); -webkit-mask: var(--mask-cross) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-cross) 0 0 / 100% 100% no-repeat; opacity: 0;
}
input[type="checkbox"]:checked::before, input[type="radio"].ks-pick:checked::before { opacity: 1; }
input[type="checkbox"]:hover:not(:disabled), input[type="radio"].ks-pick:hover:not(:disabled) { border-color: var(--ink); }
input[type="checkbox"]:active:not(:disabled), input[type="radio"].ks-pick:active:not(:disabled) { border-color: var(--ink); background-color: var(--field-pressed); }
input[type="checkbox"]:disabled, input[type="radio"].ks-pick:disabled { border-style: dashed; background-color: var(--field); cursor: not-allowed; }
input[type="checkbox"]:disabled::before, input[type="radio"].ks-pick:disabled::before { background: var(--muted); }
input[type="radio"] { accent-color: var(--accent); }
@media (forced-colors: active) {
  input[type="checkbox"]::before, input[type="radio"].ks-pick::before, .ks-tabs > [role=tab]::after, .se-tab::after,
  .ks-switch[aria-checked="true"]::before, .ks-switch::after {
    forced-color-adjust: none; background: CanvasText;
  }
  .ks-switch[aria-checked="true"]::after { background: Canvas; }
  select::picker-icon { forced-color-adjust: none; background: CanvasText; }
}
input.no-native-spin { -moz-appearance: textfield; appearance: textfield; }
input.no-native-spin::-webkit-inner-spin-button,
input.no-native-spin::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.num-spin { display: inline-flex; flex-direction: column; vertical-align: middle; margin-left: 1px; }
.num-spin button {
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; padding: 0;
  width: 14px; height: 10px; min-width: 0;
  min-height: 0;
  color: var(--ink); cursor: pointer;
}
.num-spin .ic { width: 12px; height: 12px; }
.num-spin-up .ic { transform: rotate(180deg); }
@media (max-width: 700px) {
  .num-spin button { height: 15px; }
  .num-spin .ic { width: 15px; height: 15px; }
}
.num-spin button:hover { background: var(--field); border-radius: var(--r-small); }
.ks-in-place {
  display: inline-block; min-width: 4ch; margin: -2px -6px; padding: 2px 6px;
  border: 0; border-radius: var(--r-small); background: transparent; color: inherit; font: inherit;
}
.ks-in-place:hover { background: var(--field); }
.ks-in-place:focus, .ks-in-place:focus-visible { outline: none; background: var(--field); color: var(--accent); caret-color: var(--accent); }
.ks-in-place:empty::before { content: attr(data-empty); color: var(--muted); }
.track-list button.lockflag:focus-visible,
.trk .mute.muted:focus-visible { opacity: 1; }
:root { --header-h: 48px; }
.ks-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0;
  min-height: var(--header-h); padding: 4px 12px; border-bottom: 1px solid var(--line); background: var(--panel);
}
@media (max-width: 1179px) {
  .ks-header :is(.ks-tool, .ks-secondary, .ks-onward, button.primary):has(> :is(svg, .ic)) > span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
.class-grid { display: grid; }
.class-grid-head, .class-grid-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.class-grid-head {
  position: sticky; top: 0; z-index: 2; align-items: end; background: var(--panel); border-bottom: 1px solid var(--line);
}
.class-grid-head > * { padding: 12px 16px 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.class-grid-head > :first-child { padding-left: 0; font-size: 13px; font-weight: 400; color: var(--muted); }
.class-grid-head > .is-today { background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.class-grid-row { border-bottom: 1px solid var(--line); }
.class-grid-cell { min-width: 0; padding: 16px 16px 14px; border-left: 1px solid var(--line); }
.class-grid-cell.is-joined, .class-grid-cell.is-today, .class-grid-cell.is-today + .class-grid-cell { border-left-color: transparent; }
.class-grid-cell.is-today { background: var(--accent-soft); }
.class-grid-name-cell { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 14px 12px 16px 0; }
.class-grid-name {
  margin: 0; font-family: var(--hand); font-weight: 400; font-size: 42px; line-height: 1.15; color: var(--ink);
  overflow-wrap: anywhere; hyphens: auto;
}
.class-grid-name.is-long { font-size: 30px; }
.class-grid-name.is-longer { font-size: 24px; }
.class-grid-name.is-print { font-family: var(--font); font-size: 20px; font-weight: 600; line-height: 1.25; }
.class-grid-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.class-grid-extra { grid-column: 1 / -1; padding: 0 0 14px; }
.class-grid-more { margin: 4px 0 0 -8px; min-height: 28px; padding: 2px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.class-grid-more:hover:not(:disabled) { color: var(--ink); }
.state-mark { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.state-mark .ic { flex: none; width: 20px; height: 20px; overflow: visible; }
.state-mark.is-open { color: var(--muted); }
.state-mark.is-open .ic { color: var(--edge); }
.state-mark.is-ready .ic { color: var(--accent); }
.state-mark.is-due .ic { color: var(--status-warnung); }
.state-mark.is-done .ic { color: var(--status-gehalten); }
@media (forced-colors: active) { .state-mark .ic { color: CanvasText; } }
@media (max-width: 760px) {
  .class-grid { display: block; }
  .class-grid-head { display: none; }
  .class-grid-row { display: block; padding-bottom: 6px; }
  .class-grid-name-cell { padding: 14px 0 4px; }
  .class-grid-cell { min-height: 0; padding: 10px 12px 14px; border-left: 0; }
  .class-grid-cell:empty { display: none; }
  .class-grid-cell > h3.ks-sr {
    position: static; width: auto; height: auto; margin: 0 0 10px; overflow: visible; clip: auto; white-space: normal;
    font-size: 13px; font-weight: 600; color: var(--muted);
  }
}
.body-row { display: flex; flex: 1; min-height: 0; }
.hint { color: var(--muted); font-size: 12px; }
.track-list .trk {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  min-width: 0;
  flex-wrap: nowrap;   
  overflow: hidden;    
}
.track-list .trk span { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-list .trk > :not(.trk-name) { flex: none; }
.track-list input.trk-name {
  flex: 1 1 40px;      
  min-width: 24px;
  font-size: 12.5px;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: var(--r-small);
  background: transparent;
}
.track-list input.trk-name:hover, .track-list input.trk-name:focus { border-color: var(--line); background: var(--panel); }
.track-list input[type="color"] { width: 26px; height: 20px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-small); background: none; }
.track-list button.solo { padding: 0 4px; color: var(--muted); font-weight: 700; }
.track-list button.solo.on { color: var(--accent-ink); background: var(--accent); border-radius: var(--r-small); }
.track-list button.accflag.on { background: var(--accent); border-radius: var(--r-small); }
.track-list button.lockflag { opacity: 0.4; }
.track-list button.lockflag.on { opacity: 1; background: var(--accent); border-radius: var(--r-small); }
body.persona-teen .track-list button.lockflag { pointer-events: none; }
.trk .grip { cursor: grab; color: var(--muted); user-select: none; flex: none; display: inline-flex; touch-action: none; }
.trk .grip svg { width: 14px; height: 14px; display: block; }
.trk .mute svg { display: block; }
.trk .mute.muted { opacity: .45; }
.trk-plus {
  display: block;
  width: 100%;
  margin-top: 3px;
  padding: 2px 0;
  color: var(--muted);
  font-weight: 700;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: none;
}
.trk-plus:hover { color: var(--accent); border-color: var(--accent); }
.opt-irrelevant { display: none !important; }
.opt-hidden { display: none !important; }
.trk.dragging { opacity: 0.45; }
.trk.drop-above { box-shadow: inset 0 2px 0 0 var(--accent); }
.trk.drop-below { box-shadow: inset 0 -2px 0 0 var(--accent); }
body.lz-on .se-col #track-list .trk.drop-above { box-shadow: inset 0 2px 0 0 var(--blau); }
body.lz-on .se-col #track-list .trk.drop-below { box-shadow: inset 0 -2px 0 0 var(--blau); }
#btn-acconly.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ks-menu { position: fixed; z-index: 1000; min-width: 168px; max-width: min(320px, calc(100vw - 8px)); max-height: calc(100vh - 8px); overflow-y: auto; padding: 4px; background: var(--raised); border: 0; border-radius: var(--r); box-shadow: var(--shadow); font-size: 13px; color: var(--ink); animation: ks-pop-in .15s ease-out; }
@keyframes ks-pop-in { from { opacity: 0; transform: translateY(2px); } }
.ks-menu > button { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; width: 100%; min-height: 32px; padding: 4px 12px 4px 8px; border: 0; border-radius: var(--r); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ks-menu .ks-menu-label { flex: 1 1 auto; min-width: 0; }
.ks-menu button:hover:not([aria-disabled="true"]), .ks-menu button:focus-visible { background: var(--field); }
.ks-menu button:active:not([aria-disabled="true"]) { background: var(--field-pressed); }
.ks-menu button:focus-visible { outline-offset: -2px; }
.ks-menu button[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.ks-menu button[aria-expanded="true"] { background: var(--field); }
.ks-menu > button[aria-checked="true"] .ks-menu-label { font-weight: 600; }
.ks-menu > button > svg { width: 12px; height: 12px; flex: none; color: var(--muted); }
.ks-menu .ks-menu-ic { flex: none; display: inline-flex; width: 16px; height: 16px; color: var(--muted); }
.ks-menu .ks-menu-ic svg { width: 16px; height: 16px; }
.ks-menu > button[aria-checked="true"] .ks-menu-ic { color: var(--accent); }
.ks-menu .ks-menu-reason { flex-basis: 100%; font-size: 11px; color: var(--muted); }
.ks-menu-gutter .ks-menu-reason { padding-left: 24px; }
.ks-menu .ks-menu-dim { opacity: .55; font-style: italic; }
.ks-menu .ks-menu-heading { padding: 6px 12px 2px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ks-menu .ks-menu-sep { height: 1px; margin: 4px 8px; background: var(--line); }
.ks-menu .ks-menu-row { display: flex; align-items: center; gap: 2px; padding: 2px 4px 2px 8px; }
.ks-menu .ks-menu-row-name { flex: 1; min-width: 64px; color: var(--muted); }
.ks-menu .ks-menu-row button { width: auto; min-height: 0; padding: 5px 8px; border: 0; border-radius: var(--r); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.ks-menu .ks-menu-row button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (pointer: coarse) {
  .ks-menu > button { min-height: 40px; }
  .ks-menu .ks-menu-row button { min-height: 36px; min-width: 36px; }
}
.trk.band-block,
body.se-on .se-col #track-list .trk.band-block,
body.lz-on .se-col #track-list .trk.band-block {
  display: block; border-top: 2px solid var(--line);
  padding-top: 6px; margin-top: 4px; overflow: visible;
}
.band-kopf { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; margin-bottom: 3px; }
.band-kopf button { margin-left: auto; }
.band-zeile { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.band-name { flex: 0 0 auto; min-width: 74px; font-size: 12px; opacity: 0.85; }   
.band-zeile .mix { flex: 1 1 auto; }
.band-falt { display: flex; align-items: center; justify-content: center; margin-top: 6px; }
.drag-geist { pointer-events: none; }   
.select-box {
  position: absolute;
  z-index: 25;
  border: 1.5px dashed #0f62d6;
  background: rgba(15, 98, 214, 0.08);
  pointer-events: none;
}
.lyric-input[type="text"] {
  position: absolute;
  z-index: 30;
  width: 90px;
  padding: 3px 6px;
  font-size: 12.5px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.lyric-input.inplace {
  padding: 1px 3px;
  font-family: Verdana, Tahoma, 'DejaVu Sans', sans-serif;
  color: var(--muted);
  border: 1px solid var(--accent);
  border-radius: var(--r-small);
  box-shadow: none;
}
.tab-add {
  flex: none;
  padding: 3px 10px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--r) var(--r) 0 0;
  background: var(--field);
  color: var(--muted);
}
.tab-add:hover { color: var(--accent); }
button.mini2 { padding: 2px 8px; font-size: 11.5px; margin-left: 4px; }
.track-list select.clef { padding: 1px 1px; font-size: 11.5px; width: 36px; flex: none; }
.track-list select.instr { padding: 1px 1px; font-size: 11px; width: 64px; flex: 0 1 64px; min-width: 34px; text-overflow: ellipsis; }
.track-list input.mix { width: 74px; flex: 0 1 74px; min-width: 30px; }
.main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
#score-scroll.stamping { cursor: copy; }
@media (pointer: coarse) and (min-width: 701px) {
  #perform-controls button { min-width: 60px; min-height: 54px; font-size: 24px; }
  #perform-exit { width: 54px; height: 54px; font-size: 22px; }
  #perform-progress { height: 26px; }
}
.tabbar {
  display: flex;
  gap: 4px;
  padding: 6px 10px 0;
  background: var(--field);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  flex: none;
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar.empty { display: none; }
.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  background: var(--field);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--r) var(--r) 0 0;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  max-width: 210px;
  white-space: nowrap;
}
.tab span { overflow: hidden; text-overflow: ellipsis; }
.tab.active { background: var(--panel); color: var(--ink); font-weight: 600; }
.tab .tab-x {
  border: none; background: none; padding: 0 3px;
  font-size: 14px; line-height: 1; color: var(--muted); border-radius: var(--r-small);
}
.tab .tab-x:hover { color: var(--status-fehler); background: color-mix(in srgb, var(--status-fehler) 12%, var(--panel)); }
:is(.tab-x, .tp-x)[data-unsaved]:not(:hover, :focus-visible) { color: transparent; background: radial-gradient(circle, var(--muted) 0 3.5px, transparent 4px); }
#score-scroll {
  flex: 1;
  overflow: auto;
  padding: 18px;
  background: var(--panel);
  position: relative;
}
#score-scroll:focus-visible { outline-offset: -2px; }
#score-area svg text { user-select: none; -webkit-user-select: none; cursor: default; }
#score-area svg text:not([data-uid]):not([data-addvoice]):not([data-clef]):not([data-lyr]):not([data-dyn]):not([data-addbars]):not([data-meta]):not([data-hdr]):not([data-chord]):not([data-syst]) { pointer-events: none; }
#score-area svg [data-syst] { pointer-events: all; cursor: pointer; }
#score-area svg [data-hdr] { cursor: pointer; }
#score-area svg [data-hdr] text, #score-area svg [data-hdr] path, #score-area svg [data-hdr] line, #score-area svg [data-hdr] circle { pointer-events: all; }
#score-area svg [data-hdr]:hover text { fill: var(--accent); }
#score-area svg [data-hdr]:hover path, #score-area svg [data-hdr]:hover circle { fill: var(--accent); }
#score-area svg [data-hdr]:hover line { stroke: var(--accent); }
#score-area.editing [data-rep], #score-area.editing [data-dyn] { cursor: grab; }
#score-area.editing [data-uid] { touch-action: none; }
.note-grip {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 1.2;
  opacity: 0.9;
  cursor: ew-resize;
  touch-action: none;
}
#score-area.editing text[data-lyr] { cursor: text; }
#score-area svg text[data-addbars] { cursor: pointer; }
#score-scroll.erasing, #score-scroll.erasing * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cg transform='rotate(-45 11 11)'%3E%3Crect x='6' y='3' width='10' height='8' rx='2' fill='%23e07070' stroke='%23555'/%3E%3Crect x='6' y='11' width='10' height='7' rx='2' fill='%23fff' stroke='%23555'/%3E%3C/g%3E%3C/svg%3E") 4 18, not-allowed !important;
}
.volta-plus {
  position: absolute;
  z-index: 25;
  width: 18px;
  height: 18px;
  padding: 0;
  line-height: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: var(--round);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.volta-plus:hover { transform: scale(1.15); }
#qr-pop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#qr-pop { padding: 2vh 2vw; }
.qr-pop-box { text-align: center; display: flex; flex-direction: column;
  align-items: center; justify-content: center; max-height: 96vh; }
.qr-pop-box svg { width: min(78vh, 84vw); height: auto;
  flex: 0 1 auto; min-height: 0; }
.qr-pop-code {
  font-family: Consolas, monospace;
  font-size: min(11vh, 14vw);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-top: 1vh;
}
.qr-pop-titel { font-size: min(4.5vh, 5.5vw); font-weight: 600; color: var(--ink);
  margin-top: 1.4vh; max-width: 82vw; overflow-wrap: anywhere; }
.qr-pop-hint { color: var(--muted); font-size: min(3vh, 4vw); }
#send-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 26, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ss-box {
  background: var(--panel);
  border-radius: var(--r);
  padding: 18px 18px 14px;
  width: min(440px, 92vw);
  max-height: 86vh;
  overflow: auto;
  box-shadow: var(--shadow);
}
.ss-box h3, .ss-box .ks-dialog-title { margin: 0 0 6px; font-size: 17px; }
.ss-box h4, .ss-box .ks-dialog-title ~ h3 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.ss-code {
  font-family: Consolas, monospace;
  background: var(--field);
  padding: 2px 10px;
  border-radius: var(--r);
  letter-spacing: 2px;
}
.ss-big {
  display: block;
  width: 100%;
  padding: 13px;
  margin: 10px 0 6px;
  font-size: 15.5px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.ss-big.secondary { background: var(--accent-soft); color: var(--ink); }
.ss-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin: 4px 0;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  cursor: pointer;
}
.ss-item:hover { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.se-scmine { margin: 12px 0 0; }
.se-scmine label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.se-scminelist { display: flex; flex-direction: column; gap: 4px; max-height: 150px; overflow-y: auto; }
.se-mine { text-align: left; font: inherit; font-size: 14px; padding: 6px 10px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-mine:hover { background: var(--field); }
.se-mine.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  font-weight: 600; }
#ss-status { min-height: 18px; margin-top: 4px; }
#ss-status.error { color: var(--status-fehler); }
body.persona-teen svg path.nh[data-uid],
body.persona-teen svg circle[data-uid] {
  pointer-events: none;
}
#lg-pop,
#ex-pop,
#pk-pop,
#kat-pub {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(20, 26, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lg-box { width: min(600px, 94vw); }
.kat-pub-box { width: min(480px, 94vw); max-height: 88vh; overflow-y: auto; }
.kat-chips { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }
.kat-chip {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field);
  font-size: 11.5px;
  padding: 2px 9px;
  cursor: pointer;
}
.kat-chip:hover { background: var(--field); }
.kat-chip.on { background: #0072B2; border-color: #0072B2; color: #fff; }
.kat-f { display: block; margin: 8px 0; font-size: 12.5px; }
.kat-f input, .kat-f select { width: 100%; margin-top: 3px; padding: 5px 7px; font-size: 13px; box-sizing: border-box; }
.kat-visrow { display: flex; gap: 14px; }
#kp-declrow { font-size: 12px; line-height: 1.45; margin: 8px 0; }
#lg-stairs { display: flex; align-items: flex-end; gap: 3px; margin: 12px 0 12px; }
.lg-step {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: var(--r) var(--r) 0 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 3px;
  position: relative;
}
.lg-step { padding: 3px 1px 0; }
.lg-step .lg-tag { font-size: 10px; font-weight: 700; line-height: 1.15; opacity: 0.95; max-width: 100%; text-align: center;
  white-space: normal; overflow-wrap: anywhere; }
.lg-step .lg-hier { display: flex; line-height: 1; margin-bottom: 2px; }
.lg-step.lg-cur { box-shadow: inset 0 0 0 2px var(--panel); }
.lg-hier-satz { margin: 2px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.lg-step:hover { filter: brightness(1.15); }
.lg-step.sel { outline: 3px solid var(--ink); outline-offset: 1px; }
.lg-step:focus-visible { outline-offset: 4px; }
.lg-step.sel:focus-visible { box-shadow: 0 0 0 7px var(--accent); }
.lg-step.has-songs::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: var(--round);
  background: var(--panel);
  opacity: 0.9;
}
.lg-name { color: var(--ink) !important; font-size: 14.5px !important; }
.lg-neu { font-size: 13px; margin: 4px 0 8px; color: var(--ink); }
.lg-rel { font-size: 12.5px; margin: 0 0 8px; color: var(--ink); background: color-mix(in srgb, var(--status-gehalten) 10%, var(--panel)); border-radius: var(--r); padding: 6px 9px; }
.lg-kann { font-size: 13px; color: var(--ink); background: color-mix(in srgb, var(--gruen) 10%, var(--panel)); border-radius: var(--r); padding: 7px 9px; }
.lg-weg-name { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.lg-wege { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.lg-weg { font: inherit; font-size: 13px; font-weight: 600; min-height: 40px; padding: 7px 14px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.lg-weg[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 700; }
.amb { margin: 4px 2px 6px; line-height: 1.6; }
.amb .mini2 { margin-left: 2px; }
.lg-flag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r); padding: 0 4px; margin-left: 3px; }
#lg-songs { max-height: 264px; overflow-y: auto; }
#lg-songs .ss-item { padding: 8px 12px; }
.ex-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--round);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.ex-x:hover { background: var(--field); color: var(--ink); }
.ex-piece { font-weight: 400; font-size: 13px; color: var(--muted); }
.ex-foot { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 0; }
.ex-foot .spacer { flex: 1; }
.ex-strip {
  position: relative;
  overflow: hidden;
  margin: 6px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.ex-strip svg { display: block; }
.ex-stripline {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: var(--r-small);
  background: #e63946;
  opacity: 0.85;
  pointer-events: none;
}
.tr { width: 100%; max-width: 1140px; margin: 6px auto 10px; display: flex; gap: 8px; }
.tr-view {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  --tr-mo: 0px; --tr-mu: 0px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0,
    #000 var(--tr-mo), #000 calc(100% - var(--tr-mu)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0,
    #000 var(--tr-mo), #000 calc(100% - var(--tr-mu)), transparent 100%);
}
.tr-view::-webkit-scrollbar { display: none; }
.tr-in { position: relative; }
.tr-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  padding: 0 11px;
  font: inherit;
  color: #26241f;
  text-align: right;
  transition: filter 0.14s, box-shadow 0.14s;
}
.tr-ton { font-weight: 800; cursor: pointer; }
button.tr-ton:hover { filter: brightness(1.09); }
.tr-wartet button.tr-ton { cursor: default; }
.tr-wartet button.tr-ton:hover { filter: none; }
button.tr-ton:disabled { cursor: default; }
.tr-dia.tr-leer { border: 1.5px solid var(--line); background: none; }
.tr-dia.tr-fern { border: 1px dashed var(--line); }
.tr-chr.tr-leer { background: none; border: none; }
.tr-chr.tr-zu {
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 13%, transparent) 0 4px, transparent 4px 9px);
  background-size: auto 3px; background-repeat: no-repeat; background-position: center;
  border: none; border-radius: 0;
}
.tr-anker { box-shadow: inset 0 0 0 3px var(--bernstein); }
.tr-lit { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.92), inset 0 0 0 6px color-mix(in srgb, var(--gruen) 85%, transparent); }
.tr-slot.is-right::before {
  content: ""; position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  border-radius: var(--round); background: var(--paper); pointer-events: none;
}
.tr-slot.is-right::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 26px; height: 22px; margin-top: -11px; pointer-events: none;
  background: var(--status-ok); -webkit-mask: var(--mask-check-hand) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-check-hand) 0 0 / 100% 100% no-repeat;
}
.tr-chr.is-right::before { right: 3px; width: 26px; height: 26px; margin-top: -13px; }
.tr-chr.is-right::after { right: 6px; width: 20px; height: 17px; margin-top: -8.5px; }
.tr-slot.is-wrong { outline: 2px dashed #26241f; outline-offset: -5px; }
.tr-lbl { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1; }
.tr-syll { display: block; }
.tr-pt { display: flex; gap: 3px; align-items: center; }
.tr-pt i { display: block; width: 4px; height: 4px; border-radius: var(--round); background: currentColor; }
.tr-hz { display: flex; }
.tr-hz .hsign { display: block; }
.tr-ntw { display: flex; opacity: 0.9; }
.tr-ntw svg { display: block; }
.tr-breit .tr-slot { padding: 0 13px; }
.tr-leiste { width: 26px; flex: none; display: none; flex-direction: column; gap: 5px; }
.tr-rollt .tr-leiste { display: flex; }
.tr-okt {
  height: 26px; flex: none; border-radius: var(--r); padding: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; font-size: 11px; font-weight: 900; line-height: 1; color: var(--muted);
}
.tr-okt:hover:not(:disabled) { border-color: var(--gruen); color: var(--gruen); }
.tr-okt:disabled { opacity: 0.32; cursor: default; }
.tr-okt i { display: block; width: 3.5px; height: 3.5px; border-radius: var(--round); background: currentColor; }
.tr-okt svg { display: block; width: 13px; height: 13px; }
@media (pointer: coarse) {
  .tr-leiste { width: 44px; }
  .tr-okt { height: 44px; min-height: 0; }
}
.tr-spur { flex: 1; position: relative; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: var(--r); }
.tr-greifer {
  position: absolute; left: 2px; right: 2px; border-radius: var(--r); min-height: 22px;
  background: color-mix(in srgb, var(--gruen) 55%, transparent); cursor: grab; touch-action: none;
}
.tr-greifer:hover, .tr-greifer.tr-zieht { background: var(--gruen); }
.tr-greifer.tr-zieht { cursor: grabbing; }
.ex-chip .rh-einzel, .ex-slot .rh-einzel { display: block; }
.rh-einzel .rh-gl { fill: currentColor; stroke: none; }
.rh-einzel .rh-box { fill: none; stroke: currentColor; stroke-width: 1.3; }
.rh-einzel .rh-silbe { fill: currentColor; font-size: 15px; font-weight: 700; }
.ex-strip { cursor: grab; touch-action: pan-y; }
.ex-strip.ex-strip-zieht { cursor: grabbing; }
.ex-tone {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: var(--r) var(--r) 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding-top: 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1px;
}
.ex-tone .hsign { display: block; flex: none; }
.ex-signrow { display: flex; gap: 10px; justify-content: center; margin: 6px 0 10px; flex-wrap: wrap; }
.ex-schip {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px;
  color: var(--ink);
  background: var(--field);
  line-height: 0;
}
.ex-schip.done { opacity: 0.25; }
.ex-tone:hover { filter: brightness(1.15); }
.ex-tone:disabled { cursor: default; }
.ex-dots { display: flex; align-items: center; gap: 7px; justify-content: center; margin: 8px 0; flex-wrap: wrap; }
.ex-dot {
  width: 13px;
  height: 13px;
  border-radius: var(--round);
  background: var(--line);
  display: inline-block;
}
.ex-dot.hit {
  width: 18px; height: 15px; border-radius: 0; background: var(--status-ok);
  -webkit-mask: var(--mask-check-hand) 0 0 / 100% 100% no-repeat; mask: var(--mask-check-hand) 0 0 / 100% 100% no-repeat;
}
.ex-dot.miss { background: none; border: 1.5px dashed var(--ink); }
.ex-answer :is(.is-right, .is-wrong):not(.tr-slot) { position: relative; }
.ex-answer .is-wrong:not(.tr-slot) { outline: 2px dashed var(--ink); outline-offset: 4px; }
.ex-answer .is-right:not(.tr-slot)::after {
  content: ""; position: absolute; right: -12px; top: -12px; width: 26px; height: 22px; pointer-events: none;
  background: var(--status-ok); -webkit-mask: var(--mask-check-hand) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-check-hand) 0 0 / 100% 100% no-repeat;
}
.ex-answer .ex-signrow.is-right::after { position: static; align-self: center; flex: none; }
@media (forced-colors: active) {
  .ex-dot.hit, .tr-slot.is-right::after, .ex-answer .is-right::after { forced-color-adjust: none; background: CanvasText; }
}
.ex-singlive {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  min-height: 44px;
  color: #2b6cb0;
}
.ex-measures { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.ex-measure {
  padding: 10px 8px;
  min-width: 52px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field);
  font-size: 13px;
  cursor: pointer;
}
.ex-measure.now { border-color: var(--area-ink, var(--accent)); box-shadow: inset 0 0 0 1px var(--area-ink, var(--accent)); }
.ex-measure.picked { background: var(--area-soft, var(--accent-soft)); border-color: var(--area-ink, var(--accent));
  color: var(--area-ink, var(--accent)); font-weight: 700; }
.ex-measure.was-wrong { position: relative; }
:is(.ex-measure, .ex-mtag):is(.was-wrong:not(.ok), .alarm) { outline: 2px dashed var(--ink); outline-offset: 2px; }
.ex-measure > .ks-circle { position: absolute; inset: -6px -8px; }
.ex-mtag:is(.was-wrong:not(.ok), .alarm) { outline-offset: 0; }
.ex-mtag > .ks-circle { position: absolute; inset: -2px -6px; }
.ex-gaplabel { font-size: 14px; font-weight: 700; color: var(--muted); margin: 2px 0 4px; }
.lvl-badge {
  flex: none;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
  min-height: 0;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--r);
  padding: 1px 6px;
  cursor: pointer;
  line-height: 1.4;
}
.lvl-badge:hover { filter: brightness(1.2); }
#score-area svg text[data-clef] { cursor: context-menu; }
#score-area svg text[data-addvoice] { cursor: pointer; }
#score-area svg text[data-addvoice]:hover { fill: var(--accent); }
#score-area [data-uid] { cursor: grab; }
:is(#score-area, .nf-area) rect.note-sel {
  stroke: #0f62d6 !important;
  stroke-width: 2.4px !important;
  stroke-dasharray: 5 3 !important;
  cursor: grab;
}
:is(#score-area, .nf-area) .note-sel.edge { cursor: ew-resize; }
:is(#score-area, .nf-area) path.nh.note-sel { fill: #0f62d6 !important; stroke: none !important; }
:is(#score-area, .nf-area) line.note-sel { stroke-dasharray: none !important; }
:is(#score-area, .nf-area) circle.note-sel { fill: #0f62d6 !important; stroke: none !important; }
:is(#score-area, .nf-area) rect.entry-next { stroke: var(--accent) !important; stroke-width: 3px !important; }
:is(#score-area, .nf-area) path.nh.entry-next { fill: var(--accent) !important; }
#score-area {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  width: max-content;
  min-width: 100%;
  justify-content: safe center;
}
#score-area .page { margin: 0; flex: none; position: relative; }
.ph-glide { position: absolute; left: 0; top: 0; background: #e63946; opacity: .85; pointer-events: none; will-change: transform; }
#score-area .page svg {
  display: block;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 30, 60, 0.22);
}
.start-card { max-width: 520px; margin: 60px auto; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-align: center; }
.start-card h1 { margin: 0 0 8px; font-size: 22px; }
.start-card p { color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
.start-card .start-card-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.start-card .start-card-actions button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .12s; }
.start-card .start-card-actions button:hover { border-color: var(--accent); }
.welcome .demo-row {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.welcome .demo-row > span { flex-basis: 100%; margin-bottom: 2px; }
.welcome .demo-row button { padding: 4px 11px; font-size: 13px; }
#app-version {
  flex: none;
  margin-left: 10px;
  font-size: 10.5px;
  color: var(--muted);
}
.view-switch {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex: none;
}
.vs-pagewrap { position: relative; display: inline-flex; }
#vs-page { min-width: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
#vs-page svg { display: block; }
.vs-pop {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 80;
  display: flex; flex-direction: column; gap: 2px; padding: 5px;
  min-width: 116px;
  border-radius: var(--r); background: color-mix(in srgb, var(--panel) 96%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.vs-pop[hidden] { display: none; }
.vs-pop button {
  display: flex; align-items: center; gap: 7px; width: 100%;
  font: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
  border: 0; background: none; border-radius: var(--r); padding: 7px 10px; color: inherit;
}
.vs-pop button:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.vs-pop button.on { font-weight: 700; color: var(--accent); }
.vs-pop .vs-orient { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.vs-pop .vs-orient > button { width: auto; flex: 1; justify-content: center; gap: 6px; padding: 6px 10px; }
.vs-pop .vs-orient > button:not([aria-pressed="true"]) { background-color: var(--field); }
.vs-pop .vs-orient > button:not([aria-pressed="true"]):hover:not(:disabled) { background-color: var(--field-hover); }
.vs-pop .vs-orient > button[aria-pressed="true"] { background-color: var(--accent); color: var(--accent-ink); }
.vs-pop .vs-orient > button[aria-pressed="true"]:disabled { background-color: var(--line); color: var(--muted); }
.view-switch select, .view-switch button {
  font-size: 11.5px;
  padding: 2px 5px;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 14px calc(5px + var(--sab, 0px));
  font-size: 12.5px;
  color: var(--muted);
  background: var(--panel);
  border-top: 1px solid var(--line);
  min-height: 26px;
  flex-wrap: wrap;
  row-gap: 4px;
}
.statusbar #status { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statusbar #status.error { color: color-mix(in srgb, var(--status-fehler) 70%, var(--ink)); font-weight: 600; }
.statusbar a { color: var(--muted); text-decoration: none; flex: none; }
.statusbar a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 1100px) {
  body.se-on .statusbar #feedback-link,
  body.se-on .statusbar #about-link { display: none; }
}
dialog {
  border: 0;
  border-radius: var(--r);
  padding: 22px 24px 20px;
  width: 460px;
  max-width: 92vw;
  max-height: calc(100% - 34px);
  overflow-y: auto;
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(38, 36, 31, .35); }
dialog:not([open]) { display: none !important; }
.ks-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#score-scroll:has(.welcome) > #se-h1 { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  :is(.wb-dot.an, .si-spin, .bib-lspulse,
    .se-lshead .lp.on, .se-live.is-live .lp, .ipt-zeichen .ipt-cursor) { animation: none !important; }
  :is(#lg-pop, #ex-pop, #pk-pop, #kat-pub) .ss-box, .ks-menu, .ton-results { animation: none !important; }
}
dialog h3 { margin: 0 0 12px; }
dialog h2.ks-dialog-title { margin: 0 0 12px; font-size: 1.17em; }
.exp-row { display: flex; align-items: baseline; gap: 14px; margin: 10px 0; }
.exp-row.exp-col { flex-direction: column; align-items: stretch; gap: 4px; }
.exp-row.disabled { opacity: 0.5; }
.exp-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); min-width: 62px; }
.exp-row label { display: inline-flex; align-items: center; gap: 5px; }
.exp-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.exp-voices { max-height: 150px; overflow-y: auto; padding-left: 14px; }
.exp-voices label { display: flex; padding: 2px 0; }
.exp-note { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.exp-folder {
  flex: 1;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
dialog menu {
  display: flex; gap: 8px; padding: 0;
  position: sticky; bottom: -20px; z-index: 2;
  margin: 14px -24px -20px; padding: 12px 24px 20px;
  background: var(--raised);
  border-top: 1px solid var(--line);
}
dialog menu .spacer { flex: 1; }
#new-dialog menu { justify-content: flex-end; border-top: 0; }
#new-dialog menu > button.primary { min-height: 36px; padding: 0 16px; }
@media (pointer: coarse) {
  #new-dialog :is(input, select, menu > button) { box-sizing: border-box; min-height: 44px; }
}
input.short { width: 46px; }
input.mix { width: 40px; flex: none; }
button.wide { display: block; width: 100%; margin-top: 8px; }
.hl-swatch {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: var(--r-small);
  flex: none;
}
#perform-overlay {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto 30px;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--stage-bg);
  overflow: hidden;
}
#perform-overlay[hidden] { display: none; }
#perform-strip {
  position: absolute;
  top: 12px;
  left: 0;
  transform: translateX(0);
  will-change: transform;
}
#perform-strip svg { display: block; border-radius: 6px; }
#perform-line {
  position: absolute;
  top: 12px;
  width: 3px;
  background: #e63946;
  opacity: 0.9;
  pointer-events: none;
}
#perform-exit {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(14, 16, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 18px;
  border-radius: 8px;
  padding: 6px 12px;
}
#perform-exit:hover { background: rgba(14, 16, 22, 0.97); }
#perform-overlay :focus-visible {
  outline-color: color-mix(in srgb, var(--accent) 60%, #fff);
  box-shadow: 0 0 0 6px var(--stage-bg);
}
#perform-controls #perform-band:focus-visible { opacity: 1; }
#perform-controls, #perform-exit { transition: opacity .45s ease; }
#perform-overlay.pf-ruhe #perform-controls,
#perform-overlay.pf-ruhe #perform-exit { opacity: 0; pointer-events: none; }
#perform-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  pointer-events: none;
}
#perform-controls {
  grid-row: 2;
  position: relative;
  left: 0; right: 0;
  width: fit-content;
  max-width: calc(100% - 16px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}
#perform-controls .loopbtn { font-weight: 700; font-family: Georgia, serif; }
#perform-zoom-val {
  position: fixed;
  right: 18px;
  bottom: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 16, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  z-index: 6;
}
#perform-screen {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  min-width: 320px;
  max-width: min(520px, 92vw);
  padding: 26px 30px 24px;
  border-radius: 18px;
  background: rgba(14, 16, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
}
#perform-screen[hidden] { display: none; }
#perform-screen h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
#perform-screen-x {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: rgba(255, 255, 255, 0.62);
  font-size: 19px; line-height: 1; cursor: pointer; padding: 4px 7px;
}
#perform-screen-x:hover { color: #fff; }
.pfs-hint { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.74); }
.pfs-row { display: flex; gap: 8px; margin-top: 14px; }
.pfs-row input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08);
  color: #fff; font: inherit; font-size: 22px; font-weight: 700;
  letter-spacing: .12em; text-align: center; text-transform: uppercase; outline: none;
}
.pfs-row input:focus { border-color: #fff; }
.pfs-row button {
  padding: 10px 18px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.pfs-row button:hover { background: rgba(255, 255, 255, 0.28); }
.pfs-say { margin: 10px 0 0; font-size: 13.5px; min-height: 1.2em; color: #ffd166; }
.strip-loop {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: #ffd166;
  opacity: 0.85;
  pointer-events: none;
}
.strip-loop.b { background: #06d6a0; }
#perform-controls button {
  background: rgba(14, 16, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 15px;
  border-radius: 8px;
  padding: 6px 13px;
}
#perform-controls button:hover { background: rgba(14, 16, 22, 0.97); }
#perform-controls #perform-wipe.on { background: #06d6a0; border-color: #06d6a0; color: #0b1220; }
#perform-controls #perform-band { opacity: 0.55; }
#perform-controls #perform-band.on { opacity: 1; background: #06d6a0; border-color: #06d6a0; }
#perform-tempo-box {
  display: inline-flex; align-items: center; gap: 4px;
  color: #fff; font-size: 15px;
  background: rgba(14, 16, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px; padding: 4px 8px;
}
#perform-tempo {
  width: 44px; font: inherit; text-align: center;
  background: transparent; color: #fff;
  border: none;
  -moz-appearance: textfield; appearance: textfield;
}
#perform-tempo::-webkit-inner-spin-button, #perform-tempo::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#perform-tempo-box .pf-spin { display: inline-flex; flex-direction: column; gap: 0; margin: 0 1px; }
#perform-tempo-box .pf-spin button {
  min-width: 0; width: 16px; height: 12px; padding: 0; border: none;
  background: transparent; color: rgba(255, 255, 255, 0.85);
  font-size: 7px; line-height: 12px; cursor: pointer;
}
#perform-tempo-box .pf-spin button:hover { color: #fff; background: rgba(255, 255, 255, 0.14); border-radius: 4px; }
#perform-tempo-box button { min-width: 0; padding: 2px 7px; border: none; }
.pf-wiped { opacity: 0 !important; transition: opacity 0.7s ease; }
#se-globalmenu { display: flex; align-items: center; margin-left: 8px; }
#tab-mini, #tab-pop { display: none; }
#tab-pop[hidden] { display: none !important; }
#tab-pop {
  position: fixed; z-index: 80; flex-direction: column; gap: 2px; padding: 5px;
  min-width: 210px; max-width: min(340px, calc(100vw - 24px)); max-height: 62vh; overflow-y: auto;
  border-radius: var(--r); background: color-mix(in srgb, var(--panel) 96%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.tp-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--r); cursor: pointer; }
.tp-row:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.tp-row.on { background: color-mix(in srgb, var(--accent) 13%, transparent); font-weight: 700; }
.tp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.tp-row .lvl-badge { min-height: 32px; padding: 4px 10px; border-radius: var(--r); }
.tp-x { flex: none; border: 0; background: none; font-size: 17px; line-height: 1; cursor: pointer; color: inherit; opacity: .55; padding: 2px 4px; }
.tp-x:hover { opacity: 1; }
.tp-leer { padding: 10px; font-size: 13px; opacity: .65; }
.tp-new { width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 13px;
  cursor: pointer; padding: 8px 10px; border-radius: var(--r); color: var(--accent); }
.tp-new:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
#hk-pop {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 12, .28);
  font-family: var(--font);
}
#hk-pop .hk-box {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; width: min(420px, 92vw); max-height: 84vh; overflow-y: auto;
  box-shadow: var(--shadow);
}
#hk-pop header { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
#hk-pop .hk-x { border: 0; background: none; font-size: 15px; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: var(--r); }
#hk-pop .hk-x:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
#hk-pop .hint { color: var(--muted); font-size: 12px; margin: 6px 0 12px; }
#hk-pop .hk-grp h4 { margin: 12px 0 5px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
#hk-pop .hk-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  border: 1.5px solid transparent; background: none; border-radius: var(--r);
  padding: 6px 8px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; text-align: left;
}
#hk-pop .hk-row:hover { background: var(--field); }
#hk-pop .hk-row.cap { border-color: var(--rc-noteneditor-accent); background: var(--rc-noteneditor-soft); }
#hk-pop kbd {
  min-width: 34px; text-align: center; font: inherit; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: var(--r);
  padding: 2px 7px; background: var(--field); color: var(--muted);
}
#hk-pop .hk-row.cap kbd { border-color: var(--rc-noteneditor-accent); color: var(--rc-noteneditor-accent); }
#hk-pop .hk-line { display: flex; align-items: center; gap: 4px; }
#hk-pop .hk-line .hk-row { flex: 1 1 auto; }
#hk-pop .hk-del { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: var(--r); display: flex; }
#hk-pop .hk-del:hover { color: var(--status-fehler); background: var(--field); }
#hk-pop .hk-neu { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; border: 1.5px dashed var(--line); background: none; border-radius: var(--r); padding: 6px 10px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; }
#hk-pop .hk-neu:hover { border-color: var(--rc-noteneditor-accent); color: var(--rc-noteneditor-accent); }
#hk-pop .hk-grp .hint { margin: 0 0 4px; }
#hk-pop menu { display: flex; justify-content: flex-end; margin: 14px 0 0; padding: 0; }
#hk-pop .hk-reset { border: 1.5px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--muted); }
#hk-pop .hk-reset:hover { border-color: var(--rc-noteneditor-accent); color: var(--rc-noteneditor-accent); }
#tempo-pop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(20,22,28,.35); }
#tempo-pop .tsp-box { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 260px; box-shadow: var(--shadow); }
#tempo-pop .tsp-row { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; }
#tempo-pop .tsp-row select { flex: 1; }
#tempo-pop .tsp-row input { width: 80px; }
#tempo-pop .tsp-slash { font-size: 17px; color: var(--muted); }
#tempo-pop .hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
#tempo-pop menu { display: flex; gap: 8px; justify-content: flex-end; margin: 14px 0 0; padding: 0; }
.spd-ico, .se-num .se-spd { display: inline-flex; align-items: center; opacity: .72; }
.spd-ico svg { display: block; height: 15px; width: auto; }
.se-num .se-spd svg { display: block; height: 21px; width: auto; }
.se-num .se-pct { font-size: 12px; opacity: .7; }
.spd-pct { font-size: 11px; opacity: .7; margin-left: 1px; }
#tsig-pop {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 12, 0.25);
}
#tsig-pop .tsp-box {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; min-width: 230px;
  box-shadow: var(--shadow);
}
#tsig-pop .tsp-row {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0 4px; font-size: 22px;
}
#tsig-pop .tsp-row input { width: 64px; font-size: 18px; text-align: center; }
#tsig-pop .tsp-row select { font-size: 18px; }
#tsig-pop .tsp-slash { color: var(--muted); font-size: 24px; }
#tsig-pop menu { display: flex; justify-content: flex-end; gap: 8px; margin: 12px 0 0; padding: 0; }
#perform-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22px;
  touch-action: none;
  background: rgba(255,255,255,0.10);
  cursor: pointer;
}
#perform-fill {
  height: 100%;
  width: 0;
  background: rgba(230, 57, 70, 0.75);
  pointer-events: none;
}
.loop-mark {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: #ffd166;
  pointer-events: none;
}
.loop-mark.b { background: #06d6a0; }
@media print {
  .statusbar, .tabbar { display: none !important; }
  body { background: #fff; display: block; }
  .body-row, .main-col { display: block; }
  #score-scroll { overflow: visible; padding: 0; background: #fff; }
  #score-area .page { margin: 0; page-break-after: always; }
  .ph-glide { display: none; }
  #score-area .page svg { box-shadow: none; width: 100% !important; height: auto !important; }
}
* { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: var(--scroll);
  border-radius: var(--r);
  border: 2px solid var(--panel);
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb:hover { background: #1668b3; }
input[type="search"], input[type="url"], input[type="password"] { border-radius: var(--r); }
.ss-big { border-radius: var(--r); }
.track-list button.solo.on, .track-list button.accflag.on, .track-list button.lockflag.on,
.kat-chip.on { color: var(--accent-ink); background: var(--accent); }
.ss-box { border-radius: var(--r); }
.chip, .kat-chip { transition: background 0.12s, color 0.12s, border-color 0.12s; }
.kat-chip:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
#status { border-top: none; }
#landing-pop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--panel);
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
}
html.landing-gate body > *:not(#landing-pop):not(dialog):not(#ks-tab) { visibility: hidden; }
html.tab-waiting body > *:not(#ks-tab):not(dialog) { display: none !important; }
html.tab-busy #ks-tab menu { visibility: hidden; }
#ks-tab {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  margin: 18vh auto 0;
  padding: 20px 22px 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
#ks-tab h2 { margin: 0 0 8px; }
#ks-tab menu { display: flex; justify-content: flex-end; margin: 14px 0 0; padding: 0; }
#ks-tab menu button { min-height: 44px; }
.ld-hint { color: var(--muted); font-size: 12.5px; margin: 6px 0; min-height: 16px; }
.ld-geteilt { display: flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; }
.ld-geteilt input { margin: 0; }
.ld-input {
  width: 100%;
  padding: 11px 12px;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font: inherit;
  text-align: center;
}
.ld-input.ld-code {
  font-family: Consolas, monospace;
  font-size: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.ld-word {
  margin: 4px 0 2px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
}
.ld-back {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  margin-top: 10px;
  cursor: pointer;
}
.ld-back:hover { color: var(--accent); }
.landing-box {
  margin: auto;
  width: min(430px, 92vw);
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 26px 26px 20px;
  text-align: center;
}
.landing-logo { height: 44px; margin-bottom: 4px; }
.landing-logo-dark, :root[data-farbmodus="dunkel"] .landing-logo { display: none; }
:root[data-farbmodus="dunkel"] .landing-logo-dark { display: inline; }
.landing-tag { color: var(--muted); font-size: 13px; font-weight: 400; margin: 4px 0 16px; }
.landing-card {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.landing-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.landing-card span { color: var(--muted); font-size: 12.5px; }
.landing-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.landing-card.ghost { background: color-mix(in srgb, var(--ink) 4%, var(--panel)); }
.landing-card.ld-tat { text-align: center; }
.landing-card.ld-tat b { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 0; }
body.persona-free .grp-presets { display: none !important; }
@media (max-width: 700px) {
  .statusbar #feedback-link, .statusbar #about-link { display: none; }
  .welcome.start-card { max-width: min(520px, calc(100vw - 32px)); margin: 24px auto; padding: 20px 16px; }
  button, select { min-height: 40px; }
  .mini { min-height: 32px; }
  #score-scroll { padding: 8px; padding-bottom: 84px; }
}
@media (max-width: 700px) {
  #lg-pop, #ex-pop, #pk-pop, #kat-pub {
    align-items: flex-end;
  }
  #lg-pop .ss-box, #ex-pop .ss-box, #pk-pop .ss-box,
  #kat-pub .ss-box {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: var(--r) var(--r) 0 0;
    animation: sheet-up 0.22s ease;
  }
  @keyframes sheet-up {
    from { transform: translateY(48px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
  }
}
dialog.pl-dlg { width: min(560px, calc(100vw - 32px)); box-sizing: border-box; }
dialog.pl-dlg h3 { margin: 22px 0 4px; }
.pl-dlg .pl-weg { margin: 8px 0 0; }
.pl-dlg .pl-weg > .ks-secondary { margin-left: -10px; }
.pl-dlg .pl-anzahl { display: flex; align-items: center; gap: 10px; }
.pl-dlg .pl-anzahl > input { width: 6em; }
#pl-list .pl-row { display: flex; align-items: center; gap: 10px; padding: 5px 2px; border-bottom: 1px solid var(--line); }
#pl-list .pl-row:last-of-type { border-bottom: none; }
.pl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-code { flex: none; font-family: Consolas, monospace; letter-spacing: 1px; }
#pl-list .pl-row .mini { flex: none; min-width: 28px; min-height: 28px; }   
#pl-list .mini2 { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.pl-karten { display: grid; grid-template-columns: 1fr 1fr; }
.pl-karte { break-inside: avoid; border: 1px dashed var(--line); padding: 10pt 12pt; display: grid; grid-template-columns: 1fr auto;
  grid-template-areas: "klasse qr" "name qr" "code qr" "hinweis hinweis"; gap: 4pt 12pt; align-items: center; }
.pl-karte-klasse { grid-area: klasse; color: var(--muted); font-size: 10pt; }
.pl-karte-name { grid-area: name; font-size: 13pt; font-weight: 700; display: flex; align-items: baseline; gap: 6pt; }
.pl-karte-linie { flex: 1; border-bottom: 1px solid var(--ink); min-width: 30mm; height: 1em; }
.pl-karte-code { grid-area: code; font: 700 18pt/1.2 Consolas, monospace; letter-spacing: 3px; }
.pl-karte-qr { grid-area: qr; }
.pl-karte-qr svg { display: block; width: 26mm; height: 26mm; }
.pl-karte-h { grid-area: hinweis; margin: 2pt 0 0; font-size: 9pt; color: var(--muted); }
.ex-quizrow { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
#midi-panel {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 60;
  width: min(320px, calc(100vw - 28px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 0 12px 10px;
}
#midi-panel header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 30px 8px 2px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
#midi-panel header .ex-x { top: 8px; right: -4px; }
.mi-live {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
}
.mi-live .chrom { color: #c2542e; }
.ex-singlive { width: fit-content; min-width: 2em; margin-inline: auto; padding: 0 10px; }
.ex-chordcards { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 64px; }
.ex-chordcard { display: flex; align-items: baseline; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.ex-chordcard b { font-size: 34px; color: var(--accent); }
.ex-chordcard span { font-size: 13px; color: var(--muted); }
.ex-chordcard.next { opacity: 0.65; }
.ex-chordcard.next b { font-size: 20px; }
.ex-chordcard.next i { font-size: 12px; color: var(--muted); font-style: normal; }
.ex-chordbtns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.ex-chordbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  flex: 1 1 0; min-width: 88px; max-width: 220px; min-height: 64px; padding: 6px 14px; border: 0; border-radius: var(--r);
  background: var(--area-soft, var(--accent-soft)); color: var(--ink); font: inherit; cursor: pointer;
  touch-action: manipulation; user-select: none; }
.ex-chordbtn b { font-size: 22px; font-weight: 700; line-height: 1.1; }
.ex-chordbtn span { font-size: 14px; line-height: 1.3; }
.ex-chordbtn:hover { background: var(--area-hover, var(--field)); }
.ex-chordbtn:active { background: color-mix(in srgb, var(--area-hover, var(--field)) 88%, var(--ink)); }
.mi-stairs { display: flex; align-items: flex-end; gap: 3px; min-height: 100px; }
.mi-stairs .ex-tone { font-size: 13px; }
.mi-stairs .ex-tone.live { outline: 3px solid var(--ink); outline-offset: 1px; filter: brightness(1.18); }
.mi-sound { display: block; margin: 8px 0 2px; font-size: 12.5px; color: var(--muted); }
#wb-pop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
#wb-pop header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  row-gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
#wb-pop header .spacer { flex: 1; }
#wb-pop header .wb-h1 { margin: 0; font-size: inherit; font-weight: 700; line-height: inherit; }
.wb-nav { display: inline-flex; align-items: center; gap: 6px; flex: none; }
#wb-pop header .ex-x { position: static; }
#wb-title { flex: 1 1 150px; width: auto; min-width: 90px; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: inherit; }
@media (pointer: coarse) {
  #wb-pop header button.mini2 { min-width: 40px; min-height: 34px; padding: 4px 10px; }
  #wb-pop header .ex-x { min-width: 40px; min-height: 34px; }
}
#wb-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px 10px calc(24px + var(--wb-toolsh, 50px)); }
#wb-paper {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1280 / 800;
  width: min(100%, calc((100vh - 170px) * 1.6));
}
#wb-svg {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  touch-action: none;
}
#wb-texts { position: absolute; inset: 0; pointer-events: none; }
#wb-svg .wb-diag { pointer-events: none; }
#wb-stage.wb-diagmodus .wb-diag { pointer-events: auto; }
.wb-drahmen { position: absolute; border: 1.5px dashed var(--accent);
  border-radius: var(--r); pointer-events: none; }
.wb-dknopf { position: absolute; pointer-events: auto; width: 26px; height: 26px;
  padding: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--round);
  background: var(--panel); color: inherit; cursor: pointer;
  box-shadow: var(--shadow); }
.wb-dweg { top: -13px; right: -13px; }
.wb-dgriff { position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 34px; border-radius: var(--r); pointer-events: auto;
  border: 1px solid var(--line); background: var(--panel);
  cursor: ew-resize; box-shadow: var(--shadow); }
.wb-fluss { flex: 1 1 auto; overflow: auto; display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem; gap: 1rem; padding: 1.2rem; }
@media (max-width: 780px) { .wb-fluss { grid-template-columns: 1fr; } }
.wb-ftext { grid-column: 1 / -1; width: 100%; min-height: 60vh; resize: vertical;
  font: 15px/1.65 ui-monospace, "SF Mono", Menlo, monospace;
  border: 1px solid var(--line); border-radius: var(--r); padding: 1rem;
  background: var(--panel); color: inherit; }
.wb-flesen { max-width: 42rem; font: 16px/1.7 Georgia, "Iowan Old Style", serif; }
.wb-fb { position: relative; border-radius: var(--r); padding: .1rem .5rem; margin: 0 -.5rem;
  cursor: pointer; }
.wb-fb:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.wb-fb.an { background: color-mix(in srgb, #f0c040 35%, transparent); }
.wb-fb p { margin: .55rem 0; }
.wb-fmark { position: absolute; right: -1.9rem; top: .35rem; border: 0; background: none;
  font-size: .85rem; cursor: pointer; }
.wb-fkomm h4 { font-size: .85rem; margin: 0 0 .5rem; }
.wb-fk { border: 1px solid var(--line); border-radius: var(--r); padding: .5rem .6rem;
  margin-bottom: .5rem; font-size: .85rem; cursor: pointer; }
.wb-fk .wo { color: var(--muted); font-size: .78rem; }
.wb-fk .was { margin: .2rem 0 .35rem; }
.wb-fk.ok { opacity: .5; }
.wb-fk.waise { border-style: dashed; }
.wb-text {
  pointer-events: auto;
  position: absolute;
  min-width: 40px;
  max-width: 46%;
  padding: 2px 8px 2px 20px;
  font-size: 2.4cqw;
  line-height: 1.35;
  border: 1.5px dashed transparent;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}
.wb-text:focus-within { border-color: var(--accent); background: var(--paper); }
.wb-text.b { font-weight: 700; }
.wb-text.i { font-style: italic; }
.wb-tbody { outline: none; display: inline-block; min-width: 30px; }
.wb-tbody:empty::before { content: attr(data-ph); color: var(--muted); }
.wb-tgrip { position: absolute; left: 2px; top: 2px; font-size: 60%; color: var(--muted); cursor: grab; }
#wb-textbar {
  position: absolute;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  z-index: 3;
}
#wb-textbar button { min-width: 30px; height: 28px; border: 1px solid transparent; border-radius: var(--r); background: none; cursor: pointer; }
#wb-textbar button.on { background: var(--accent); color: var(--accent-ink); }
#wb-tools {
  position: fixed;
  left: 0; right: 0;
  bottom: 12px;
  width: fit-content;
  max-width: calc(100% - 16px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  z-index: 96;
}
#wb-tools button {
  width: 44px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  font-size: 19px;
  cursor: pointer;
}
#wb-tools button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
#wb-play.on { color: #e63946; border-color: color-mix(in srgb, #e63946 45%, var(--line)); }
#wb-tools .wb-color { border-radius: var(--round); width: 30px; height: 30px; align-self: center; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); }
#wb-tools .wb-color.on { box-shadow: 0 0 0 2.5px var(--accent); }
#wb-list {
  position: absolute;
  top: 54px;
  right: 14px;
  width: min(340px, calc(100vw - 28px));
  max-height: 70vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 10px 12px;
  z-index: 97;
}
.wb-item { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
.wb-item .ss-item { flex: 1; }
.wb-weg { margin: 4px 0; padding: 10px 12px; }
#cw-panel {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 61;
  width: min(340px, calc(100vw - 28px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 0 12px 10px;
}
#cw-panel header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 30px 8px 2px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
#cw-panel header .ex-x { top: 8px; right: -4px; }
#cw-panel .cw-h { margin: 10px 0 4px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
#cw-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.cw-chip { color: #fff; font-size: 11.5px; padding: 2px 9px; border-radius: var(--r); }
#cw-replay input[type="range"] { width: 100%; margin: 6px 0; }
#wb-list label { display: block; margin: 6px 0; }
#wb-list select { max-width: 100%; }
#wb-slink { width: 100%; box-sizing: border-box; margin: 4px 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12px; }
.wb-dquelle { display: flex; gap: 6px; margin: 4px 0 8px; }
.wb-dquelle .mini2.on { border-color: var(--accent); color: var(--accent); }
.wb-dsuche { width: 100%; box-sizing: border-box; margin: 4px 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--r); }
.wb-dwahl { display: block; width: 100%; text-align: left; }
.wb-dwahl .hint { display: block; }
.wb-dvorschau { display: block; margin-top: 6px; background: var(--diagram-paper, var(--panel)); }
.wb-dvorschau svg { display: block; width: 100%; height: auto; }
.wk-didaktik-kurz { margin-bottom: 4px; }
.wk-didaktik-kurz ul { margin: 0 0 2px; padding-left: 1.15em; }
.wk-didaktik-mehr > summary {
  cursor: pointer; font-size: 12.5px; color: var(--accent);
  padding: 5px 0; list-style-position: inside;
}
.wk-didaktik-mehr[open] > summary { margin-bottom: 2px; }
.wk-h { font-size: 13.5px; margin: 14px 0 4px; letter-spacing: .01em; }
#vs-panel {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  width: min(430px, calc(100vw - 28px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 0 12px 10px;
}
#vs-panel header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 30px 8px 2px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
#vs-panel header .ex-x { top: 8px; right: -4px; }
.vs-frame { position: relative; padding-top: 56.25%; margin: 10px 0 6px; background: #000; border-radius: 8px; overflow: hidden; }
.vs-frame > div, .vs-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.vs-linkbox { text-align: center; padding: 12px 6px 6px; }
.vs-linkbox .vs-linkicon { font-size: 30px; margin-bottom: 2px; }
.vs-linkbox h4 { margin: 4px 0 6px; font-size: 15px; }
.vs-linkbox .hint { margin: 0 0 12px; }
.vs-linkbox label { display: block; text-align: left; font-size: 13px; font-weight: 600; }
.vs-linkbox input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0 10px;
  padding: 9px 11px;
  font-size: 14px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r);
  background: var(--panel);
  color: inherit;
}
.vs-linkbox .ss-big { width: 100%; }
.vs-err { color: var(--status-fehler); font-size: 13px; margin: 0 0 8px; text-align: left; }
.vs-consent { padding: 14px 6px 6px; text-align: center; }
.vs-consent p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.vs-row { display: flex; gap: 8px; align-items: center; margin: 8px 0 2px; padding: 0; }
.vs-row input { flex: 1; min-width: 0; }
.vs-tap { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.vs-tap .ss-big { flex: 1; }
#mi-status .linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}
dialog.lx-pop { width: 600px; max-width: calc(100vw - 32px); box-sizing: border-box; }
.lx-search { margin: 2px 0 12px; }
#lx-pop.lx-kurzblick .lx-search { display: none; }
.lx-hint { margin: 8px 0; font-size: 14px; color: var(--muted); }
.lx-list { margin: 0; padding: 0; list-style: none; }
.lx-list > li + li { border-top: 1px solid var(--line); }
.lx-entry { display: block; width: 100%; padding: 8px 10px; margin: 0 -10px; box-sizing: content-box; text-align: left; border: 0; }
.lx-entry-title { display: block; font-size: 15px; font-weight: 600; }
.lx-entry-kurz { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.lx-didmark { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.lx-gsfilter { margin: 0 0 6px -10px; }
.lx-back { margin: 0 0 6px -10px; }
.lx-tabs { flex-wrap: wrap; margin: 6px 0 0 -8px; }
.lx-choice { flex-wrap: wrap; margin-top: 10px; }
.lx-text { margin-top: 12px; font-size: 14.5px; line-height: 1.55; }
.lx-text p { margin: 8px 0; }
.lx-text ul, .lx-text ol { margin: 6px 0 6px 18px; padding: 0; }
.lx-link { color: var(--accent); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.lx-link.lx-off { color: var(--muted); cursor: default; text-decoration-style: dotted; }
.wk-sach-text { font-size: 13px; line-height: 1.55; }
.wk-blick { margin: 0 0 18px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.wk-blick .wk-blick-kopf { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.wk-blick .wk-sach-text ul { margin: 0 0 4px; padding-left: 1.15em; }
.wk-blick .wk-sach-text li { margin-bottom: 3px; }
.wk-kurzfassung { font-weight: 600; }
.lx-kurz { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.lx-mehr { margin: 4px 0 0 -10px; }
.lx-see { margin-top: 18px; }
.lx-see h3 { margin: 0; font-size: 14px; font-weight: 600; }
.lx-see ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.lx-see .lx-link { display: inline-flex; align-items: center; min-height: 24px; }
#lx-pop.lx-kurzblick .lx-text { margin-top: 0; }
#lx-pop.lx-kurzblick .wk-kurzfassung { font-weight: 400; font-size: 15px; line-height: 1.6; margin: 0 0 6px; }
.lx-lesen { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 14px; }
.lx-lesen .ic { width: 18px; height: 18px; flex: none; }
.wk-tabelle { overflow-x: auto; margin: 10px 0 12px; }
.wk-tabelle table { border-collapse: collapse; font-size: 12.5px; line-height: 1.45; }
.wk-tabelle th, .wk-tabelle td { padding: 5px 12px 5px 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); }
.wk-tabelle th { font-weight: 700; border-bottom-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.wk-tabelle .wk-rechts { text-align: right; }
.wk-tabelle .wk-mitte { text-align: center; }
.wk-diag { margin: 12px 0; padding: 0; }
:root { --diagram-paper: var(--panel, #fff); }
.wkd-gross { --diagram-paper: var(--panel); }
#ton-shell .wk-diag, .asg-preview .wk-diag, .at-erkundung .wk-diag, .ae-vorschau-laeufer .wk-diag { --diagram-paper: var(--paper); }
@media not print {
  :where(:root[data-farbmodus="dunkel"] [data-ink-dark]:not(:where(#ton-shell, .asg-preview, .at-erkundung, .ae-vorschau-laeufer) *)) [style*="--ink-dark-fill"] { fill: var(--ink-dark-fill); }
  :where(:root[data-farbmodus="dunkel"] [data-ink-dark]:not(:where(#ton-shell, .asg-preview, .at-erkundung, .ae-vorschau-laeufer) *)) [style*="--ink-dark-stroke"] { stroke: var(--ink-dark-stroke); }
}
.wk-diag .wk-diag-bild:not(:empty) {
  overflow-x: auto; text-align: center;
}
.wk-diag .wkd { display: inline-block; vertical-align: top; }
.wk-diag .wk-diag-bild:empty {
  display: block; min-height: 40px; border: 1px dashed var(--line);
  border-radius: 8px; opacity: 0.6;
}
.wk-diag > figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px;
  font-size: 14px; line-height: 1.35; color: var(--ink);
}
.wk-diag > figcaption > * { order: 1; }
.wk-diag > figcaption > .wk-diag-titel { order: 0; margin-right: auto; font-weight: 600; }
.wk-diag > figcaption > .wk-diag-nw { order: 2; flex-basis: 100%; }
.wkd-facetten { display: flex; flex-direction: column; gap: 14px; }
.wkd-facette { display: block; }
.wkd-facette-titel {
  font-size: 11.5px; font-weight: 600; opacity: 0.72; margin-bottom: 3px;
}
.wk-diag-img {
  max-width: 100%; height: auto; display: block; border-radius: 6px;
}
.wk-diag-img.wk-diag-halb { max-width: min(100%, 340px); }
.wk-diag-nw { display: block; font-size: 11px; opacity: 0.7; margin-top: 2px; }
.wk-diag-bedarf {
  min-height: 96px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 14px 16px; border-radius: var(--r);
  border: 1.5px dashed var(--line); color: var(--muted);
  font-size: 12.5px; font-style: normal;
}
@media print {
  .wk-diag-bedarf { min-height: 130px; border-color: #999; color: #555; }
}
.wk-diag-fehler, .wk-diag-fehler.wk-diag-bedarf {
  border-color: var(--status-fehler); color: var(--status-fehler); font-style: normal;
}
@media print {
  .wk-diag-fehler.wk-diag-bedarf { border-color: var(--status-fehler); color: var(--status-fehler); }
}
.wk-diag-play, .wk-diag-folge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px 0 8px;
  border: 0; border-radius: var(--r); background: none; color: var(--ink); cursor: pointer;
  font-size: 13px; font-weight: 600; line-height: 1.2; font-style: normal; white-space: nowrap;
}
.wk-diag-play .ic, .wk-diag-folge .ic { width: 16px; height: 16px; flex: none; color: var(--accent); }
.wk-diag-play:hover, .wk-diag-folge:hover { background: var(--field); }
.wk-diag-play:active, .wk-diag-folge:active { background: var(--field-pressed); }
.wk-diag-playm, .wk-diag-rec, .wk-diag-link {
  border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 12.5px; font-weight: 600;
  line-height: 1.2; min-height: 24px; padding: 3px 8px; border-radius: var(--r); margin: 0 2px 2px 0; font-style: normal;
}
.wk-diag-playm, .wk-diag-rec, .wk-diag-video { display: inline-flex; align-items: center; gap: 5px; }
:is(.wk-diag-playm, .wk-diag-rec, .wk-diag-video) .ic { width: 14px; height: 14px; flex: none; }
.wk-diag-playm:hover, .wk-diag-rec:hover, .wk-diag-link:hover { background: var(--field); }
.wk-diag-playm:focus-visible { outline: 2px solid var(--accent); }
.wk-diag-rec:focus-visible, .wk-diag-link:focus-visible { outline-offset: 1px; }
.wk-diag-link { overflow-wrap: anywhere; text-align: left; }
.wk-diag-rec-aus { display: block; font-size: 12px; color: var(--muted); font-style: normal; }
.wk-diag-hoer {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  border: 1.5px solid var(--line); color: var(--ink); text-align: left;
}
.wk-diag-hoer > .ic { flex: none; color: var(--accent); }
.wk-diag-hoer b { display: block; font-size: 14px; }
.wk-diag-hoer span { display: block; font-size: 12.5px; color: var(--muted); }
.wk-diag-video-box { width: 100%; min-width: min(100%, 320px); margin: 6px 0 4px; }
.wk-diag-video-box > p { font-size: 13px; color: var(--muted); margin: 6px 0; }
@media print {
  .wk-diag-rec, .wk-diag-link, .wk-diag-video-box { display: none; }
}
.asg-picked .asg-note { display: block; margin-top: 2px; }
.wk-diag-gross {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 8px;
  border: 0; border-radius: var(--r); background: none; color: var(--ink); cursor: pointer;
  font-size: 13px; font-weight: 400; line-height: 1.2; font-style: normal; white-space: nowrap;
}
.wk-diag-gross .ic { width: 16px; height: 16px; flex: none; }
.wk-diag-gross:hover { background: var(--field); }
.wk-diag-gross:active { background: var(--field-pressed); }
@media (pointer: coarse) { .wk-diag-play, .wk-diag-folge, .wk-diag-gross, .wk-diag-beschr { min-height: 40px; } }
.wk-diag-folge { margin: 0 6px 2px 0; }
.wk-diag-tempo {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 8px 2px 2px;
  color: var(--muted); font-size: 12px; font-style: normal; vertical-align: middle;
}
.wk-diag-tempo input { width: 84px; height: 24px; margin: 0; accent-color: var(--accent); }
.wk-diag-tempo-wert { min-width: 6em; }
.wk-diag-beschr { font-size: 13px; font-style: normal; min-height: 28px; padding: 0 6px 0 8px; margin: 0 6px 2px 0; vertical-align: middle; }
.wk-diag-fassung { display: flex; flex-wrap: wrap; margin: 0 0 6px; }
.wkd-gross {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; background: var(--panel);
  color: var(--ink);
  display: flex; flex-direction: column;
}
.wkd-gross::backdrop { background: rgba(20, 18, 26, .55); }
.wkd-g-kopf {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: calc(8px + var(--sat, 0px)) 14px 8px;
  border-bottom: 1px solid var(--line);
}
.wkd-g-titel {
  flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 800;
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wkd-g-mass { flex: none; }
@media (pointer: coarse) { .wkd-g-mass { min-height: 40px; padding: 6px 12px; } }
.wkd-g-x {
  flex: none; width: 34px; height: 34px; min-height: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); color: var(--ink); cursor: pointer;
}
@media (pointer: coarse) { .wkd-g-x { width: 40px; height: 40px; } }
.wkd-g-feld {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  padding: 10px 12px calc(10px + var(--sab, 0px));
  display: flex; align-items: center; justify-content: center;
}
.wkd-g-feld.wkd-g-original { display: block; }
.wkd-g-feld .wkd { max-width: 100%; height: auto; }
.wkd-g-feld.wkd-g-original .wkd { max-width: none; }
.wkd-g-hinweis {
  flex: none; padding: 6px 14px calc(8px + var(--sab, 0px));
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line);
}
#wiz-pop {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(20, 26, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wiz-box { width: min(620px, 94vw); position: relative; }
.wiz-len { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.wiz-blocks { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.wiz-block {
  min-width: 64px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  font-size: 22px;
  line-height: 1.1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.wiz-block span { font-size: 11.5px; color: var(--muted); }
.wiz-block:hover:not(:disabled) { border-color: var(--accent); }
.wiz-block:disabled { opacity: 0.35; cursor: default; }
.wiz-del { justify-content: center; font-size: 18px; }
.wiz-rail {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  min-height: 46px;
  margin: 10px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--field);
}
.wiz-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  font-size: 13px;
  cursor: pointer;
}
.wiz-slot.rest { opacity: 0.55; cursor: default; }
.wiz-bar { width: 2px; height: 34px; background: var(--line); margin: 0 3px; }
.wiz-vorrat { display: block; margin: 4px 0; font-size: 12.5px; color: var(--muted); }
.wiz-tempo { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
#wz-hint { min-height: 18px; }
#kurs-karte {
  position: fixed; right: 16px; bottom: calc(var(--kk-unten, 0px) + 16px);
  z-index: 88;   
  display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 88px - var(--kk-unten, 0px));
  border-radius: var(--r); background: var(--raised); color: var(--ink); box-shadow: var(--shadow);
  font-family: var(--font); font-size: 16px;
}
#kurs-karte > header { display: flex; align-items: center; gap: 8px; flex: none; min-height: 52px; padding: 4px 4px 4px 16px; border-bottom: 1px solid var(--line); }
.kk-bild { display: flex; flex: none; color: var(--area-ink); }
#kurs-karte h2 { flex: 1; min-width: 0; margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
#kurs-karte .ks-tool { width: 44px; min-width: 44px; height: 44px; padding: 0; color: var(--muted); }
#kurs-karte .ks-tool:hover:not(:disabled) { color: var(--ink); }
.kk-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; }
.kk-step { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.kk-boxes i.half { border-color: var(--area-ink); background: var(--panel) repeating-linear-gradient(-55deg, transparent 0 2.5px, var(--area-ink) 2.5px 3.9px); }
.kk-text { line-height: 1.5; }
.kk-text p { margin: 0; }
.kk-text :is(p, ul, ol) + p { margin-top: 8px; }
.kk-text :is(ul, ol) { margin: 6px 0 0; padding-left: 20px; }
.kk-text li + li { margin-top: 4px; }
.kk-text b { font-weight: 700; }
#kurs-karte .ks-secondary { min-height: 48px; padding: 0 14px 0 10px; gap: 8px; font-size: 16px; }
#kurs-karte .ks-secondary .ic { width: 22px; height: 22px; }
.kk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 14px 0 0 -10px; }
.kk-dorow + .kk-acts { margin-top: 6px; }
.kk-dorow { margin-top: 14px; }
.kk-do {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 16px;
  border: 1px solid transparent; border-radius: var(--r); background: var(--area-soft); color: var(--ink); font-size: 18px; font-weight: 700;
}
.kk-do .ic { width: 22px; height: 22px; color: var(--area-ink); }
#kurs-karte .kk-do:hover:not(:disabled) { border-color: transparent; background: var(--area-hover); }
#kurs-karte .kk-do:active:not(:disabled) { background: color-mix(in srgb, var(--area-hover) 92%, var(--ink)); color: var(--ink); }
.kk-do:focus-visible { outline-color: var(--area-ink); }
#kurs-karte .kk-do:disabled { opacity: 1; border-color: var(--edge); border-style: dashed; background: none; color: var(--muted); cursor: not-allowed; }
.kk-do:disabled .ic { color: var(--muted); }
#kk-hints:not(:empty) { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.kk-hintlist { margin: 0; padding: 0; list-style: none; }
.kk-hintlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 8px 0; font-size: 14px; line-height: 1.45; }
.kk-hintlist li + li { border-top: 1px solid var(--line); }
.kk-takt { grid-column: 1 / -1; justify-self: start; padding: 1px 6px; border-radius: var(--r-small); background: var(--field); font-size: 13px; font-weight: 700; }
.kk-hintbtns { display: inline-flex; }
#kurs-karte .kk-hintbtns .ks-tool { color: var(--accent); }
.kk-good { display: flex; align-items: center; gap: 12px; margin: 0; padding-top: 10px; line-height: 1.4; }
.kk-stand { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 0 0 10px; font-weight: 700; }
:is(.kk-good, .kk-stand) .ks-check-hand { flex: none; width: 30px; height: 25px; }
.kk-msg { display: flex; align-items: flex-start; gap: 8px; flex-basis: 100%; margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--status-fehler); }
.kk-acts .kk-msg { margin-left: 10px; }
.kk-msg .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.kk-fehler { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 12px; }
#kk-hints > .kk-fehler { margin-top: 8px; }
.kk-fehler .ks-secondary { margin-left: -10px; }
.kk-fehler.is-fuss { flex: none; margin: 0; padding: 8px 16px 2px; border-top: 1px solid var(--line); }
#kurs-karte > footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; padding: 8px 12px 10px 16px; border-top: 1px solid var(--line); }
#kurs-karte > footer .ks-back { margin-left: -10px; }
#kk-next { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 112px; min-height: 48px; padding: 0 18px; font-size: 16px; }
#kk-next .ic { width: 20px; height: 20px; }
#kurs-karte.kk-min { display: none; }
#kk-info {
  position: fixed; right: 16px; bottom: calc(var(--kk-unten, 0px) + 16px); z-index: 88;
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0;
  border: 0; border-radius: var(--round); background: var(--raised); color: var(--accent); box-shadow: var(--shadow); cursor: pointer;
}
#kk-info:hover { background: var(--field); }
@media (max-width: 700px) {
  #kurs-karte { right: 0; bottom: var(--kk-unten, 0px); left: 0; width: auto; max-height: min(72vh, calc(100vh - 88px - var(--kk-unten, 0px))); border-radius: var(--r) var(--r) 0 0; }
}
@media (max-height: 520px) {
  #kurs-karte { inset: 0; width: auto; max-height: none; border-radius: 0; box-shadow: none; }
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/AtkinsonHyperlegibleNext.woff2') format('woff2');
}
@font-face {
  font-family: 'Playwrite DE Grund';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PlaywriteDEGrund.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/Nunito.woff2') format('woff2');
}
@font-face {
  font-family: 'Fallback Glyphs';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('libs/schriften/FallbackGlyphs.ttf') format('truetype');
}
#ton-shell, .asg-preview .asg-page, .at-erkundung, .ae-vorschau-laeufer {
  --rosa: #c65089;
  --blau: #1668b3;
  --t-hov: rgba(255, 255, 255, .62);
}
#ton-shell, #kurs-karte {
  --area-workshop-ink: #ac4978; --area-workshop-soft: #faf1f6; --area-workshop-hover: #f8eaf1;
  --area-exercises-ink: #8d6820; --area-exercises-soft: #fdf7ed; --area-exercises-hover: #fbf4e4;
  --area-piano-ink: #217953; --area-piano-soft: #edf7f3; --area-piano-hover: #e4f3ed;
}
#ton-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  overflow-y: auto;
  background: var(--paper);
}
#ton-shell.bar { bottom: auto; overflow: visible; }
#ton-shell.bar .ton-body { display: none; }
body.ton-bar { padding-top: calc(var(--ton-tabsh) + 10px); }
body.ton-has #tab-bar { display: none; }
body.ton-on { overflow: hidden; }
body.ton-startseite .main-col { visibility: hidden; }
#ton-shell [hidden] { display: none !important; }
:where(#ton-shell) button:where(:not(.primary, .ks-secondary, .ks-tool, .ks-onward, .ks-back, .ks-switch, .ks-segmented > button,
  .ks-tabs > [role=tab], .ks-start, .ks-search button)) {
  border: none; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: inherit; border-radius: 0; cursor: pointer;
}
@keyframes tonPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .28; transform: scale(.72); } }
:root { --ton-tabsh: 40px; }
@media (pointer: coarse) { :root { --ton-tabsh: 44px; } }
.ton-tabs {
  display: flex; align-items: center; gap: 4px; min-height: var(--ton-tabsh); box-sizing: border-box;
  background: var(--panel); padding: 0 12px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.ton-tabrow { display: flex; align-items: center; gap: 6px; min-width: 0; height: calc(var(--ton-tabsh) - 1px); overflow-x: auto;
  scrollbar-width: none; }
.ton-tabrow::-webkit-scrollbar { display: none; }
.ton-tab { display: flex; align-items: center; gap: 0; flex: none; max-width: 240px; }
.ton-tabname {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; height: 36px; padding: 0 6px;
  border-radius: var(--r); color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap;
}
.ton-tabname:hover { color: var(--ink); }
.ton-tabname[aria-current="true"] { color: var(--ink); font-weight: 600; }
.ton-tabname::after {
  content: ""; position: absolute; left: 6px; right: 4px; bottom: 3px; height: 5px; pointer-events: none; opacity: 0;
  background: var(--accent); -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
}
.ton-tabname[aria-current="true"]::after { opacity: 1; }
@media (forced-colors: active) { .ton-tabname::after { forced-color-adjust: none; background: CanvasText; } }
.ton-tab .ton-dot { width: 9px; height: 9px; border-radius: var(--r-small); background: color-mix(in srgb, var(--muted) 55%, var(--field)); flex: none; }
.ton-tab .ton-tname { overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ton-tab .ton-brand { flex: none; }
.ton-tab .ton-x { min-width: 28px; width: 28px; height: 28px; padding: 0; border-radius: var(--r); color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1; }
.ton-tab .ton-x:hover { color: var(--ink); }
.ton-tab .ton-x .ic { width: 16px; height: 16px; }
:is(.ton-tabname, .ton-tab .ton-x):focus-visible { outline-offset: -2px; }
.ton-newtab { width: 36px; padding: 0; border-radius: var(--r); color: var(--muted); flex: none; }
.ton-newtab:hover { color: var(--ink); }
.ton-flex { flex: 1; }
.ton-menuwrap { position: relative; flex: none; min-width: 0; }
.ton-menu { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 2px 0 10px; border-radius: var(--r); max-width: 42vw; }
.ton-mname { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ton-mname:empty { display: none; }
.ton-konto { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--field); color: var(--ink); }
.ton-konto .ic { width: 18px; height: 18px; }
@media (pointer: coarse) {
  .ton-tabname { height: calc(var(--ton-tabsh) - 1px); }
  .ton-tab .ton-x, .ton-newtab { width: 44px; min-width: 44px; height: calc(var(--ton-tabsh) - 1px); }
  .ton-menu { height: calc(var(--ton-tabsh) - 1px); }
}
.ton-body {
  flex: 1; display: flex; flex-direction: column; gap: 24px;
  width: 100%; max-width: 1504px; margin: 0 auto; padding: 22px 32px 32px; box-sizing: border-box;   
}
.ton-searchwrap { position: relative; }
.ton-results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10;
  display: flex; flex-direction: column; gap: 1px; padding: 4px;
  border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow);
  animation: ks-pop-in .15s ease-out;
}
.ton-res {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px 4px 8px;
  border-radius: var(--r); color: var(--ink); font-size: 14px; font-weight: 400; text-align: left;
}
.ton-res:hover, .ton-res:focus-visible { background: var(--field); }
.ton-res:focus-visible { outline-offset: -2px; }
.ton-res .ic, .ton-res svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.ton-res b { font-weight: 600; }
.ton-res span { color: var(--muted); font-size: 13px; }
.ton-row { display: flex; gap: 28px; align-items: stretch; min-width: 0; margin-right: -32px; }
.ton-start { flex: none; width: 176px; display: flex; flex-direction: column; gap: 4px; padding-top: 34px; }
.ton-new {
  display: flex; align-items: center; gap: 12px; height: 48px; margin-left: -6px; padding: 0 10px 0 6px;
  border-radius: var(--r); color: var(--ink); font-size: 16px; font-weight: 600; white-space: nowrap;
}
#ton-shell .ton-new:hover { background: var(--field); }
#ton-shell .ton-new:active { background: var(--field-pressed); }
.ton-badge {
  display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px;
  border-radius: var(--r); background: var(--rc-noteneditor-soft, #e3edf6); color: var(--rc-noteneditor-accent, #1668b3);
}
.ton-badge .ic { width: 22px; height: 22px; }
.ton-place {
  position: relative; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px;
  border-radius: var(--r-paper); background: var(--panel); box-shadow: var(--shadow); color: var(--ink); text-align: left;
}
#ton-shell .ton-place:hover, #ton-shell .ton-place:active { background: var(--panel); }
.ton-sico { display: flex; flex: none; color: var(--muted); }
.ton-sico svg { width: 28px; height: 28px; }
.ton-stitle { min-width: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ton-place .ton-go { flex: none; width: 20px; height: 20px; margin-left: auto; color: var(--muted); }
.ton-place:hover:not([aria-disabled="true"]) .ton-stitle { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ton-place[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.ton-start .ton-place { height: 56px; margin-top: 12px; padding: 0 12px; gap: 10px; }
.ton-start .ton-sico svg { width: 26px; height: 26px; }
.ton-nosession { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.ton-zettel {
  position: absolute; right: 44px; top: -12px; padding: 5px 9px 6px; font-size: 13px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; transform: rotate(2.5deg);
}
.ton-recent { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ton-recent h2 { margin: 0 0 6px 2px; font-family: var(--hand); font-weight: 400; font-size: 19px; line-height: 1.3; color: var(--ink); }
.ton-scroll {
  flex: 1; display: flex; align-items: flex-start; gap: 20px; margin: 0; padding: 3px 32px 3px 3px; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.ton-scroll::-webkit-scrollbar { display: none; }
.ton-tile { --prev-h: 94px; position: relative; flex: none; width: 150px; }
.ton-topen { display: flex; flex-direction: column; width: 100%; color: var(--ink); text-align: left; }
#ton-shell .ton-topen:hover, #ton-shell .ton-topen:active { background: none; }
.ton-prev {
  display: flex; align-items: center; justify-content: center; height: var(--prev-h); border: 1px solid var(--line);
  border-radius: var(--r-paper); background: var(--paper); color: var(--edge); overflow: hidden;
}
.ton-prev > svg.ic { width: 28px; height: 28px; stroke-width: 1.8; }
.ton-prev.is-wait { background: var(--field); }
.ton-prev.is-wait > svg.ic { visibility: hidden; }
.ton-ttitle {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere;
}
.ton-topen:hover .ton-ttitle { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ton-tsub { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 3px; font-size: 13px; color: var(--muted); }
.ton-tsub .ic { flex: none; width: 14px; height: 14px; color: var(--rc-noteneditor-accent, #1668b3); }
.ton-tile-blatt .ton-tsub .ic { color: var(--rc-atelier-accent, #755bb5); }   
.ton-tsub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ton-tx { position: absolute; top: 4px; right: 4px; min-width: 28px; width: 28px; height: 28px; padding: 0; color: var(--muted); opacity: 0; }
#ton-shell .ton-tx:hover { background: var(--field); color: var(--ink); }
.ton-tile:hover .ton-tx, .ton-tx:focus-visible { opacity: 1; }
.ton-tx .ic { width: 16px; height: 16px; }
@media (pointer: coarse) {
  .ton-tx { opacity: 1; top: calc(var(--prev-h) + 2px); right: -6px; }
  .ton-tile:has(.ton-tx) :is(.ton-ttitle, .ton-tsub) { padding-right: 36px; }
}
.ton-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 94px; padding: 0 2px; color: var(--muted); font-size: 14px; }
.ton-hint .ton-retry { margin-left: -10px; }
.ton-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ton-places { padding-top: 6px; }
.ton-f-werk { --area-ink: var(--area-workshop-ink); --area-soft: var(--area-workshop-soft); --area-hover: var(--area-workshop-hover); }
.ton-f-ueb { --area-ink: var(--area-exercises-ink); --area-soft: var(--area-exercises-soft); --area-hover: var(--area-exercises-hover); }
.ton-f-piano { --area-ink: var(--area-piano-ink); --area-soft: var(--area-piano-soft); --area-hover: var(--area-piano-hover); }
.ton-big {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 190px; padding: 18px 22px;
  border-radius: var(--r); background: var(--area-soft, var(--field)); color: var(--ink); text-align: left;
}
#ton-shell .ton-big:hover { background: var(--area-hover, var(--field-hover)); }
#ton-shell .ton-big:active { background: color-mix(in srgb, var(--area-hover, var(--field)) 92%, var(--ink)); }
.ton-big:focus-visible { outline-color: var(--area-ink, var(--accent)); }
.ton-bico { display: flex; margin-bottom: 12px; color: var(--area-ink, var(--ink)); }
.ton-bico svg { display: block; width: 44px; height: 44px; }
.ton-btitle { align-self: flex-start; font-family: var(--hand); font-weight: 400; font-size: 24px; line-height: 1.25; }
.ton-btitle::after, .ton-ahead h1::after {
  content: ""; display: block; height: 4px; margin-top: 2px; background: var(--area-ink, var(--ink));
  -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
}
@media (forced-colors: active) { .ton-btitle::after, .ton-ahead h1::after { forced-color-adjust: none; background: CanvasText; } }
.ton-bsub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.ton-ahead { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0 12px; min-height: 48px; margin-bottom: 16px; }
.ton-ahead-bild { display: flex; padding-bottom: 9px; color: var(--area-ink, var(--ink)); }
.ton-ahead h1 { margin: 0; font-family: var(--hand); font-weight: 400; font-size: 30px; line-height: 1.25; overflow-wrap: anywhere; }
.ton-ahead p { margin: 0; padding-bottom: 8px; font-size: 14px; color: var(--muted); }
.ton-prog { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 14px; }
.ton-segs:empty { display: none; }
.ton-plabel { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
@media (max-width: 1024px) {
  .ton-body { padding: 18px 24px 28px; gap: 20px; }
  .ton-row { gap: 20px; margin-right: -24px; }
  .ton-scroll { padding-right: 24px; }
  .ton-big { padding: 16px 18px; }
}
@media (max-width: 767px) {
  .ton-body { padding: 14px 16px 24px; gap: 18px; }
  .ton-row { flex-wrap: wrap; gap: 14px; margin-right: -16px; }
  .ton-start { flex: 1 0 100%; flex-direction: row; align-items: center; gap: 12px; width: auto; padding: 0 16px 0 0; }
  .ton-start .ton-new { flex: 1 1 0; min-width: 0; margin-left: -6px; }
  .ton-start .ton-place { flex: 1 1 0; min-width: 0; margin-top: 0; }
  .ton-recent { flex: 1 0 100%; }
  .ton-scroll { padding-right: 16px; gap: 14px; }
  .ton-tile { width: 132px; --prev-h: 82px; }
  .ton-hint { min-height: 48px; }
  .ton-grid3 { grid-template-columns: 1fr; gap: 10px; }
  .ton-big {
    display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start;
    min-height: 0; padding: 14px 16px;
  }
  .ton-bico { grid-row: 1 / span 3; margin: 2px 0 0; }
  .ton-bico svg { width: 36px; height: 36px; }
  .ton-btitle { justify-self: start; font-size: 21px; }
  .ton-ahead { margin-bottom: 12px; }
  .ton-ahead h1 { font-size: 26px; }
  .ton-bsub { margin-top: 2px; }
  .ton-prog { padding-top: 8px; }
  .ton-places { padding-top: 2px; }
  .ton-place { height: 56px; }
  .ton-nosession { margin-top: -4px; }
}
@media (max-height: 500px) and (min-width: 768px) {
  .ton-body { padding-top: 12px; gap: 14px; }
  .ton-searchwrap .ks-search > input { height: 44px; }
  .ton-start { padding-top: 30px; }
  .ton-tile { --prev-h: 70px; }
  .ton-big { min-height: 0; padding: 12px 16px; }
  .ton-bico { margin-bottom: 6px; }
  .ton-bico svg { width: 32px; height: 32px; }
  .ton-btitle { font-size: 20px; }
  .ton-place { height: 52px; }
}
@media (pointer: coarse) {
  .ton-res { min-height: 44px; }
  .ton-tx { width: 44px; height: 44px; }
  .ton-searchwrap .ks-search > input { min-height: 48px; }
  .ton-retry { min-height: 44px; }   
}
#bib-pop {
  --b-muted: var(--muted);
  --b-line: var(--line);
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(24, 22, 18, .46);
  backdrop-filter: blur(3px);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
#bib-pop[hidden] { display: none; }
:where(#bib-pop button:not(.primary, .ks-secondary, .ks-tool, .ks-onward, .ks-switch, .ks-segmented > button, .ks-tabs > [role=tab])) { border: none; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: inherit; border-radius: 0; cursor: pointer; }
#bib-pop [hidden] { display: none !important; }
.bib-card {
  position: relative;
  width: min(1000px, 100%);
  height: min(660px, calc(100vh - 52px));
  background: var(--panel);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bib-head { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 18px; border-bottom: 1px solid var(--line); }
.bib-hic { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--ink); flex: none; }
.bib-hic svg { width: 22px; height: 22px; }
.bib-head h2 { margin: 0; flex: 1; font-size: 17px; font-weight: 600; }
.bib-x { flex: none; }
.bib-body { flex: 1; display: flex; min-height: 0; }
.bib-movepop { position: fixed; z-index: 96; display: flex; flex-direction: column; gap: 2px;
  padding: 5px; min-width: 190px; max-width: min(300px, calc(100vw - 20px)); max-height: 60vh;
  overflow-y: auto; border-radius: var(--r); background: var(--panel);
  border: 1px solid var(--b-line, var(--line)); box-shadow: var(--shadow); }
.bib-movepop button { display: flex; align-items: center; gap: 8px; width: 100%; font: inherit;
  font-size: 13px; text-align: left; cursor: pointer; border: 0; background: none;
  border-radius: var(--r); padding: 8px 11px; color: inherit; }
.bib-movepop button:hover { background: color-mix(in srgb, currentColor 9%, transparent); }
.bib-movepop button svg { width: 17px; height: 17px; flex: none; opacity: .7; }
.bib-railbtn { display: none; flex: none; }
.bib-railbtn svg { width: 19px; height: 19px; }
.bib-rail { width: 230px; flex: none; border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; padding: 12px; gap: 2px; overflow-y: auto; }
.bib-railh { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.bib-folder { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); font-size: 14.5px; font-weight: 800; color: var(--ink); transition: background .12s ease; width: 100%; }
.bib-folder:hover { background: var(--field); }
.bib-folder.on { font-weight: 600; }
.bib-folder.sub { margin-left: 20px; width: calc(100% - 20px); font-size: 14px; }
.bib-folder svg { width: 19px; height: 19px; flex: none; color: color-mix(in srgb, var(--muted) 70%, var(--ink)); }
.bib-folder.on svg { color: var(--accent); }
.bib-folder.on .bib-fname { flex: 0 1 auto; position: relative; padding-bottom: 5px; margin-bottom: -5px; }
.bib-folder.on .bib-fname::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; pointer-events: none;
  background: var(--accent); -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
}
.bib-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bib-fcount { font-size: 12px; font-weight: 800; color: var(--muted); }
.bib-folder.on .bib-fcount { margin-left: auto; color: var(--ink); }
.bib-sep { height: 1px; background: var(--line); margin: 8px -12px; flex: none; }
.bib-newfolder { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--ink); transition: background .12s ease; }
.bib-newfolder:hover { background: var(--field); }
.bib-newfolder svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.bib-nflabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bib-pop .dropover { background: color-mix(in srgb, var(--accent) 14%, var(--panel)) !important; border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
#bib-pop .bib-edit { flex: 1; min-width: 0; margin: -2px 0; }
.bib-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bib-ortname { margin: 0; font-size: 15px; font-weight: 600; flex: none; min-width: 0; display: flex; align-items: center; gap: 4px; }
.bib-toolbar .bib-q { flex: 1 1 auto; max-width: 380px; margin-right: auto; }
#bib-pop .ks-tool > svg { width: 18px; height: 18px; flex: none; }
.bib-pick { display: none; }
@media (pointer: coarse) { .bib-pick { display: inline-flex; } }
.bib-del { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--r); border: 1.5px solid color-mix(in srgb, var(--status-fehler) 40%, transparent); font-size: 13.5px; font-weight: 800; color: var(--status-fehler); transition: background .12s, border-color .12s; }
.bib-del:hover { background: color-mix(in srgb, var(--status-fehler) 8%, var(--panel)); }
.bib-del.armed { background: var(--status-fehler); border-color: var(--status-fehler); color: var(--panel); }
.bib-del svg { width: 15px; height: 15px; }
.bib-gridwrap { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 20px; user-select: none; -webkit-user-select: none; }
.bib-subrow { display: flex; flex-wrap: wrap; gap: 12px; }
.bib-subrow:not(:empty) { margin-bottom: 14px; }
.bib-subtile { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--panel); font-size: 14px; font-weight: 800; box-shadow: var(--shadow); transition: transform .16s ease, border-color .14s ease, box-shadow .14s ease; }
.bib-subtile:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.bib-subtile svg { width: 18px; height: 18px; color: color-mix(in srgb, var(--muted) 70%, var(--ink)); }
.bib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 15px; }
.bib-piece {
  position: relative;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.bib-piece:hover { border-color: color-mix(in srgb, var(--ink) 32%, var(--line)); }
.bib-card.picking .bib-piece, .bib-piece.sel { touch-action: none; }
.bib-piece { -webkit-touch-callout: none; }
.bib-piece.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.bib-piece.dragsrc { opacity: .45; }
.bib-prev { position: relative; height: 104px; background: var(--field); border-bottom: 1.5px solid var(--line); }
.bib-prev::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 41px; transform: translateY(-50%); background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--ink) 10%, transparent) 0, color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1px, transparent 10px); }
.bib-star { position: absolute; top: 6px; right: 6px; z-index: 3; width: 30px; height: 30px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: color .12s ease, background .12s ease; }
.bib-star:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--muted); }
.bib-star.on { color: var(--accent); }
.bib-star svg { width: 17px; height: 17px; }
@media (pointer: coarse) {
  .bib-star { width: 40px; height: 40px; border-radius: var(--r); }
  .bib-star svg { width: 23px; height: 23px; }
  #bib-grid .bib-piece.bib-kat .bib-star { width: 34px; height: 34px; }
  #bib-grid .bib-piece.bib-kat .bib-star svg { width: 20px; height: 20px; }
}
.bib-meta { padding: 9px 13px 11px; display: flex; flex-direction: column; gap: 1px; }
.bib-prow { display: flex; align-items: center; gap: 5px; min-width: 0; }
.bib-ptitle { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bib-pencil { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-width: 24px; border-radius: var(--r); color: var(--muted); opacity: 0; transition: opacity .12s, background .12s, color .12s; }
.bib-piece:hover .bib-pencil, .bib-pencil:focus-visible { opacity: 1; }
.bib-pencil:hover { background: var(--field); color: var(--ink); }
.bib-pencil svg { width: 13px; height: 13px; }
.bib-ptime { font-size: 12px; font-weight: 700; color: var(--muted); }
.mr-suchen {
  margin-top: 10px; padding: 6px 12px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--panel); font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.mr-suchen:hover { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.mr-suchen[disabled] { opacity: .55; cursor: default; }
.mr-treffer { margin-top: 8px; }
.mr-tref { width: 100%; text-align: left; cursor: pointer; }
.mr-tref:hover { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
tr.bib-katrow { cursor: pointer; }
.bib-kstar { border: none; background: none; padding: 2px; color: var(--muted); cursor: pointer; display: inline-flex; }
.bib-kstar:hover { color: var(--muted); }
.bib-kstar.on { color: var(--accent); }
.bib-kstar { align-items: center; vertical-align: middle; }
.bib-kstar svg { width: 15px; height: 15px; }
.bib-tab col.c-x { width: 34px; }
td.bib-tdx { text-align: center; padding-left: 2px; padding-right: 6px; }
.bib-bldel { color: var(--muted); opacity: 0; }
.bib-row:hover .bib-bldel, .bib-bldel:focus-visible { opacity: 1; }
.bib-bldel:hover { color: var(--status-fehler); }
body.persona-teacher #bib-pop .bib-kstar svg { width: 19px; height: 19px; }
.mk-pruef { background: color-mix(in srgb, var(--accent) 11%, var(--panel)); color: var(--accent); }
.bib-railhint { margin: 6px 8px 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
tr.bib-row > td.tt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bib-fest .bib-th { cursor: default; }
.bib-fest .bib-th:hover { color: var(--muted); }
body.persona-teacher #bib-pop {
  font-family: var(--font);
  font-size: 14px;
}
body.persona-teacher #bib-pop .bib-liveic {
  background: var(--live-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live-text) 22%, transparent);
}
body.persona-teacher #bib-pop .bib-folder.bib-live .bib-fname { color: var(--live-text); font-weight: 600; }
body.persona-teacher #bib-pop .bib-rail { width: 206px; }
body.persona-teacher #bib-pop .bib-railh {
  text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--muted);
}
body.persona-teacher #bib-pop .bib-folder,
body.persona-teacher #bib-pop .bib-newfolder {
  font-size: 13.5px; font-weight: 500; border-radius: var(--r); padding: 7px 10px;
}
body.persona-teacher #bib-pop .bib-folder.on { font-weight: 600; }
body.persona-teacher #bib-pop .bib-folder svg { width: 17px; height: 17px; }
body.persona-teacher #bib-pop .bib-fcount { font-weight: 500; font-variant-numeric: tabular-nums; }
body.persona-teacher #bib-pop .bib-th { font-weight: 600; }
body.persona-teacher #bib-pop .bib-th.num,
body.persona-teacher #bib-pop tr.bib-row > td.num { font-variant-numeric: tabular-nums; }
.bib-card:has(.bib-tab) { width: min(1320px, 100%); height: min(760px, calc(100vh - 52px)); }
.bib-grid.bib-liste { display: block; }
.bib-grid > .bib-tab { grid-column: 1 / -1; }
.bib-content { min-width: 0; }
.bib-tab { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.bib-th {
  position: sticky; top: 0; z-index: 2; background: var(--panel); text-align: left;
  font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 7px 10px 8px;
  border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none;
}
.bib-th:hover { color: var(--ink); }
.bib-th.num { text-align: right; }
.bib-pf { opacity: 0; font-size: 10px; }
.bib-th.sort { color: var(--accent); }
.bib-th.sort .bib-pf { opacity: 1; }
tr.bib-row {
  display: table-row; background: none; border: none; border-radius: 0;
  box-shadow: none; overflow: visible;
}
tr.bib-row.sel { box-shadow: none; border-color: transparent; }
tr.bib-row > td { display: table-cell; }
tr.bib-row > td { padding: 4px 10px; vertical-align: middle; border: none; }
tr.bib-row:hover > td { background: var(--field); }
tr.bib-row.sel > td { background: var(--accent-soft); }
tr.bib-row > td:first-child { border-radius: var(--r) 0 0 var(--r); }
.bib-thhk, td.bib-tdhk { text-align: center; padding-left: 4px; padding-right: 4px; }
td.bib-tdhk input, .bib-thhk input { margin: 0; cursor: pointer; }
.bib-vor {
  display: block; width: 128px; height: 34px; overflow: hidden;
  border-radius: var(--r); background: var(--paper);
}
.bib-vor svg { width: 128px; height: auto; display: block; }
.bib-vor.laedt { background: repeating-linear-gradient(180deg, transparent 0 10px, var(--field) 10px 11px); }
tr.bib-row > td:last-child { border-radius: 0 var(--r) var(--r) 0; }
tr.bib-row > td.num { text-align: right; }
tr.bib-row .bib-ptitle { font-weight: 600; }
tr.bib-row > td.bib-titelsp { overflow: hidden; white-space: nowrap; }
tr.bib-row > td.bib-titelsp .bib-ptitle {
  display: inline-block; max-width: calc(100% - 30px); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
.bib-tab col.c-hk { width: 34px; }
.bib-tab col.c-v { width: 136px; }
.bib-tab col.c-a { width: 92px; }
.bib-tab col.c-komp { width: 190px; }
.bib-tab col.c-abg { width: 116px; }
.bib-tab col.c-art { width: 118px; }
tr.bib-row > td.bib-tdtitel { white-space: normal; overflow: visible;
  line-height: 1.3; padding-top: 7px; padding-bottom: 7px; }
.bib-tab col.c-note { width: 58px; }
.bib-kstufe { white-space: nowrap; margin-left: .4em; }   
.bib-tab col.c-amb { width: 80px; }   
.bib-tab col.c-ts { width: 92px; }
.bib-tab col.c-n { width: 88px; }
.bib-tab col.c-n2 { width: 104px; }
.bib-gridwrap { container-type: inline-size; container-name: bibgrid; }
@container bibgrid (max-width: 718px) {
  .bib-tab:not(.bib-kat):not(.bib-best) { table-layout: auto; }
  .bib-tab:not(.bib-kat):not(.bib-best) .bib-titelsp { width: 100%; max-width: 0; overflow: hidden; }
  .bib-tab:not(.bib-kat):not(.bib-best) .bib-neben { white-space: nowrap; }
  .bib-tab:not(.bib-kat):not(.bib-best) .bib-weit,
  .bib-tab:not(.bib-kat):not(.bib-best) tr.bib-row > td.bib-weit { display: none; }
}
@container bibgrid (max-width: 582px) {
  .bib-tab:not(.bib-kat):not(.bib-best) .bib-neben,
  .bib-tab:not(.bib-kat):not(.bib-best) tr.bib-row > td.bib-neben { display: none; }
}
@media (max-width: 880px) {
  .bib-toolbar { flex-wrap: wrap; row-gap: 6px; }
  .bib-toolbar .bib-q { flex: 1 1 140px; min-width: 0; }
  #bib-seg { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
  #bib-seg::-webkit-scrollbar { display: none; }
  #bib-seg > * { flex: none; }
}
@container bibgrid (max-width: 922px) {
  .bib-kat { table-layout: auto; }
  .bib-kat .bib-titelsp { width: 100%; max-width: 0; overflow: hidden; }
  .bib-kat .bib-neben { white-space: nowrap; }
  .bib-kat .bib-weit,
  .bib-kat tr.bib-row > td.bib-weit { display: none; }
}
@container bibgrid (max-width: 700px) {
  .bib-kat .bib-neben,
  .bib-kat tr.bib-row > td.bib-neben { display: none; }
}
@container bibgrid (max-width: 906px) {
  .bib-best { table-layout: auto; }
  .bib-best .bib-titelsp { width: 100%; max-width: 0; overflow: hidden; }
  .bib-best .bib-neben { white-space: nowrap; }
  .bib-best .bib-weit,
  .bib-best tr.bib-row > td.bib-weit { display: none; }
  .bib-best tr.bib-row > td.tt { white-space: normal; overflow: visible; }
}
@container bibgrid (max-width: 716px) {
  .bib-best .bib-neben,
  .bib-best tr.bib-row > td.bib-neben { display: none; }
}
tr.bib-row .bib-pencil { margin-left: 6px; opacity: 0; min-height: 0; }   
tr.bib-row:hover .bib-pencil, tr.bib-row .bib-pencil:focus-visible { opacity: 1; }
.bib-pencil:focus-visible { outline-offset: -2px; }
.bib-rsub { color: var(--muted); font-size: 12.5px; }
.bib-rklasse { display: block; }   
.bib-nix { color: var(--muted); }
.bib-mk {
  display: inline-block; padding: 1px 8px; border-radius: var(--r);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.mk-eigen { background: var(--field); color: var(--muted); }
.mk-abgabe { background: color-mix(in srgb, var(--status-warnung) 15%, var(--panel)); color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); }
.mk-klasse { background: var(--status-ok-soft); color: var(--status-ok); }
.mk-mat { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--accent); }
.bib-tnote { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.bib-note {
  display: inline-block; min-width: 22px; text-align: center; padding: 1px 7px;
  border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px;
}
.bib-tafel {
  width: 264px; flex: none; border-left: 1px solid var(--line);
  overflow: auto; padding: 16px 18px; background: var(--panel);
}
.bib-tafel h3 { margin: 0 0 3px; font-size: 16px; }
.bib-tsub { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; }
.bib-tz { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; }
.bib-tz b { min-width: 92px; font-weight: 500; color: var(--muted); }
.bib-takt { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.bib-tb { display: inline-flex; align-items: center; gap: 6px; }
#bib-pop :is(.ks-secondary, button.primary) > svg { width: 18px; height: 18px; flex: none; }
#bib-pop .ks-secondary > svg { color: var(--accent); }
#bib-pop .ks-secondary:disabled > svg { color: inherit; }
.bib-tb.warn.armed { background: var(--status-fehler); color: var(--panel); }
.bib-tb.warn.armed > svg { color: inherit; }
.bib-takt { gap: 2px 4px; }
.bib-tzu { display: none; }
@media (max-width: 1100px) {
  .bib-body { position: relative; }
  .bib-tafel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 4; width: min(288px, 100%);
    border-left: 0; background: var(--raised); box-shadow: var(--shadow); }
  .bib-tzu { display: inline-flex; float: right; margin: -8px -10px 0 4px; }
}
@media (pointer: coarse) and (max-width: 760px), (pointer: coarse) and (max-height: 520px) { .bib-tzu { display: none; } }
.bib-teilen { display: flex; gap: 4px; margin-top: 6px; }
.bib-ort { width: 30px; height: 26px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--panel); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.bib-ort:hover { background: var(--field); color: var(--ink); }
.bib-ort.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bib-ort svg { width: 15px; height: 15px; }
.bib-check { position: absolute; top: 8px; left: 8px; z-index: 3; width: 26px; height: 26px; border-radius: var(--r); background: var(--panel); border: 2px solid var(--line); box-shadow: var(--shadow); display: none; align-items: center; justify-content: center; color: transparent; transition: background .12s, border-color .12s; }
.bib-card.picking .bib-check { display: flex; }
.bib-piece.sel .bib-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bib-check svg { width: 14px; height: 14px; }
.bib-rubber { position: fixed; z-index: 95; border: 1.5px solid var(--rc-noteneditor); background: color-mix(in srgb, var(--rc-noteneditor) 10%, transparent); border-radius: var(--r); pointer-events: none; }
.bib-ghost { position: fixed; z-index: 96; pointer-events: none; background: var(--ink); color: var(--panel); padding: 8px 14px; border-radius: var(--r); font-size: 13.5px; font-weight: 800; font-family: var(--font); box-shadow: var(--shadow); white-space: nowrap; }
body.bib-dragging, body.bib-dragging * { cursor: grabbing !important; }
.bib-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 54px 20px; text-align: center; color: var(--muted); }
.bib-empty svg { width: 52px; height: 52px; color: var(--muted); }
.bib-empty h4 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.bib-empty p { margin: 0; font-size: 13.5px; font-weight: 700; }
.bib-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); z-index: 97; background: var(--ink); color: var(--panel); padding: 11px 18px; border-radius: var(--r); font-size: 14px; font-weight: 800; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s ease; }
.bib-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 720px) {
  #bib-pop { padding: 0; }
  .bib-card { height: 100vh; width: 100%; border-radius: 0; }
  .bib-railbtn { display: inline-flex; }
  .bib-body { position: relative; }
  #bib-pop .bib-rail { position: absolute; left: 0; top: 0; bottom: 0; z-index: 6; width: min(240px, 85%);
    border-right: 0; background: var(--raised); box-shadow: var(--shadow); visibility: hidden; }
  body.bib-rail-on #bib-pop .bib-rail { visibility: visible; }
}
.ton-page { flex: 1; overflow-y: auto; }
.ton-seitefehler { margin: 32px auto; max-width: 520px; padding: 0 16px; color: var(--muted); }
.wtb { width: 100%; color: var(--ink); font-size: 15px; }
.wtb-article { max-width: 800px; margin-inline: auto; }
.wtb-article h1 { margin: 0 0 6px; font-size: 33px; font-weight: 900; letter-spacing: -.022em; line-height: 1.12; }
.wtb-lead { margin: 0 0 22px; font-size: 19.5px; font-weight: 600; line-height: 1.5; color: color-mix(in srgb, var(--ink) 62%, var(--panel)); }
.wtb-body { font-size: 17.5px; line-height: 1.85; color: var(--ink); }
.wtb-body p { margin: 0 0 1.15em; }
.wtb-body ul, .wtb-body ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.wtb-body li { margin-bottom: .5em; }
.wtb-body li::marker { color: color-mix(in srgb, var(--muted) 70%, var(--panel)); }
.wtb-body strong { font-weight: 800; }
.wtb-link { color: var(--ink); border-bottom: 2px dotted color-mix(in srgb, var(--ink) 42%, var(--panel)); font-weight: 700; padding-bottom: 1px; cursor: pointer; text-decoration: none; }
.wtb-link:hover { border-bottom-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, var(--panel)); }
.wtb-link.wtb-off { color: var(--muted); border-bottom-color: color-mix(in srgb, var(--muted) 35%, var(--panel)); cursor: default; }
.wtb-link.wtb-off:hover { background: none; }
@media (max-width: 940px) {
  .wtb-article h1 { font-size: 28px; }
}
.exploration-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 18px; }
.exploration-progress-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.exploration-boxes { gap: 0; }
.exploration-box { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; }
.exploration-box:hover:not(:disabled) i:not(.on, .half) { border-color: var(--ink); }
.wa-progress { margin-top: auto; padding-top: 18px; }
.wa-progress:empty { display: none; }
.wa-progress .exploration-progress { flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.wa-progress .exploration-boxes { margin-left: -4px; }
.exploration-card { margin: 0; }
.exploration-card[data-step] { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 34px 26px; margin-bottom: 18px; }
.exploration-card + .exploration-card:not([data-step]) { margin-top: 48px; }
.exploration-step-nr { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.exploration-columns { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 32px; align-items: start; }
.exploration-columns:is(.single, .wide) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.exploration-heading { margin: 4px 0 14px; font-size: 24px; font-weight: 600; line-height: 1.25; }
.exploration-text { font-size: 16px; line-height: 1.6; }
.exploration-text :is(p, li), .exploration-listen > [lang] { max-width: 66ch; }
.exploration-text, .exploration-keypoint [lang], .exploration-listen [lang] { -webkit-hyphens: auto; hyphens: auto; }
.exploration-text p { margin: 0 0 1em; }
.exploration-text p:last-child { margin-bottom: 0; }
.exploration-text ul { margin: .2em 0 0; padding-left: 1.3em; }
.exploration-text li { margin-bottom: .4em; }
.exploration-rubric { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.exploration-rubric .ic { width: 18px; height: 18px; flex: none; }
.exploration-listen { font-size: 16px; line-height: 1.6; }
.exploration-picture + .exploration-listen, .exploration-picture .exploration-listen { margin-top: 18px; }
.exploration-keypoint.ks-note-frame { margin-top: 8px; max-width: 66ch; font-size: 16px; line-height: 1.6; }
.exploration-keypoint.ks-note-frame:focus { outline-offset: 6px; }
.exploration-keypoint.ks-note-frame.closed { padding: 12px 16px; }
.exploration-covered { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; }
.exploration-covered > .ic { width: 18px; height: 18px; flex: none; color: var(--muted); }
.exploration-covered-text { flex: 1; font-weight: 600; }
.exploration-block { position: relative; border-radius: var(--r); outline: 2px solid transparent; outline-offset: 5px; transition: outline-color .12s; }
.exploration-block:hover { outline-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.exploration-block[aria-current="true"] { outline-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 10%, transparent); }
.exploration-block:focus-visible:not([aria-current="true"]) { outline: 2px dashed var(--accent); }
.exploration-edit-sign { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; line-height: 1.3; font-weight: 600;
  color: color-mix(in srgb, var(--ink) 70%, transparent); }
.exploration-ways { list-style: none; margin: 14px 0 0; padding: 10px 0 0; border-top: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.35; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.exploration-ways li { display: flex; align-items: flex-start; gap: 6px; }
.exploration-ways li > svg { flex: none; margin-top: 2px; }
.exploration-picture .wk-diag, .exploration-task-place .wk-diag { margin: 0; }
.exploration-card[data-step] :is(.exploration-picture, .exploration-task-place) .wk-diag { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px; }
.exploration-picture .wk-diag-bild svg, .exploration-task-place .wk-diag-bild svg { max-width: 100%; height: auto; }
.exploration-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; }
.exploration-nav > .ks-secondary:first-child, .exploration-nav > .ks-onward:first-child { margin-left: -10px; }
.exploration-button.primary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 14px; }
.exploration-button.primary .ic { width: 18px; height: 18px; flex: none; }
.exploration-more { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.exploration-more .ks-tool { font-size: 14px; }
.exploration-more.top { justify-content: flex-end; margin: 0 0 14px; }
.exploration-end + .exploration-nav { margin-top: 28px; }
.exploration-compact .exploration-columns { grid-template-columns: 1fr; gap: 18px; }
.exploration-compact .exploration-heading { font-size: 18px; }
.exploration-compact :is(.exploration-text, .exploration-listen, .exploration-keypoint) { font-size: 14.5px; line-height: 1.6; }
.exploration-compact .exploration-nav { margin-top: 24px; }
@media (max-width: 860px) {
  .exploration-columns { grid-template-columns: 1fr; gap: 22px; }
  .exploration-card[data-step] { padding: 22px 20px 20px; }
}
@media (max-width: 560px) {
  .exploration-more:not(.top) { flex-basis: 100%; margin-left: -10px; }
}
.klt, .pft { min-height: 100%; }
.klt-page, .pft-page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px 32px 56px; box-sizing: border-box; color: var(--ink); font-size: 16px; }
.ton-ahead.is-place { margin-bottom: 4px; }
.ton-ahead.is-place .ton-ahead-bild { color: var(--muted); }
.ton-ahead.is-place p b { color: var(--ink); font-weight: 600; }
.klt-code { margin-left: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ks-tool:is(.klt-why, .pft-infobtn) { height: 44px; margin: 0 -10px 2px auto; font-size: 14px; font-weight: 400; color: var(--ink); }
:is(.klt-why, .pft-infobtn) .ic { color: var(--accent); }
.ks-tool:is(.klt-why, .pft-infobtn)[aria-expanded="true"] { background-color: var(--accent-soft); color: var(--accent); font-weight: 600; }
:is(.klt-whytext, .pft-info) { max-width: 70ch; margin: 8px 0 4px; font-size: 14px; line-height: 1.5; }
:is(.klt-whytext, .pft-info) p { margin: 0; }
:is(.klt-whytext, .pft-info) p + p { margin-top: 6px; }
:is(.klt-whytext, .pft-info) b { font-weight: 600; }
.klt-sec { margin-top: 4px; padding: 12px 0 13px; border-top: 1px solid var(--line); }
.klt-sechead { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 44px; }
.klt-rubric { margin: 0; }
.klt-count { padding-top: 3px; font-size: 14px; }
.klt-seg { margin-left: auto; }
.klt .ks-segmented > button { height: 44px; padding: 0 16px; font-size: 14px; }
.klt-subrubric { margin: 18px 0 2px; font-size: 14px; font-weight: 400; color: var(--muted); }
:is(.klt-rows, .pft-rows) { margin: 0; padding: 0; list-style: none; }
:is(.klt-rows, .pft-rows) > li + li { border-top: 1px solid var(--line); }
:is(.klt-row, .pft-row) {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  width: calc(100% + 20px); min-height: 56px; margin: 0 -10px; padding: 7px 10px; box-sizing: border-box;
  border-radius: var(--r); color: var(--ink); text-align: left;
}
#ton-shell :is(.klt-row, .pft-row):hover { background: var(--field); }
#ton-shell :is(.klt-row, .pft-row):active { background: var(--field-pressed); }
:is(.klt-mark, .pft-mark) { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--muted); }
:is(.klt-mark, .pft-mark) .ic { width: 22px; height: 22px; overflow: visible; }
.klt-mark .ic[class] { flex: none; }
.ton-badge.klt-mark { width: 36px; height: 36px; color: var(--rc-noteneditor-accent); }
:is(.klt-rtext, .pft-rtext) { display: block; min-width: 0; }
:is(.klt-rtitle, .pft-rtitle) { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
:is(.klt-rsub, .pft-rsub) { display: block; margin-top: 1px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.klt-rgo { display: flex; color: var(--accent); }
.klt-rows.is-earlier .klt-rtitle { font-weight: 400; }
.klt-live { display: inline-flex; align-items: center; gap: 6px; color: var(--live-text); font-weight: 600; }
.klt-live::before { content: ""; width: 8px; height: 8px; border-radius: var(--round); background: currentColor; }
:is(.klt-state, .pft-state) {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 70ch; padding: 6px 0 2px;
  font-size: 16px; line-height: 1.45; color: var(--muted);
}
:is(.klt-state, .pft-state) p { margin: 0; }
:is(.klt-state, .pft-state) b { color: var(--ink); font-weight: 600; }
:is(.klt-state, .pft-state) .ks-secondary { margin-left: -10px; }
.klt-plh { display: block; width: 52%; height: 14px; border-radius: var(--r-small); background: var(--field); }
.klt-plh + .klt-plh { width: 70%; }
.klt-boards { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 10px 24px; align-items: center; }
.klt-boards-hint { margin: 0; max-width: 60ch; font-size: 14px; line-height: 1.45; color: var(--muted); }
.klt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 20px; margin: 6px 0 0; padding: 0; list-style: none; }
.klt-tiles[data-filter="mine"] > li:not(.is-mine) { display: none; }
.klt-tile { width: auto; }
.klt-tile .ton-topen { min-height: 44px; }
.ton-prev.has-bild { justify-content: flex-start; padding: 4px 0; box-sizing: border-box; }
.ton-prev.has-bild svg { display: block; width: auto; height: 100%; max-width: none; flex: none; }
.ton-prev.has-bild.is-hoch { align-items: flex-start; }
.ton-prev.has-bild.is-hoch svg { width: 100%; height: auto; }
.klt-tsub b { color: var(--ink); font-weight: 600; }
.pft-bilanz { margin: 2px 0 14px; font-size: 14px; color: var(--muted); }
.pft-bilanz b { color: var(--ink); font-weight: 600; }
.pft-ih { margin: 0; font: inherit; }
.pft-rside { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.pft-stand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.pft-stand .ic { flex: none; width: 22px; height: 22px; color: var(--accent); overflow: visible; }
.pft-stand.is-wait { color: var(--muted); font-weight: 400; }
.pft-stand.is-wait .ic { color: var(--edge); }
.pft-grade { min-width: 30px; padding: 2px 7px; border-radius: var(--r-small); background: var(--field); text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.pft-chev { display: flex; }
.pft-chev .ic { transform: rotate(90deg); transition: transform .15s; }
.pft-row[aria-expanded="true"] .pft-chev .ic { transform: rotate(-90deg); }
.pft-open { padding: 4px 0 18px 48px; }
.pft-frozen { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.pft-frozen .ic { flex: none; width: 16px; height: 16px; }
.pft-rueck { margin-top: 16px; }
.pft-rrubric { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.pft-rrow { display: flex; align-items: flex-start; gap: 20px; margin-top: 10px; }
.pft-gradebig { display: flex; flex-direction: column; align-items: center; flex: none; min-width: 64px; margin: 0; line-height: 1.1; }
.pft-gradebig b { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.pft-gradebig span { margin-top: 4px; font-size: 13px; color: var(--muted); }
.pft-rwords { min-width: 0; }
.pft-speech { display: inline-block; max-width: 46ch; margin: 0; padding: 10px 16px 11px; border-radius: var(--r-speech); background: var(--field); font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.pft-nocomment { margin: 0; padding-top: 10px; font-size: 16px; color: var(--muted); }
.pft-from { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.pft-rueck.is-wait { display: flex; align-items: flex-start; gap: 12px; max-width: 56ch; font-size: 16px; line-height: 1.45; color: var(--muted); }
.pft-rueck.is-wait .ic { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--edge); overflow: visible; }
.pft-rueck.is-wait p { margin: 0; }
.pft-rueck.is-wait b { color: var(--ink); font-weight: 600; }
.pft-rrow .pft-state { padding-top: 0; }
.pft-openact { margin-top: 18px; }
button.primary.pft-view { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; font-size: 16px; }
.pft-view .ic { width: 20px; height: 20px; }
@media (max-width: 1100px) {
  .klt-page, .pft-page { padding: 12px 24px 48px; }
}
@media (max-width: 700px) {
  .klt-page, .pft-page { padding: 10px 16px 40px; }
  .ks-tool:is(.klt-why, .pft-infobtn) { margin-left: -10px; }
  .klt-boards { grid-template-columns: minmax(0, 1fr); }
  :is(.klt-row, .pft-row) { grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 10px; }
  :is(.klt-mark, .pft-mark) { width: 32px; height: 32px; }
  .pft-row { row-gap: 4px; }
  .pft-rside { grid-column: 2 / -1; justify-content: space-between; }
  .pft-open { padding-left: 0; }
  .pft-rrow { gap: 14px; }
  .pft-gradebig { min-width: 52px; }
  .pft-gradebig b { font-size: 34px; }
  .klt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  button.primary.pft-view { width: 100%; }
}
.wkt { max-width: 1240px; width: 100%; margin: 0 auto; padding: 16px 32px 48px; color: var(--ink); font-size: 16px; }
.wkt-stairs {
  --tritt: 108px; --steig: 22px;
  display: grid; grid-template-columns: repeat(var(--stufen), minmax(0, 1fr)); align-items: stretch;
  border-bottom: 1px solid var(--edge);
}
.wkt-step {
  position: relative; min-height: calc(var(--tritt) + var(--n) * var(--steig)); margin-top: calc((var(--stufen) - 1 - var(--n)) * var(--steig));
  border-top: 1px solid var(--edge); container-type: inline-size;
}
.wkt-riser { position: absolute; left: 0; top: -1px; width: 1px; height: calc(var(--steig) + 1px); background: var(--edge); }
.wkt-step:first-child .wkt-riser { height: auto; bottom: 0; }
.wkt-edge { position: absolute; right: 0; top: -1px; bottom: 0; width: 1px; background: var(--edge); }
.wkt-tread {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%;
  padding: 10px 12px 10px 14px; border: 0; border-radius: 0; color: var(--ink); text-align: left;
}
#ton-shell .wkt-tread:hover { background: var(--field); }
#ton-shell .wkt-tread:active { background: var(--field-pressed); }
#ton-shell .wkt-tread.is-here { background: var(--area-hover); }
#ton-shell .wkt-tread.is-here:hover { background: color-mix(in srgb, var(--area-hover) 94%, var(--ink)); }
.wkt-tread:focus-visible { outline-offset: -4px; }
.wkt-ttop { display: flex; align-items: center; gap: 8px; }
.wkt-circle { display: flex; flex: none; color: var(--edge); }
.wkt-circle .ic { width: 20px; height: 20px; overflow: visible; }
.wkt-tread:is(.is-here, .is-done) .wkt-circle { color: var(--area-ink); }
.wkt-tword { position: relative; font-size: 14px; color: var(--muted); line-height: 1.3; }
.wkt-tnum { display: none; position: relative; font-size: 16px; line-height: 1.3; }
#ton-shell .wkt-tread:active .wkt-tword { color: var(--ink); }
.wkt-tname { position: relative; padding-bottom: 5px; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; hyphens: auto; }
.wkt-tname::after, .wkt-tnum::after {
  content: ""; position: absolute; left: -2px; right: -4px; bottom: 0; height: 5px; pointer-events: none; opacity: 0;
  background: var(--accent); -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
}
.wkt-tread[aria-selected="true"] .wkt-tname { font-weight: 600; }
.wkt-tread[aria-selected="true"] .wkt-tname::after { opacity: 1; }
.wkt-tread .ks-boxes { margin-top: auto; row-gap: 3px; }
@container (max-width: 103px) {
  .wkt-tread { padding: 8px 4px 6px 8px; }
  .wkt-tword, .wkt-tname { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wkt-tnum { display: block; }
  .wkt-tread[aria-selected="true"] .wkt-tnum { font-weight: 600; }
  .wkt-tread[aria-selected="true"] .wkt-tnum::after { opacity: 1; bottom: -6px; }
  .wkt-tread .ks-boxes { display: none; }
}
@media (forced-colors: active) {
  .wkt-riser, .wkt-edge { forced-color-adjust: none; background: CanvasText; }
  .wkt-tname::after, .wkt-tnum::after { forced-color-adjust: none; background: Highlight; }
}
.wkt-below { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 40px; align-items: start; margin-top: 24px; }
.wkt-side { display: flex; flex-direction: column; gap: 14px; }
.ks-start {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center; width: 100%;
  padding: 18px 24px 20px; border: 0; border-radius: var(--r); background: var(--area-soft); color: var(--ink); text-align: left;
}
#ton-shell .ks-start:hover { background: var(--area-hover); }
#ton-shell .ks-start:active { background: color-mix(in srgb, var(--area-hover) 92%, var(--ink)); }
#ton-shell .ks-start:active .ks-start-meta { color: var(--ink); }
.ks-start:focus-visible { outline-color: var(--area-ink); }
.ks-start-play { display: flex; color: var(--area-ink); }
.ks-start-play .ic { width: 56px; height: 56px; }
.ks-start-text { display: flex; flex-direction: column; min-width: 0; }
.ks-start-rubric, .uet-rubrik, .klt-rubric { font-family: var(--hand); font-weight: 400; font-size: 20px; line-height: 1.3; }
.ks-start-title { font-size: 26px; font-weight: 600; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.ks-start-task {
  margin-top: 4px; max-width: 64ch; font-size: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ks-start-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.wkt-alldone { display: flex; align-items: center; gap: 14px; min-height: 72px; margin: 0; font-size: 16px; line-height: 1.4; }
.wkt-alldone b { display: block; font-size: 20px; font-weight: 600; }
.wkt-wiz {
  display: flex; align-items: center; gap: 14px; align-self: flex-start; min-height: 60px; margin-left: -6px;
  padding: 6px 12px 6px 6px; border: 0; color: var(--ink); text-align: left;
}
.wkt-wiz .ton-badge { width: 44px; height: 44px; }
.wkt-wiztext { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wkt-wizh { font-size: 16px; font-weight: 600; }
.wkt-wizp { font-size: 14px; color: var(--muted); }
.wkt-shead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: end; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.wkt-sno { grid-column: 1; margin: 0; font-size: 14px; color: var(--muted); line-height: 1.3; }
.wkt-shead h2 { grid-column: 1; margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.wkt-sstand { display: none; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.wkt-lessons { list-style: none; margin: 0; padding: 0; }
.wkt-lessons li + li { border-top: 1px solid var(--line); }
.wkt-lesson {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; align-items: center; width: calc(100% + 20px);
  min-height: 48px; margin: 0 -10px; padding: 7px 10px; border: 0; color: var(--ink); text-align: left;
}
#ton-shell .wkt-lesson:hover { background: var(--field); }
#ton-shell .wkt-lesson:active { background: var(--field-pressed); }
.wkt-mark { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r); color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.wkt-lesson.is-next .wkt-mark { background: var(--area-hover); color: var(--area-ink); font-weight: 600; }
.wkt-mark .ic { width: 18px; height: 18px; }
.wkt-ltext { min-width: 0; }
.wkt-lt { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.wkt-task {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 1px; font-size: 14px; line-height: 1.4; color: var(--muted);
}
.wkt-werkrow { align-items: start; }
#ton-shell .wkt-lesson:not(.is-next):active .wkt-mark, #ton-shell .wkt-lesson:active .wkt-task { color: var(--ink); }
.ks-check-hand {
  display: inline-block; flex: none; width: 22px; height: 19px; background: var(--status-ok);
  -webkit-mask: var(--mask-check-hand) 0 0 / 100% 100% no-repeat; mask: var(--mask-check-hand) 0 0 / 100% 100% no-repeat;
}
.ks-check-hand.is-big { width: 52px; height: 44px; }
@media (forced-colors: active) { .ks-check-hand { forced-color-adjust: none; background: CanvasText; } }
.wkt-none { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 760px; }
.wkt-nsatz { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; font-size: 16px; color: var(--muted); }
.wkt-nsatz p { margin: 0; }
.wkt-nsatz .ks-secondary { margin-left: -10px; }
.wkt-ph { display: block; height: 14px; border-radius: var(--r-small); background: var(--field); }
@media (max-width: 899px) {
  .wkt { padding: 14px 24px 40px; }
  .wkt-stairs { --tritt: 100px; --steig: 18px; }
  .wkt-tread { padding: 8px 8px 8px 10px; }
  .wkt-tread .ks-boxes { display: none; }
  .wkt-tname { font-size: 14px; }
  .wkt-below { grid-template-columns: minmax(0, 1fr); }
  .wkt-sstand { display: inline-flex; grid-column: 2; grid-row: 1 / span 2; padding-bottom: 4px; }
}
@media (max-width: 767px) {
  .wkt { padding: 12px 16px 40px; }
  .wkt-stairs { --tritt: 56px; --steig: 12px; }
  .wkt-below { margin-top: 18px; }
  .ks-start { column-gap: 14px; padding: 14px 16px 16px; }
  .ks-start-play .ic { width: 44px; height: 44px; }
  .ks-start-rubric, .uet-rubrik, .klt-rubric { font-size: 18px; }
  .ks-start-title { font-size: 22px; }
  .wkt-shead { grid-template-columns: minmax(0, 1fr); }
  .wkt-shead h2 { font-size: 20px; }
  .wkt-sstand { grid-column: 1; grid-row: 3; margin-top: 4px; padding-bottom: 2px; }
}
.uet { max-width: 1240px; width: 100%; margin: 0 auto; padding: 16px 32px 48px; color: var(--ink); font-size: 16px; }
.uet.is-running > :not(.uet-host) { display: none; }
:is(.uet, .wkt, .klt, .pft, .asg-view) .ks-secondary { min-height: 48px; padding: 0 14px 0 10px; gap: 8px; font-size: 16px; }
:is(.uet, .wkt, .klt, .pft, .asg-view) .ks-secondary .ic { width: 22px; height: 22px; }
.uet-kreis { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line); }
.uet-mini { display: grid; grid-template-rows: repeat(var(--n), minmax(0, 1fr)); row-gap: calc(6px / (var(--n) - 1));
  flex: none; width: 84px; height: 45px; }
.uet-mini i { display: block; width: 44px; margin-left: calc(var(--x) * min(10px, 40px / (var(--n) - 1)));
  border-radius: var(--r-small); background: var(--stufe); }
.uet-mini i.is-open { background: none; border: 1px dashed var(--line); }
.uet-ktext { flex: 1 1 320px; min-width: 0; }
.uet-ktext p { margin: 0; }
.uet-ksatz { font-size: 14px; line-height: 1.35; color: var(--muted); }
.uet-kname { font-size: 18px; font-weight: 600; line-height: 1.25; }
.uet-kneu { font-size: 14px; line-height: 1.45; }
.uet-kacts { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.uet-kmeld { flex-basis: 100%; }
.uet-kmeld:empty { display: none; }
:is(.uet-kmeld, .ex-hostmsg) { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
:is(.uet-kmeld, .ex-hostmsg) .ks-ib { align-items: flex-start; gap: 8px; }
:is(.uet-kmeld, .ex-hostmsg) .ic { margin-top: 1px; color: var(--edge); }
.uet-weg { padding-bottom: 24px; }
.uet-weg .ks-start-text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 14px; align-items: baseline; }
.uet-weg .ks-start-meta { margin-top: 0; }
.uet-stationen { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.uet-station { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 12px;
  font-size: 18px; font-weight: 600; line-height: 1.25; }
.uet-skreis { display: flex; color: var(--edge); }
.uet-skreis .ic { width: 40px; height: 40px; }
.uet-linie { position: absolute; left: 48px; right: 8px; top: 20px; height: 1px; background: var(--edge); }
.uet-station:last-child .uet-linie { display: none; }
.uet-form { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.uet-form > span { min-width: 0; }
.uet-form .ic { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--area-ink); }
.uet-host:not([hidden]) { margin-top: 14px; }
.uet.is-running .uet-host { margin-top: 0; }
.uet-erst { margin: 14px 0 0; font-size: 14px; line-height: 1.45; }
.uet-mix { margin: 4px 0 8px -10px; }
.uet-formen { margin-top: 8px; }
.uet-rubrik { margin: 0; }
.uet-fsatz { margin: 0; font-size: 14px; color: var(--muted); }
.uet-formliste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.uet-fwahl { display: flex; align-items: center; gap: 12px; min-height: 46px; margin: 0 -8px; padding: 4px 10px 4px 8px;
  border-radius: var(--r); font-size: 16px; font-weight: 600; cursor: pointer; }
#ton-shell .uet-fwahl:hover { background: var(--field); }
.uet-fwahl > .ic { flex: none; width: 22px; height: 22px; color: var(--muted); }
@media (max-width: 899px) {
  .uet { padding: 14px 24px 40px; }
  .uet-formliste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .uet { padding: 12px 16px 40px; }
  .uet-ktext { flex-basis: 200px; }
  .uet-weg { align-items: start; padding-bottom: 18px; }
  .uet-weg .ks-start-text { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .uet-weg .uet-stationen { margin: 10px 0 0 -58px; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .uet-weg .uet-station { font-size: 16px; }
  .uet-weg .uet-station:nth-child(2) .uet-linie { display: none; }
  .uet-formliste { grid-template-columns: minmax(0, 1fr); }
}
.uet.is-running { max-width: none; height: 100%; padding: 0; }
.uet.is-running .uet-host { height: 100%; }
#ex-pop.ex-inline { position: static; inset: auto; z-index: auto; display: block; height: 100%; min-height: 480px; background: none; }
#ex-pop [hidden] { display: none !important; }   
#ex-pop .ex-box { container: ex-hull / inline-size; display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--ink); }
#ex-pop:not(.ex-inline) .ex-box { width: min(1040px, 94vw); height: min(720px, 92vh); max-width: none; max-height: none; }
#ex-pop.ex-inline .ex-box { width: auto; max-width: none; height: 100%; max-height: none; border: 0; border-radius: 0;
  background: none; box-shadow: none; animation: none; }
.ex-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "rail" "answer" "foot"; }
.ex-rail { grid-area: rail; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 4px 12px; padding: 6px 20px 14px 12px; border-bottom: 1px solid var(--line); }
.ex-rail > #ex-close { grid-row: 1; grid-column: 1; justify-self: start; }
.ex-rail > .ex-title { grid-row: 1; grid-column: 2; }
.ex-rail > .ex-stations { grid-row: 1; grid-column: 3; }
.ex-rail > .ex-say { grid-row: 2; grid-column: 1 / -1; margin-top: 6px; }
.ex-rail > .ex-stations.ex-check { grid-row: 2; grid-column: 1 / -1; }
.ex-rail > .ex-stations.ex-check ~ .ex-say { grid-row: 3; }
#ex-pop :is(.ex-rail, .ex-foot) .ks-secondary { min-height: 48px; padding: 0 14px 0 10px; gap: 8px; font-size: 16px; }
#ex-pop :is(.ex-rail, .ex-foot) .ks-secondary .ic { width: 22px; height: 22px; }
.ex-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-left: 8px; }
.ex-title :is(h1, h2) { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.ex-title :is(h1, h2) .ks-ib { gap: 8px; vertical-align: 0; }
.ex-title :is(h1, h2) .ic { width: 22px; height: 22px; color: var(--muted); }
#ex-pop .ex-piece { margin: 0; font-size: 14px; line-height: 1.35; color: var(--muted); }
.ex-stations { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding-left: 8px; font-size: 14px; }
.ex-circles { display: inline-flex; gap: 5px; }
.ex-circle { display: flex; width: 20px; height: 20px; color: var(--edge); }
.ex-circle .ic { width: 20px; height: 20px; }
.ex-circle:is([data-state="done"], [data-state="here"]) { color: var(--area-ink, var(--accent)); }
.ex-say { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding-left: 8px; }
.ex-prompt { margin: 0; min-height: 1.2em; font-size: 22px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.ex-prompt .ks-ib { align-items: flex-start; gap: 12px; vertical-align: 0; }
.ex-prompt .ic { width: 30px; height: 30px; margin-top: -2px; color: var(--muted); }
.ex-prompt.is-turn .ic { color: var(--area-ink, var(--accent)); }
.ex-prompt.is-right .ic { color: var(--status-ok); }
.ex-prompt.is-again .ic { color: var(--ink); }
.ex-prompt-note { margin: 0; min-height: 1.45em; font-size: 14px; line-height: 1.45; color: var(--muted); }
#ex-pop .ex-say .primary { min-height: 48px; padding: 0 18px; gap: 8px; font-size: 16px; }
#ex-pop .ex-foot { grid-area: foot; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  min-height: 68px; margin: 0; padding: 8px 16px 8px 12px; border-top: 1px solid var(--line); }
#ex-pop .ex-foot .ks-tool { min-height: 48px; height: auto; font-size: 16px; }
#ex-pop .ex-foot .ks-tool .ic { width: 22px; height: 22px; }
.ex-round { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 0 0; padding-left: 8px; font-size: 14px; white-space: nowrap; }
.ex-round:empty { display: none; }
.ex-round .ks-boxes i { width: 14px; height: 14px; }
#ex-pop .ex-foot #ex-next { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin: 0 0 0 10px;
  padding: 0 26px; font-size: 18px; }
#ex-pop .ex-foot #ex-next .ic { width: 22px; height: 22px; }
#ex-pop.is-end .ex-foot { gap: 6px 12px; }
#ex-pop.is-end .ex-foot #ex-next { margin: 0 0 0 8px; }
#ex-pop.is-end .ex-prompt.is-right { font-size: 30px; line-height: 1.15; }   
#ex-pop.is-end .ex-say, #ex-pop.is-end .ex-prompt.is-right { align-self: stretch; }
#ex-pop.is-end .ex-prompt.is-right .ks-ib { display: flex; align-items: center; gap: 14px; }
#ex-pop.is-end .ex-prompt.is-right .ks-ib-t { overflow-wrap: break-word; }
#ex-pop .ex-nobr { white-space: nowrap; }
#ex-pop.is-end .ex-prompt-note { font-size: 16px; color: var(--ink); }
#ex-pop .ex-prompt .ex-endzeile { display: block; margin: 8px 0 0 66px; font-size: 18px; font-weight: 400; line-height: 1.35;
  color: var(--ink); overflow-wrap: break-word; }
#ex-pop .ex-prompt .ex-saved { display: flex; margin-top: 10px; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--muted); }
#ex-pop .ex-prompt .ex-saved .ic { width: 18px; height: 18px; margin-top: 0; }
.ex-bilanz { align-self: center; width: 100%; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.ex-bilanz .uet-station[data-state="done"] .uet-skreis { color: var(--area-ink, var(--accent)); }
.ex-bilanz-erg { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 14px; font-weight: 400; line-height: 1.35; }
.ex-bilanz-erg .ic { flex: none; width: 20px; height: 20px; }
.ex-answer { grid-area: answer; min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column;
  justify-content: flex-start; justify-content: safe center; gap: 14px; padding: 24px 32px; }
.ex-answer:focus:not(:focus-visible) { outline: none; }
.ex-answer:focus-visible { outline-offset: -2px; }
#ex-pop .ex-tap { flex: 1 1 auto; align-self: center; display: flex; align-items: center; justify-content: center; gap: 14px;
  width: min(100%, 800px); min-height: 150px; max-height: 440px; padding: 16px; border: 0; border-radius: var(--r);
  background: var(--area-soft, var(--accent-soft)); color: var(--ink); font-size: 24px; font-weight: 700;
  cursor: pointer; touch-action: manipulation; user-select: none; }
#ex-pop .ex-tap .ic { flex: none; width: 36px; height: 36px; color: var(--area-ink, var(--accent)); }
#ex-pop .ex-tap small { font-size: 14px; font-weight: 400; color: var(--muted); }
#ex-pop .ex-tap:hover:not(.is-waiting, :disabled) { background: var(--area-hover, var(--field)); }
#ex-pop .ex-tap:active:not(.is-waiting, :disabled) { background: color-mix(in srgb, var(--area-hover, var(--field)) 88%, var(--ink)); }
#ex-pop .ex-tap:active:not(.is-waiting, :disabled) small { color: var(--ink); }
#ex-pop .ex-tap:is(.is-waiting, :disabled) { background: none; border: 1.5px dashed var(--edge); color: var(--muted); cursor: not-allowed; opacity: 1; }
#ex-pop .ex-tap:is(.is-waiting, :disabled) .ic { color: var(--muted); }
#ex-pop .ex-tap.ex-tap-neben { flex: none; min-height: 0; padding: 8px 12px; font-size: 14px; opacity: .6; }
@media (hover: none) and (pointer: coarse) { #ex-pop .ex-tap-key { display: none; } }
@media (max-width: 700px) {
  #ex-pop:not(.ex-inline) .ex-box { width: 100%; height: 92vh; }
}
@container ex-hull (max-width: 599px) {
  .ex-rail { grid-template-columns: minmax(0, 1fr) auto; padding: 4px 12px 12px 4px; }
  .ex-rail > .ex-title { grid-row: 2; grid-column: 1 / -1; }
  .ex-rail > .ex-stations { grid-row: 1; grid-column: 2; padding-right: 4px; }
  .ex-rail > .ex-say { grid-row: 3; }
  .ex-rail > .ex-stations.ex-check { grid-row: 3; }
  .ex-rail > .ex-stations.ex-check ~ .ex-say { grid-row: 4; }
  .ex-prompt { font-size: 20px; }
  .ex-answer { padding: 16px; }
  #ex-pop .ex-tap { font-size: 20px; }
  #ex-pop.is-end .ex-prompt.is-right { font-size: 26px; }
}
@container ex-hull (min-width: 900px) {
  .ex-grid { grid-template-columns: 296px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "rail answer" "foot answer"; }
  .ex-rail { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; overflow-y: auto;
    padding: 6px 20px 8px 12px; border-bottom: 0; border-right: 1px solid var(--line); }
  .ex-rail > .ex-title { margin-top: 2px; }
  .ex-check-name { flex-basis: 100%; }   
  .ex-rail > .ex-say { margin-top: 14px; }
  #ex-pop .ex-foot { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 2px; min-height: 0;
    padding: 4px 20px 16px 12px; border-top: 0; border-right: 1px solid var(--line); }
  .ex-round { margin: 0; padding: 0 0 8px 8px; }
  #ex-pop .ex-foot #ex-next { margin: 10px 0 0 8px; }
  #ex-pop.is-end .ex-foot { gap: 6px; }
  #ex-pop.is-end .ex-foot #ex-next { margin: 0 0 0 8px; }
  #ex-pop.is-end .ex-prompt.is-right .ks-ib-t { hyphens: auto; }
}
@container ex-hull (max-width: 899px) {
  .ex-bilanz { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .ex-bilanz .uet-station:nth-child(2) .uet-linie { display: none; }
}
@media (max-height: 500px) {
  #ex-pop.ex-inline { min-height: 0; }
  @container ex-hull (min-width: 600px) {
    .ex-grid { grid-template-columns: min(296px, 40%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
      grid-template-areas: "rail answer" "foot foot"; }
    .ex-rail { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; overflow-y: auto;
      padding: 4px 16px 8px 8px; border-bottom: 0; border-right: 1px solid var(--line); }
    .ex-check-name { flex-basis: 100%; }
    .ex-rail > .ex-say { margin-top: 4px; }
    .ex-prompt { font-size: 20px; }
    #ex-pop .ex-foot { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-height: 0;
      padding: 4px 16px 4px 12px; border-top: 1px solid var(--line); border-right: 0; }
    .ex-round { margin: 0 auto 0 0; padding: 0 0 0 8px; }
    .ex-answer { padding: 12px 20px; }
    #ex-pop .ex-tap { min-height: 96px; }
    #ex-pop .ex-foot #ex-next { min-height: 48px; margin: 0 0 0 10px; }
    #ex-pop.is-end .ex-foot { gap: 4px 12px; }
    #ex-pop.is-end .ex-foot #ex-next { margin: 0 0 0 8px; }
    #ex-pop.is-end .ex-prompt.is-right { font-size: 24px; }
    #ex-pop.is-end .ex-prompt.is-right .ks-ib-t { hyphens: auto; }
  }
}
body.se-on {
  --rosa: #c65089;
  --blau: #1668b3;
  --blau-ink: #fff;
  --live: #1668b3;
  --bounce: cubic-bezier(.34, 1.4, .5, 1);
  --se-col: 280px;
}
body.se-on { background: var(--panel); }
body.persona-teacher.se-on { --blau: var(--accent); --blau-ink: var(--accent-ink); }
body.lz-on:not(.se-on) footer.statusbar { display: none; }
body.ton-has:not(.se-on) footer.statusbar { display: none; }
body.ton-bar.se-on { padding-top: calc(var(--se-kopfh) + 4px + var(--se-barh, 48px)); }
body.se-on .main-col { margin-left: var(--se-col); }
body.se-on.se-resizing { cursor: col-resize; user-select: none; }
:where(.se-bar, .se-col, .se-modal, .se-toast) button {
  border: none; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: inherit; border-radius: 0; cursor: pointer;
}
.se-bar [hidden], .se-col [hidden], .se-modal [hidden] { display: none !important; }
.se-bar {
  position: fixed; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 46px; padding: 4px 16px;
  background: var(--panel);
  font-family: var(--font); color: var(--ink);
  transition: box-shadow .2s ease, background .2s ease;
}
.se-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 12px; background: var(--panel);
  border: 1.5px solid var(--line); border-radius: var(--r); color: var(--ink);
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease, color .14s ease;
}
:where(.se-tool):where(:not(.on, .is-live, .se-commit, [aria-pressed="true"])):enabled:hover { background-color: var(--field); }
:where(.se-tool):where(:not(.on, .is-live, .se-commit, [aria-pressed="true"])):enabled:active { background-color: var(--field-pressed); }
.se-tool:disabled { opacity: .35; cursor: default; box-shadow: none; }
.se-tool.se-icon { padding: 0; width: 36px; }
.se-tool.se-icon svg { width: 18px; height: 18px; }
.se-tool.se-icon:is(.nt-undo, .nt-redo, .nt-entry) svg { width: 20px; height: 20px; }
.note-toolbar [hidden] { display: none !important; }
.se-play { width: 36px; height: 36px; padding: 0; color: var(--ink); }
.se-play svg { width: 20px; height: 20px; flex: none; }
.se-play.on { background: var(--blau); border-color: var(--blau); color: var(--blau-ink); }
.se-stop { width: 36px; padding: 0; }
.se-stop .sq { width: 15px; height: 15px; border-radius: var(--r); background: currentColor; display: block; flex: none; }
.se-num { display: inline-flex; align-items: center; gap: 3px; height: 36px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: var(--r); font-weight: 700; font-size: 14px; color: var(--muted); background: var(--panel); }
.se-num .se-note { font-size: 19px; line-height: 1; color: var(--ink); }
.se-num input { width: 40px; border: none; background: none; font: inherit; font-weight: 800; font-size: 14px; color: var(--ink); text-align: center; -moz-appearance: textfield; }
.se-num input::-webkit-inner-spin-button { opacity: .35; }
.se-metro { width: 30px; height: 30px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: background .14s ease, color .14s ease; }
.se-metro:hover { background: color-mix(in srgb, var(--ink) 6%, var(--panel)); color: var(--ink); }
.se-metro.on { background: color-mix(in srgb, var(--blau) 14%, var(--panel)); color: var(--blau); }
.se-metro svg { width: 15px; height: 17px; }
.se-onlyedit { display: none; }
body.se-edit .se-onlyedit { display: flex; }
.nt-grid:not(.se-kfeld) { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); font-size: 13.5px; font-weight: 700; color: var(--muted); user-select: none; }
.nt-grid .nt-gridval { min-width: 30px; text-align: center; font-weight: 900; color: var(--blau); font-variant-numeric: tabular-nums; }
.nt-grid input[type=range] { width: 88px; accent-color: var(--blau); }
@media (max-width: 1100px) {
  .se-bar { gap: 4px; padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 1100px) and (pointer: fine) {
  .nt-grid:not(.se-kfeld) { padding: 0 8px; }
  .nt-grid input[type=range] { width: 56px; }
}
.nt-chips { display: inline-flex; gap: 3px; align-items: center; }
.nt-chips:not(.se-kfeld) button { height: 36px; min-width: 32px; padding: 0 9px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 13.5px; font-weight: 800; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; }
.nt-chips:not(.se-kfeld) button:hover { border-color: var(--blau); color: var(--blau); }
.nt-chips:not(.se-kfeld) button.on { background: var(--blau); border-color: var(--blau); color: var(--blau-ink); }
.se-save { border-color: var(--blau); color: var(--blau); }
.se-save:hover { background: var(--blau); color: var(--blau-ink); }
.se-commit { gap: 6px; background: var(--blau); border-color: var(--blau); color: var(--blau-ink); }
.se-commit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.se-commit[hidden] { display: none; }
.se-live { gap: 8px; }
#lz-rail, #lz-page { font-family: var(--font); }
:root { --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
        --sab: env(safe-area-inset-bottom, 0px); --sat: env(safe-area-inset-top, 0px);
        --lzr-w: 96px; --lzr: calc(var(--lzr-w) + var(--sal)); }
:root[data-rail="icons"] { --lzr-w: 60px; }
@media (width < 1180px) { :root:not([data-rail="words"]) { --lzr-w: 60px; } }
:root { --lzs-b: 360px; --lzs-w: 0px; --lzs: calc(var(--lzs-w) + var(--sar)); }
@media (width >= 1180px) and (not ((pointer: coarse) and (height <= 520px))) { :root[data-sheet] { --lzs-w: var(--lzs-b); } }
body.kp-present { --lzs: var(--sar); }
body.lz-on { padding-left: var(--lzr); padding-right: var(--lzs); }
body.lz-on .se-bar { left: var(--lzr); right: var(--lzs); font-family: var(--font); }
body.lz-on .se-col { left: var(--lzr); font-family: var(--font); }
#tab-bar .tab-name { padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: nowrap; min-width: 0; }
.se-bib svg { width: 19px; height: 19px; }
.se-present { font-size: 17px; }
body.lz-on footer.statusbar .view-switch > label.inline { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: inherit; }
body.lz-on .se-col #track-list .trk { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
body.lz-on .se-col #track-list .trk:last-of-type { border-bottom: 0; }
body.lz-on .se-col #track-list .trk .grip { color: var(--muted); }
body.lz-on .se-col #track-list .trk input[type=checkbox] { margin: 0; }
body.lz-on .se-col #track-list .trk input[type=color] { width: 20px; height: 20px; border: 0; background: none; padding: 0; }
body.lz-on .se-col #track-list .trk input.trk-name { flex: 1 1 90px; min-width: 80px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); padding: 2px 3px; }
body.lz-on .se-col #track-list .trk input.trk-name:focus { outline: none; background: var(--panel); border-radius: var(--r); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blau) 40%, var(--line)); }
body.lz-on .se-col #track-list .trk select.instr { flex: 1 1 96px; min-width: 96px; max-width: 150px; font-size: 12px; padding: 3px 5px; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); background: var(--panel); }
body.lz-on .se-col #track-list .trk input.mix { width: 62px; accent-color: var(--blau); }
body.lz-on .se-col #track-list .trk button.mini { border: 0; background: none; border-radius: var(--r); width: 22px; height: 22px; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
body.lz-on .se-col #track-list .trk button.mini:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
body.lz-on .se-col #track-list .trk button.mini.on { color: var(--blau); }
body.lz-on .se-col #track-list .trk button.mute.muted { color: color-mix(in srgb, var(--muted) 45%, transparent); opacity: 1; }
body.lz-on .se-col #track-list .trk button.mini svg { width: 15px; height: 15px; display: block; }
body.lz-on .se-col #track-list .trk-plus { display: flex !important; border: 0 !important; background: none !important; width: 100%; justify-content: center; align-items: center; color: var(--muted); font-size: 18px; font-weight: 600; padding: 6px 0; margin: 2px 0 0; cursor: pointer; }
body.lz-on .se-col #track-list .trk-plus:hover { color: var(--blau); }
.se-oswrap { display: flex; align-items: center; gap: 6px; }
.se-col { scrollbar-width: none; -ms-overflow-style: none; }
.se-col::-webkit-scrollbar { width: 0; height: 0; }
#score-scroll { touch-action: pan-x pan-y; }
body.se-pinching #score-area .page, body.se-pinching #score-area svg { box-shadow: none !important; }
body.se-on { --se-kopfh: 48px; }
#se-kopf {
  position: fixed; top: var(--sat); left: var(--lzr); right: var(--lzs, var(--sar)); height: var(--se-kopfh); z-index: 59;
  display: flex; align-items: center; gap: 12px; padding: 4px 12px 0; box-sizing: border-box;
  background: var(--panel); font-family: var(--font); color: var(--ink);
}
#se-kopf #tab-bar {
  position: static; flex: 1 1 auto; min-width: 0; height: 100%; display: flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: none; overflow-x: auto; scrollbar-width: none;
}
#se-kopf #tab-bar::-webkit-scrollbar { display: none; }
#se-kopf #tab-bar .tab {
  display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 260px; height: 36px; padding: 0 2px 0 4px;
  border: 0; border-radius: var(--r); background: none; box-shadow: none; transform: none;
  color: var(--muted); font-size: 14px; font-weight: 400; cursor: pointer; white-space: nowrap;
}
#se-kopf #tab-bar .tab:hover { background: none; transform: none; color: var(--ink); }
#se-kopf #tab-bar .tab.active { background: none; box-shadow: none; color: var(--ink); font-weight: 600; }
#se-kopf #tab-bar .tab-name { position: relative; height: 32px; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; border-radius: var(--r-small); }
#se-kopf #tab-bar .tab-name::after {
  content: ""; position: absolute; left: 0; right: -2px; bottom: 2px; height: 5px; pointer-events: none; opacity: 0;
  background: var(--accent); -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
}
#se-kopf #tab-bar .tab-name[aria-current="true"]::after { opacity: 1; }
#se-kopf #tab-bar .lvl-badge {
  height: 22px; padding: 0 8px; border: 0; border-radius: var(--r-small); background: var(--field); color: var(--ink);
  font-size: 12px; font-weight: 600; box-shadow: none;
}
#se-kopf #tab-bar .lvl-badge:hover { background: var(--field-hover); }
#se-kopf #tab-bar .tab-x {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; flex: none;
  border: 0; border-radius: var(--r); background-color: transparent; color: var(--muted); font-size: 16px; line-height: 1;
}
#se-kopf #tab-bar .tab-x:hover { background-color: var(--field); color: var(--ink); }
#se-kopf #tab-bar .tab-add { height: 36px; flex: none; border: 0; background-color: transparent; box-shadow: none; font-size: 13px; }
#se-kopf #tab-bar .tab-add:hover { background-color: var(--field); color: var(--ink); }
#se-kopf #tab-bar .tab-add .ic { width: 18px; height: 18px; }
@media (forced-colors: active) { #se-kopf #tab-bar .tab-name::after { forced-color-adjust: none; background: CanvasText; } }
.se-kopfakt { display: flex; align-items: center; gap: 2px; flex: none; margin-left: auto; }
.se-kopfakt button.primary, .se-kopfakt .ks-secondary {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 12px; white-space: nowrap;
}
.se-kopfakt button.primary { margin-left: 8px; }
.se-kopfakt button.primary .ic { width: 18px; height: 18px; flex: none; }
.se-kopfakt .se-ai:empty { display: none; }
.se-kopfakt [hidden] { display: none !important; }
.se-kopfakt .se-live .lp { width: 8px; height: 8px; }
body.se-on #se-bar {
  top: calc(var(--se-kopfh) + var(--sat)); min-height: 48px; gap: 4px; padding: 0 12px 2px 10px; box-sizing: border-box;
  row-gap: 0; padding-bottom: 6px;
  background: var(--panel); box-shadow: none; border-bottom: 1px solid var(--line);
}
body.se-on .se-col { top: calc(var(--se-kopfh) + var(--se-barh, 48px) + var(--sat)); }
body.se-on { padding-top: calc(var(--se-kopfh) + 4px + var(--se-barh, 48px) + var(--sat)); }
body.kp-present #se-kopf { display: none !important; }
#se-bar .se-colbtn { color: var(--muted); }
#se-bar .se-colbtn:hover:not(:disabled) { color: var(--ink); }
.se-modus { display: inline-flex; gap: 2px; margin-left: 4px; }
.se-modus .ks-tool:not([aria-pressed="true"]) { color: var(--muted); font-weight: 400; }
.se-trenner { width: 1px; height: 20px; margin: 0 10px; flex: none; background: var(--line); }
#se-bar .se-werk { display: flex; align-items: center; gap: 2px; flex: none; }
#se-bar .se-werk.se-onlyedit { display: none; }
body.se-edit #se-bar .se-werk.se-onlyedit { display: flex; }
#se-bar .se-werk.se-onlyview { gap: 10px; }
body.se-edit #se-bar .se-werk.se-onlyview { display: none; }
@media (max-width: 760px) and (pointer: fine) {
  #se-bar .se-werk { flex: 0 1 auto; flex-wrap: wrap; min-width: 0; row-gap: 4px; }
}
:is(#score-scroll, select.instr):focus-visible { outline-offset: -2px; }
.se-kfeld { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 0 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.se-onlyview .se-kfeld { margin-left: 0; }
.se-kfeld select { height: 30px; }
#se-bar .nt-grid select { white-space: nowrap; }
.se-kfeld .nt-chiplist { display: inline-flex; gap: 2px; }
.se-kfeld .nt-chiplist .ks-tool { min-width: 30px; height: 30px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.se-kdepot label.inline { gap: 0; font-size: 0; }
.se-kdepot label.inline input { font-size: 13px; width: 52px; }
.se-onlyview .ks-switch { white-space: nowrap; }
.se-onlyview .opt-irrelevant { display: none !important; }
@media (max-width: 1179px) {
  .se-kopfakt .ks-tool > span:not(.lp), #se-bar .se-onlyedit .ks-tool > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  #se-kopf { gap: 8px; }
  body.se-on #se-bar { padding-left: 8px; padding-right: 8px; }
  .se-trenner { margin: 0 4px; }
  #se-bar .se-werk.se-onlyview { gap: 4px; }
  .se-onlyview .se-kfeld { margin-right: 2px; gap: 4px; }
  .se-kdepot label.inline input { width: 44px; }
  .se-onlyview .se-kfeld select { max-width: 128px; }
  .se-kdepot > span:first-child {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .se-kdepot label.inline { font-size: 13px; gap: 2px; }
}
@media (pointer: coarse) and (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  body.se-on { --se-kopfh: 0px; }
  #se-kopf { left: auto; height: var(--se-barh, 46px); padding: 0 8px 0 4px; gap: 0; z-index: 61; }
  .se-kopfakt .ks-tool > span:not(.lp), .se-kopfakt button.primary > span, .se-kopfakt .ks-secondary > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .se-kopfakt button.primary, .se-kopfakt .ks-secondary { padding: 0 9px; margin-left: 4px; }
  body:is(.lz-on, .persona-free).se-on #se-bar { top: var(--sat) !important; right: calc(var(--sar) + var(--se-kopfw, 0px)) !important; border-bottom: 0; }
  body.se-on { padding-top: calc(var(--se-barh, 46px) + var(--sat)); }
  #se-bar .se-colbtn, #se-bar .se-trenner { display: none; }
}
body.se-lcol.se-colzu { --se-col: 0px; }
body.se-lcol.se-colzu .se-col { display: none; }
body.se-on:not(.se-edit) #score-area svg [data-addvoice] { display: none; }
body.lz-on .statusbar :is(#feedback-link, #about-link, #app-version) { display: none; }
body.se-on .statusbar {
  min-height: 52px; gap: 8px; padding: 4px 12px calc(4px + var(--sab, 0px)) 10px; box-sizing: border-box;
  border-top: 1px solid var(--line); background: var(--panel); font-size: 13px;
}
body.se-on .se-col { bottom: var(--se-fussh, 52px); }
body.ton-bar.se-on .se-col, body.ton-bar.se-on .se-resizer { bottom: 0; }
body.ton-bar.se-on .statusbar { margin-left: var(--se-col, 280px); padding-left: 16px; }
body.se-on .statusbar #status { text-align: center; font-size: 13px; }
body.se-on .statusbar :is(#feedback-link, #about-link, #app-version) { font-size: 12px; margin: 0; }
.se-wg { display: flex; align-items: center; gap: 2px; flex: none; }
.se-wg .se-num { height: 32px; margin: 0 10px; font-weight: 600; }
.se-wg .se-tempo-schieber { display: inline-flex; align-items: center; gap: 6px; margin: 0 10px; color: var(--muted); font-size: 12px; }
.se-tempo-schieber .se-spd { display: inline-flex; align-items: center; opacity: .72; }
.se-tempo-schieber .se-spd svg { display: block; height: 21px; width: auto; }
.se-tempo-schieber input { width: 96px; height: 32px; margin: 0; accent-color: var(--accent); }
.se-tempo-schieber-wert { min-width: 6.5em; }
@media (pointer: coarse) { .se-tempo-schieber input { height: 44px; } }
.se-wg .ks-tool.se-play, .se-wg .ks-tool.se-stop, .se-wg .ks-tool.se-metro { width: auto; height: 36px; min-width: 36px; padding: 0; border: 0; }
.se-wg .ks-tool .ic, .se-wgk .ks-tool .ic { width: 20px; height: 20px; }
.se-wg .se-play.on, .se-wgk .se-warte.on { background-color: var(--accent-soft); color: var(--accent); }
.se-wg .se-metro:not([aria-pressed="true"]) { background-color: transparent; color: var(--ink); }
.se-wgk { display: inline-flex; align-items: center; flex: none; }
.se-wgk .se-warte { font-weight: 400; }
body.se-on .statusbar .view-switch { margin-left: 0; gap: 8px; }
body.se-on .statusbar .view-switch select { height: 30px; font-size: 13px; }
body.se-on .statusbar .view-switch > label.inline > span[data-i18n="view"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body.se-on .statusbar #vs-page { height: 30px; font-size: 13px; padding: 0 8px; gap: 6px; border: 0; border-radius: var(--r); background: var(--field); color: var(--ink); font-weight: 600; }
body.se-on .statusbar #vs-page:hover { background: var(--field-hover); }
.se-metrovolrow .se-metrovol { display: inline-block; width: auto; flex: 1; min-width: 100px; }
@media (max-width: 1179px) {
  .se-wgk .ks-tool > span {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .se-wgk .ks-tool { padding: 0 8px; }
}
@media (pointer: coarse) and (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  body.se-on .statusbar { min-height: 0; padding-left: 8px; padding-right: 8px; gap: 4px 6px; }
  body.se-on #score-scroll { padding-bottom: calc(var(--se-fussh, 52px) + 8px); }
  .se-wg .se-num { margin: 0 4px; }
}
body.se-lcol .se-col { box-sizing: border-box; padding: 0 0 40px; border-right: 1px solid var(--line); font-size: 14px; }
body.se-lcol .se-tabs { gap: 4px; margin: 0; padding: 6px 8px 0; border-bottom: 0; }
body.se-lcol .se-tabs > .se-tab {
  flex: 1 1 0; justify-content: center; margin: 0; padding: 0 8px; height: 38px;
  font-size: 14px; font-weight: 400; color: var(--muted); overflow: visible;
}
body.se-lcol .se-tabs > .se-tab[aria-selected="true"] { font-weight: 600; color: var(--ink); }
body.se-lcol .se-tabs > .se-tab[hidden] { display: none; }
body.se-lcol .se-oswrap { margin: 10px 12px 2px; }
body.se-lcol .se-pane > .side-panel-box:first-child > .side-panel { margin-top: 8px; }
body.se-lcol .se-adopt > .se-secbody { padding: 2px 12px 14px 16px; gap: 4px; }
body.se-lcol .se-adopt .se-grplbl { margin: 10px 0 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
body.se-lcol .se-adopt .hint, body.se-lcol .se-adopt .se-palhint { margin: 2px 0; font-size: 12px; color: var(--muted); }
body.se-lcol .se-adopt .se-secbody .se-kfeld {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px;
  min-height: 34px; margin: 0; font-size: 13px; color: var(--ink); white-space: normal;
}
body.se-lcol .se-adopt .se-secbody .se-kfeld > :is(span, label):first-child { flex: 1 1 72px; min-width: 0; font-size: 13px; font-weight: 400; color: var(--ink); }
body.se-lcol .se-adopt .se-secbody :is(.se-kfeld, .se-fld, .eo-hladd, .grp-presets) select {
  flex: 0 1 auto; max-width: 100%; height: auto; min-height: 32px; padding: 4px 6px; border: 0; background: transparent; color: var(--ink); font-weight: 600;
  align-items: center;
}
body.se-lcol .se-adopt .se-secbody :is(.se-kfeld, .se-fld) > select { margin-right: -6px; }
body.se-lcol .se-adopt .se-secbody :is(.se-kfeld, .se-fld, .eo-hladd, .grp-presets) select:hover { background-color: var(--field); }
body.se-lcol .se-adopt .se-secbody .ks-segmented { flex: none; margin-left: auto; }
body.se-lcol .se-adopt .se-secbody .ks-segmented > button { height: 28px; padding: 0 9px; font-size: 12.5px; }
.se-zahl { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
body.se-lcol .se-adopt .se-secbody .se-zahl input {
  width: 64px; height: 30px; box-sizing: border-box; padding: 0 4px; text-align: center;
  border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 13px; color: var(--ink);
}
body.se-lcol .se-adopt .se-secbody .se-zahl input::placeholder { color: var(--muted); font-size: 12px; }
body.se-lcol .se-adopt .se-secbody .se-zschritt { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
body.se-lcol .se-adopt .se-secbody .ks-switch { align-self: stretch; justify-content: flex-start; min-height: 34px; margin-left: -4px; font-weight: 400; color: var(--ink); text-align: left; }
body.se-lcol .se-adopt .se-secbody :is(.se-optbtn, .se-checkbtn) {
  align-self: flex-start; width: auto; min-height: 32px; margin: 2px 0 0 -8px; padding: 0 8px; border: 0; background: none;
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); transform: none;
}
body.se-lcol .se-adopt .se-secbody :is(.se-optbtn, .se-checkbtn) .ic { color: var(--accent); }
body.se-lcol .se-adopt .se-secbody :is(.se-optbtn, .se-checkbtn).on { background-color: var(--accent-soft); color: var(--accent); }
body.se-lcol .se-adopt .se-secbody .ks-secondary + .ks-secondary { margin-left: 0; }
body.se-lcol .se-adopt .se-secbody .grp-presets { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
body.se-lcol .se-adopt .se-secbody .grp-presets select { flex: 1 1 120px; min-width: 0; height: 32px; margin-left: -6px; }
body.se-lcol .se-adopt .se-secbody .grp-presets button { min-height: 32px; height: 32px; padding: 0 8px; border: 0; background: none; margin: 0; }
body.se-lcol .se-adopt .se-secbody .se-fld { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; font-size: 13px; color: var(--ink); }
body.se-lcol .se-adopt .se-secbody .se-fld > span { flex: 1 1 auto; font-size: 13px; font-weight: 400; color: var(--ink); }
body.se-lcol .se-adopt .se-secbody .se-fld > input[type=number] { width: 64px; flex: none; height: 30px; box-sizing: border-box; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 13px; text-align: center; }
body.se-lcol .se-adopt .se-secbody .se-metrovolrow > input[type=range] { flex: 0 1 120px; accent-color: var(--accent); }
body.se-lcol:not(.se-edit) .side-panel-box:has(> .se-nurbearb) { display: none; }
body.se-lcol:not(.se-edit) :is(.se-col, .side-panel-in-window) .eo-verwalten,
body.se-lcol:not(.se-edit) :is(.se-col, .side-panel-in-window) #track-list .eo-verwalten { display: none !important; }
.eo-hoeren { display: none; }
body.se-lcol:not(.se-edit) .eo-hoeren { display: inline-block; }
body.se-lcol #track-list { gap: 0; }
body.se-lcol #track-list .trk { gap: 2px 6px; min-height: 40px; padding: 4px 0; border-bottom: 0; font-size: 14px; }
body.se-lcol #track-list .trk button.mini { width: 28px; height: 28px; }
body.se-lcol #track-list .trk input[type=checkbox] { width: 18px; height: 18px; }
body.se-lcol #track-list .trk .trk-farbe { width: 12px; height: 12px; flex: none; border-radius: var(--r-small); }
body.se-lcol #track-list .trk .trk-label { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 40px); overflow-wrap: anywhere; }
body.se-lcol:not(.se-edit) #track-list .trk input.mix { flex: 1 1 56px; min-width: 56px; }
body.se-lcol #track-list .trk select.instr { border: 0; background: transparent; color: var(--ink); font-weight: 600; }
body.se-lcol #track-list .trk select.instr:hover { background-color: var(--field); }
body.se-lcol .se-secbody.pal-feld { padding: 0 12px 12px; gap: 2px; }
body.se-lcol .se-secbody.pal-feld button[data-pal] { min-width: 36px; height: 36px; background: none; color: var(--ink); }
body.se-lcol .se-secbody.pal-feld button[data-pal]:hover { background: var(--field); color: var(--ink); }
body.se-lcol .se-secbody.pal-feld button[data-pal].on { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
body.se-lcol #se-hotkeys { width: auto; margin: 10px 0 0 8px; padding: 0 8px; min-height: 36px; border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
body.se-lcol #se-hotkeys .ic { color: var(--accent); }
@media (min-width: 761px) and (max-width: 1179px) {
  body.se-lcol .main-col { margin-left: 0; }
  body.se-lcol .se-col { border-right: 0; background: var(--raised); box-shadow: var(--shadow); width: 288px; transition: transform .15s ease, visibility .15s; }
  body.se-lcol.se-colzu .se-col { display: block; visibility: hidden; transform: translateX(-100%); }
}
@media (max-width: 1179px) and (prefers-reduced-motion: reduce) { body.se-lcol .se-col { transition: none; } }
body.ton-bar.se-on { --se-kopfh: var(--ton-tabsh); }
body.ton-bar.se-on #se-bar { top: var(--ton-tabsh); }
body.ton-bar.se-on .se-col, body.ton-bar.se-on .se-resizer { top: calc(var(--ton-tabsh) + var(--se-barh, 48px)); }
body.persona-free #se-kopf { left: var(--sal); }
body.persona-free.se-on .se-resizer { top: calc(var(--se-kopfh) + var(--se-barh, 48px) + var(--sat)); }
body.se-on .se-resizer { bottom: var(--se-fussh, 52px); }
body.se-on:not(.se-edit) .se-zeichen { display: none; }
@media (pointer: coarse) {
  body.ton-bar.se-on :is(#se-bar, .statusbar) :is(.ks-tool, button.primary, .ks-secondary, #vs-page) { min-width: 44px; min-height: 44px; }
  body.ton-bar.se-on :is(#se-bar, .statusbar) select { height: 44px; align-items: center; }
  body.ton-bar.se-on :is(#se-bar, .statusbar) :is(#transpose-input, #se-tempo) { box-sizing: border-box; min-width: 44px; height: 44px; }
  body.ton-bar.se-on .statusbar .se-num { height: 44px; }
}
@media (pointer: coarse) and (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  body.persona-free #se-kopf { left: auto; }
  #se-bar .se-zeilakt { position: sticky; right: 0; z-index: 1; padding-left: 4px; background: var(--panel); }
}
body.lz-on #bib-pop { font-family: var(--font); }
.se-oswrap { margin-bottom: 10px; }
body.lz-on .se-col #track-list .trk-plus { display: flex !important; }
body.lz-on .se-lsmenu, body.lz-on .se-modal, body.lz-on .se-toast { font-family: var(--font); }
body.lz-on #cw-panel { left: calc(var(--lzr) + 14px); }
body.lz-on #vs-panel { right: calc(var(--lzs) + 14px); }
#lz-rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--lzr); box-sizing: border-box; z-index: 56;
  display: flex; flex-direction: column; padding: calc(10px + var(--sat)) 0 calc(10px + var(--sab)) var(--sal);
  background: var(--chrome); color: var(--ink); container-type: inline-size; }
#lz-rail[hidden] { display: none; }
#lz-rail { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
#lz-rail::-webkit-scrollbar { display: none; }
#lz-rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
#lz-rail li { flex: none; }
#lz-rail li[hidden] { display: none; }
.lz-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 44px;
  margin: 0 auto 16px; padding: 0; border: 0; border-radius: var(--r); background: transparent; }
.lz-logo .ks-marke { display: block; }
#lz-rail .lz-unten { margin-top: auto; padding-top: 12px; }
.lz-entry { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; width: calc(100% - 12px); min-height: 52px; margin: 0 6px; padding: 6px 2px 5px; border: 0;
  border-radius: var(--r); background: transparent; color: var(--muted); font-size: 12px; line-height: 1.15;
  text-align: center; }
.lz-entry svg { flex: none; width: 22px; height: 22px; color: var(--ink); }
.lz-wb { display: flex; flex-direction: column; align-items: stretch; max-width: 100%; }
.lz-word { display: block; overflow-wrap: anywhere; }
.lz-line { display: block; height: 5px; margin: 1px -3px 0; background: var(--accent); opacity: 0; pointer-events: none;
  -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; }
.lz-entry:hover, .lz-logo:hover { background: var(--panel); color: var(--ink); }
.lz-entry:active, .lz-logo:active { background: var(--field-pressed); color: var(--ink); }
.lz-entry[aria-current="page"], .lz-entry[aria-expanded="true"] { color: var(--ink); font-weight: 600; }
.lz-entry[aria-current="page"] svg { color: var(--accent); }
.lz-entry[aria-current="page"] .lz-line, .lz-entry[aria-expanded="true"] .lz-line { opacity: 1; }
.lz-entry[aria-expanded="true"] .lz-line { background: var(--ink); }
@container (max-width: 80px) {
  .lz-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lz-entry { min-height: 46px; }
  .lz-line { width: 26px; margin: 3px 0 0; }
}
@media (forced-colors: active) {
  .lz-line, .lz-rooms-pop button::after { forced-color-adjust: none; background: CanvasText; }
}
@media (max-height: 640px) {
  .lz-entry { min-height: 44px; padding: 4px 2px 3px; }
  .lz-logo { height: 38px; margin-bottom: 8px; }
}
#lz-page { position: fixed; left: var(--lzr); top: 0; right: var(--lzs); bottom: 0; z-index: 55; display: flex; flex-direction: column; background: var(--panel); color: var(--ink); font-family: var(--font); }
#lz-roomwrap { display: none; }
#lz-roombtn { position: relative; height: 44px; border-radius: var(--r); padding: 0 12px 0 9px; gap: 7px;
  display: flex; align-items: center; justify-content: center; border: 0;
  color: var(--ink); background: transparent; font-size: 12px; font-weight: 600; }
#lz-roombtn svg { width: 21px; height: 21px; color: var(--accent); }
#lz-roombtn:hover { background: var(--panel); }
#lz-roombtn:active, #lz-roombtn[aria-expanded="true"] { background: var(--field-pressed); }
.lz-rbico { display: flex; }
.lz-rbname { white-space: nowrap; }
.lz-rooms-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 58;
  display: flex; flex-direction: row; gap: 2px; padding: 4px;
  border-radius: var(--r); background: var(--raised); box-shadow: var(--shadow); }
.lz-rooms-pop[hidden] { display: none; }
.lz-rooms-pop button { display: flex; align-items: center; justify-content: center; flex: none;
  position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r); background: transparent;
  color: var(--ink); }
.lz-rooms-pop button svg { width: 21px; height: 21px; }
.lz-rooms-pop button:hover { background: var(--field); }
.lz-rooms-pop button:active { background: var(--field-pressed); }
.lz-rooms-pop button.on { color: var(--accent); }
.lz-rooms-pop button::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 5px;
  margin-left: -11px; background: var(--accent); opacity: 0; pointer-events: none;
  -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; }
.lz-rooms-pop button.on::after { opacity: 1; }
.lz-sheet { position: fixed; top: 0; right: 0; bottom: var(--lzb, 0px); z-index: 62; box-sizing: border-box;
  width: min(calc(var(--lzs-b) + var(--sar)), calc(100vw - var(--lzr) - 24px));
  display: flex; flex-direction: column; padding: var(--sat) var(--sar) var(--sab) 0;
  background: var(--panel); color: var(--ink); border-left: 1px solid var(--line); font-family: var(--font); }
.lz-sheet[hidden] { display: none; }
@media (width < 1180px), (pointer: coarse) and (height <= 520px) {
  .lz-sheet { background: var(--raised); border-left: 0; box-shadow: var(--shadow); }
}
body.kp-present .lz-sheet { display: none; }
.lz-sheet-head { flex: none; display: flex; align-items: center; gap: 10px; box-sizing: border-box;
  min-height: var(--lzs-head, 60px); padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); }
.lz-sheet-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 36px; color: var(--ink); }
.lz-sheet-ic svg { width: 22px; height: 22px; }
.lz-sheet-head h2 { flex: 1; min-width: 0; min-height: 36px; margin: 0; display: flex; flex-direction: column;
  justify-content: center; font-size: 17px; font-weight: 600; line-height: 1.2; }
.lz-sheet-sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.lz-sheet-sub:empty { display: none; }
.lz-sheet-head h2 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-sheet-x { flex: none; color: var(--muted); }
.lz-sheet-x:hover { color: var(--ink); }
.lz-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 16px; }
.lz-sheet-foot { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.lz-sheet-foot[hidden] { display: none; }
body.lz-on.se-on { --lzs-head: calc(var(--se-kopfh, 40px) + var(--se-barh, 46px)); }
body.lz-on.se-on .lz-sheet-head { align-items: flex-start; padding-top: calc((var(--se-kopfh, 40px) - 36px) / 2); }
body.lz-on:has(#lz-page .ks-header) { --lzs-head: var(--header-h); }
.lz-sec { margin-top: 22px; }
.lz-sec:first-child { margin-top: 10px; }
.lz-sec > h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.lz-zahl { font-size: 13px; font-weight: 400; color: var(--muted); }
.lz-note { margin: 0; font-size: 13px; color: var(--muted); }
.lz-running { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lz-running li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; }
.lz-dot { width: 10px; height: 10px; margin: 6px 0 0 6px; border-radius: var(--round); background: var(--gruen); }
.lz-was { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lz-wo { margin: 0; font-size: 13px; color: var(--muted); }
.lz-akt { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0 -10px; }
.lz-akt:empty { display: none; }
.lz-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.lz-start .ks-tool { flex-direction: column; height: auto; min-height: 64px; padding: 8px 4px; gap: 4px;
  font-weight: 400; line-height: 1.2; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.lz-start .ks-tool .ic { width: 24px; height: 24px; }
.lz-recent { list-style: none; margin: 0; padding: 0; }
.lz-recent button { display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: calc(100% + 16px);
  min-height: 40px; margin: 0 -8px; padding: 0 8px; text-align: left; }
.lz-recent .ic { flex: none; color: var(--muted); }
.lz-rtitel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-wann { flex: none; margin-left: auto; font-size: 13px; color: var(--muted); }
@media (forced-colors: active) { .lz-dot { forced-color-adjust: none; background: CanvasText; } }
.bs-leiste { position: fixed; z-index: 94; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  left: calc(var(--lzr, 0px) + 12px); right: calc(var(--lzs, 0px) + 12px);
  margin: 0 auto; width: max-content; max-width: calc(100% - var(--lzr, 0px) - var(--lzs, 0px) - 24px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: var(--r); background: #26241f; color: #fff;   
  box-shadow: var(--shadow); font-size: 13px; }
.bs-leiste.spiegel { background: #33507a; }
.bsl-was { display: inline-flex; align-items: center; gap: 7px; padding-left: 4px; white-space: nowrap; }
.bsl-was b { font-weight: 700; }
.bsl-code { font-family: Consolas, monospace; letter-spacing: .5px; opacity: .72; }
.bsl-cmds { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px;
  padding-left: 8px; border-left: 1px solid rgba(255,255,255,.22); }
.bsl-b { min-height: 0; width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--r); background: rgba(255,255,255,.12); color: #fff;
  font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.bsl-b:hover { background: rgba(255,255,255,.24); }
.bsl-aus { margin-left: 2px; background: rgba(255,120,110,.22); }
.bsl-aus:hover { background: rgba(255,120,110,.4); }
.bsl-say { font-size: 12px; opacity: .8; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsl-say.fehler { color: #ffb4ae; opacity: 1; }
.bsl-folie { width: auto; gap: 6px; padding: 0 12px; font-weight: 600; }
@media (pointer: coarse) { .bsl-folie { height: 44px; padding: 0 16px; } }
@media (pointer: coarse) and (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  .bs-leiste { bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); }
}
@media (max-width: 600px) {
  .bs-leiste { justify-content: center; border-radius: var(--r); bottom: calc(var(--lzb, 0px) + 14px); }
  .bsl-was { width: 100%; justify-content: center; padding-left: 0; }
  .bsl-cmds { margin-left: 0; padding-left: 0; border-left: 0; }
  .bsl-say:empty { display: none; }
}
body.kp-present .bs-leiste { display: none; }
#bs-pop { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: transparent; }
#bs-pop::backdrop { background: rgba(24, 22, 18, .42); backdrop-filter: blur(3px); }
.bs-box {
  width: min(460px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--panel); border-radius: var(--r); padding: 20px 22px 18px;
  box-shadow: var(--shadow);
  font-family: var(--font);
  color: var(--ink); font-size: 14px;
}
.bs-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.bs-kopf h2 { margin: 0; flex: 1; font-size: 17px; font-weight: 700; }
.bs-x { border: none; background: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0; }
.bs-x:hover { color: var(--ink); }
.bs-teil { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bs-teil h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
.bs-hint { margin: 4px 0 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.bs-code { font-size: 34px; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; text-align: center; margin: 6px 0 8px; }
.bs-qr { text-align: center; }
.bs-qr svg { width: 148px; height: 148px; }
.bs-row { display: flex; gap: 8px; }
.bs-row input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: var(--r); border: 1px solid var(--line); font: inherit; font-size: 18px; font-weight: 700; background: var(--panel); color: var(--ink); letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.bs-row input:focus { border-color: var(--accent); }
.bs-btn { padding: 9px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.bs-btn:hover { background: color-mix(in srgb, var(--ink) 4%, var(--panel)); }
.bs-btn.haupt { background: color-mix(in srgb, var(--accent) 60%, var(--ink)); border-color: transparent; color: var(--panel); font-weight: 600; }
.bs-btn.leise { border-color: transparent; color: var(--muted); padding-left: 0; }
.bs-btn.leise:hover { color: var(--ink); background: none; text-decoration: underline; }
.bs-modi { display: flex; gap: 8px; margin: 8px 0 10px; }
.bs-modus { flex: 1; text-align: left; padding: 10px 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.bs-modus b { display: block; font-size: 13.5px; }
.bs-modus span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.bs-modus:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.bs-modus.an { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.bs-modus.an b { color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.bs-fern { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.bs-say { margin: 12px 0 0; min-height: 1.2em; font-size: 13px; color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.bs-say.fehler { color: color-mix(in srgb, var(--status-fehler) 70%, var(--ink)); }
.ic { vertical-align: -.18em; flex: none; }
.wb-dot { display: inline-block; width: 9px; height: 9px; border-radius: var(--round); background: color-mix(in srgb, var(--muted) 38%, var(--panel)); vertical-align: middle; flex: none; }
.wb-dot.an { background: var(--status-ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-ok) 60%, transparent); animation: wbpuls 2s ease-out infinite; }
@keyframes wbpuls { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
#lz-page[hidden] { display: none !important; }
.lz-menuwrap { position: relative; }
.lz-menubtn { height: 40px; border: 0; background: none; border-radius: var(--r); padding: 0 4px 0 11px; display: flex; align-items: center; gap: 9px; cursor: pointer; max-width: 40vw; }
.lz-menubtn:hover { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.lz-mname { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-menubtn:hover .lz-mname { color: var(--ink); }
.lz-brand { display: block; filter: grayscale(1) opacity(.45); transition: filter .18s ease; }
.lz-menubtn:hover .lz-brand { filter: none; }
.lz-content { padding-top: var(--sat); padding-bottom: calc(24px + var(--sab)); flex: 1; min-height: 0; overflow-y: auto; display: flex; align-items: center; justify-content: center; background: var(--panel); }
.lz-stub { max-width: 560px; padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.lz-sicon { width: 76px; height: 76px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--lzi); border: 1.5px solid color-mix(in srgb, var(--lza) 34%, var(--line)); }
.lz-sicon svg { width: 34px; height: 34px; }
.lz-stub h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.lz-stub p { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--muted); line-height: 1.55; }
.lz-pill { margin-top: 4px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--r); background: var(--accent-soft); color: var(--lzi); }
.pl-root { min-height: 100%; display: flex; flex-direction: column; }
.pl-kopf { position: sticky; top: 0; z-index: 5; }
.pl-aktionen { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; min-width: 0;
  margin-left: auto; }
.pl-aktionen:empty { display: none; }
.pl-mount { flex: 1; min-height: 0; }
@media (max-width: 760px) { .pl-kopf { position: static; } }
.pl-mount .pk-wrap { padding-top: 14px; }
.lz-content.lz-feat { display: block; align-items: stretch; justify-content: stretch; overflow-y: auto; }
.pk-root { min-height: 100%; }
.pk-wrap { max-width: 1140px; margin: 0 auto; padding: 18px 34px 72px; }
.pk-root .ur-platzzeile { grid-template-columns: 150px repeat(2, minmax(0, 1fr)); }
.pk-wrap.pk-uebersicht { max-width: none; padding: 26px 40px 40px 32px; }
.pk-ovkopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
.pk-h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.pk-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 0; padding: 0; list-style: none; }
.pk-legende li { display: inline-flex; align-items: center; }
.pk-legende li + li::before { content: "→"; margin: 0 10px; color: var(--muted); font-size: 13px; }
.pk-search { flex: 1; min-width: min(220px, 100%); max-width: 400px; }
.pk-search > input { height: 36px; }
@media (pointer: coarse) { .pk-search > input { height: 40px; } }
.pk-filwahl { height: 36px; }
.pk-gitter { grid-template-columns: 170px minmax(0, 1.25fr) minmax(0, 1fr); margin-top: 28px; }
.pk-gitter.is-archiv { grid-template-columns: 170px minmax(0, 1fr); }
.pk-gbis { padding-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.pk-gitter .class-grid-cell { display: flex; flex-direction: column; align-items: stretch; }
.pk-gkarten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.pk-gkarten > .lesson-cell { min-height: 150px; }
.pk-gkarten > .lesson-cell.sticky-note { margin: -8px -10px; }
.pk-ghint { margin: 0; font-size: 13px; color: var(--muted); }
.pk-uebersicht > .pk-ghint { margin-top: 10px; }
.pk-gohneplan { display: flex; align-items: center; gap: 7px; font-size: 16px; }
.pk-gohneplan .ic { flex: none; width: 20px; height: 20px; color: var(--edge); }
.pk-geinrichten { align-self: flex-start; margin: 6px 0 0 -12px; }
.pk-gleer { margin: 0; font-size: 16px; color: var(--muted); max-width: 70ch; }
.pk-gleer.pk-gross { margin-top: 20px; }
.pk-zurlaufend { margin: 6px 0 0 -10px; }
.pk-rows { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pk-row { position: relative; }
.pk-row > p { margin: 0; }
.pk-rtitel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; font-weight: 600; line-height: 1.25; }
.pk-ropen { padding: 0; border: 0; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.pk-ropen::before { content: ""; position: absolute; inset: 0; }
.pk-ropen:hover:not(:disabled) { background: none; }
.pk-row:has(.pk-ropen:hover) .pk-ropen { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pk-ropen:focus-visible { outline: none; }
.pk-row:has(.pk-ropen:focus-visible) { outline: 2px solid var(--accent); outline-offset: 5px; }
@media (forced-colors: active) { .pk-row:has(.pk-ropen:focus-visible) { outline-color: CanvasText; } }
.pk-rpfeil { display: inline-flex; margin-left: auto; color: var(--accent); }
.pk-rpfeil .ic { width: 16px; height: 16px; }
.pk-row > .pk-rmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.pk-rmeta .state-mark { font-size: 13px; }
.pk-rmeta .state-mark .ic { width: 16px; height: 16px; }
.pk-row :is(.pk-zettel, .pk-rgriffe, .ai-chip) { position: relative; z-index: 1; }
.pk-row > .pk-rzettel { margin: 8px 0 2px 2px; }
.pk-rgriffe { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 4px 0 0 -8px; }
.pk-rgriff, .pk-gneu { min-height: 28px; padding: 2px 8px; font-size: 13px; }
.pk-rgriff { display: inline-flex; align-items: center; gap: 6px; }
.pk-rgriff .ic { flex: none; width: 16px; height: 16px; color: var(--accent); }
.pk-gneu { display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.pk-gneu .ic { flex: none; width: 16px; height: 16px; color: var(--accent); }
.pk-gfertig { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-top: 12px; }
.pk-gfertig .ic { transition: transform .15s; }
.pk-gfertig[aria-expanded="true"] .ic { transform: rotate(90deg); }
.pk-gfertig + .pk-rows { margin-top: 10px; }
.pk-gfuss { display: flex; flex-wrap: wrap; gap: 0 4px; margin: auto 0 -6px -8px; padding-top: 12px; }
.pk-gunter { padding: 12px 0 0; margin-left: -8px; }
@media (max-width: 1179px) {
  .pk-wrap.pk-uebersicht { padding: 22px 24px 40px 24px; }
  .pk-gitter { grid-template-columns: 124px minmax(0, 1.3fr) minmax(0, 1fr); }
  .pk-gitter.is-archiv { grid-template-columns: 124px minmax(0, 1fr); }
  .pk-gitter .class-grid-cell { padding: 14px 10px 12px; }
  .pk-gitter .class-grid-name { font-size: 34px; }
  .pk-gitter .class-grid-name.is-long { font-size: 26px; }
  .pk-gitter .class-grid-name.is-longer { font-size: 20px; }
  .pk-gitter .class-grid-name.is-print { font-size: 18px; }
  .pk-gkarten { gap: 16px 14px; }
  .pk-gitter .lesson-cell-title { font-size: 16px; }
}
@media (max-width: 1023px) { .pk-gkarten { grid-template-columns: minmax(0, 1fr); } .pk-gkarten > .lesson-cell { min-height: 0; } }
@media (max-width: 760px) {
  .pk-wrap.pk-uebersicht { padding: 18px 16px 40px; }
  .pk-gitter .class-grid-cell { padding: 10px 0 14px; }
  .pk-gitter .class-grid-name { font-size: 34px; }
}
.pk-hint { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pk-hint > span:first-child { flex: none; line-height: 1; padding-top: 1px; }
.pl-spabschnitt .pk-hint { margin: 8px 16px 0; }
dialog.pk-fenster { width: min(560px, calc(100vw - 32px)); box-sizing: border-box; }
dialog.pk-fenster.pk-exportdlg { width: min(620px, calc(100vw - 32px)); }
dialog.pk-fenster.pk-mwahl { width: min(880px, calc(100vw - 32px)); }
dialog.pk-fenster.pk-vgl { width: min(980px, calc(100vw - 32px)); }
dialog.pk-fenster.pk-anafenster { width: min(1100px, calc(100vw - 32px)); }
.ks-frage.pk-fenster:is(.pk-mwahl, .pk-vgl) menu { border-top: 1px solid var(--line); }
.pk-fenster h3.pk-mwsec { margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pk-fenster h3.pk-mwsec:first-child { margin-top: 4px; padding-top: 0; border-top: 0; }
.pk-fenster .ur-zustand { margin: 8px 0; font-size: 14px; }
.pk-fenster .ur-zustand + .ks-secondary { margin-left: 0; }
.pk-fplatz i { display: block; height: 14px; margin: 14px 0; border-radius: var(--r); background: var(--field); }
.pk-fplatz i:first-child { width: 60%; }
.pk-fenster textarea.pk-anatext { min-height: 55vh; font-size: 14.5px; line-height: 1.6; }   
.pk-lzdraft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 16px 0; }
.pk-lzdraft[hidden] { display: none; }
.pk-lzdraft input { flex: 1 1 160px; min-width: 0; }
.pk-ops { margin: 8px 16px 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.pk-ops[hidden] { display: none; }
.pk-opnote { margin: 0 0 11px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pk-oprow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pk-oprow:last-child { margin-bottom: 0; }
.pk-afb { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 92px; }
.pk-op { padding: 4px 9px; border: 0; border-radius: var(--r-small); font: inherit; font-size: 12.5px; font-weight: 600; background: var(--field); color: var(--ink); cursor: pointer; }
.pk-op:hover { background: var(--field-hover); }
.pk-op:active { background: var(--field-pressed); }
.pl-vorn { display: flex; align-items: center; }
.pl-vorn:empty { display: none; }
.pl-colbtn { color: var(--muted); }
.pl-colbtn:hover:not(:disabled) { color: var(--ink); }
.pl-zwei { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.pl-zwei.pl-spaltezu { grid-template-columns: minmax(0, 1fr); }
.pl-zwei.pl-spaltezu > .pl-spalte { display: none; }
.pl-spalte { position: sticky; top: var(--header-h); min-height: calc(100dvh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
  overflow: hidden auto; padding-bottom: 24px; border-right: 1px solid var(--line); background: var(--panel); }
.pl-spabschnitt { padding: 12px 0 10px; border-top: 1px solid var(--line); }
.pl-sph { margin: 0; padding: 0 16px 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.pl-spleer { margin: 0; padding: 0 16px; font-size: 13px; color: var(--muted); }
.kr-ladefehler { padding: 0 16px 10px; }
.kr-ladefehler > .ks-secondary { margin-left: -10px; }
.pl-spliste { list-style: none; margin: 0; padding: 0 8px; }
.pl-spname { display: flex; flex-direction: column; min-width: 0; }
.pl-spname > span { position: relative; align-self: flex-start; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.pl-spname > small { margin-top: 1px; font-size: 12px; color: var(--muted); }
.pl-spkopf { padding: 14px 16px 10px; }
.pl-sptitel { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.pl-zahl { padding-left: 6px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.pl-speintrag { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 7px 8px 8px;
  border: 0; border-radius: var(--r); background: transparent; color: var(--ink); font: inherit; text-align: left; }
.pl-speintrag > .pl-spname { flex: 1; }
.pl-speintrag:hover { background: var(--field); }
.pl-speintrag:active { background: var(--field-pressed); }
.pl-ungesp { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
@media (forced-colors: active) { .pl-ungesp { background: CanvasText; } }
.pl-zurueck { display: none; max-width: calc(100% + 10px); margin: 0 0 10px -10px; }
.pl-zurueck > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-waehle { margin: 4px 0 0; max-width: 60ch; font-size: 15px; color: var(--muted); }
.pl-waehle + .pl-waehle { margin-top: 8px; font-size: 13px; }
[aria-current] > .pl-spname > span { font-weight: 600; padding-bottom: 4px; }
[aria-current] > .pl-spname > span::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 0; height: 5px;
  background: var(--accent); -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; }
.pl-blatt { min-width: 0; padding: 22px 40px 56px 32px; }
@media (min-width: 761px) and (max-width: 1179px) {
  .pl-zwei, .pl-zwei.pl-spaltezu { grid-template-columns: minmax(0, 1fr); }
  .pl-zwei > .pl-spalte { position: fixed; left: var(--lzr); top: var(--header-h); bottom: 0; z-index: 4; width: 304px; min-height: 0; max-height: none;
    border-right: 0; background: var(--raised); box-shadow: var(--shadow); transition: transform .15s ease, visibility .15s; }
  .pl-zwei.pl-spaltezu > .pl-spalte { display: block; visibility: hidden; transform: translateX(-100%); }
  .pl-blatt { padding: 22px 24px 40px; }
}
@media (max-width: 1179px) and (prefers-reduced-motion: reduce) { .pl-zwei > .pl-spalte { transition: none; } }
@media (pointer: coarse) { .pl-aktionen :is(.ks-secondary, .ks-tool, button.primary), .pl-vorn .ks-tool,
  .pl-liste-blatt .pl-blatt .ks-secondary { min-height: 40px; } }
@media (max-width: 760px) {
  .pl-zwei, .pl-zwei.pl-spaltezu { display: block; }
  .pl-zwei > .pl-spalte, .pl-zwei.pl-spaltezu > .pl-spalte { display: block; position: static; min-height: 0; max-height: none;
    border-right: 0; border-bottom: 1px solid var(--line); }
  .pl-colbtn { display: none; }
  .pl-blatt { padding: 18px 16px 40px; }
  .pl-liste-blatt.is-gewaehlt > .pl-spalte, .pl-liste-blatt:not(.is-gewaehlt) > .pl-blatt { display: none; }
  .pl-liste-blatt .pl-zurueck { display: inline-flex; }
}
.pl-gesp { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pl-gesp .ic { width: 16px; height: 16px; flex: none; }
.pk-zurueck { margin: 0 0 6px -10px; }
.pk-wrap.pl-zwei { max-width: none; padding: 0; }
.pk-spkopf { padding: 14px 16px 12px; }
.pk-sptitel { display: block; width: calc(100% + 12px); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.pk-angaben { display: flex; flex-direction: column; padding: 0 16px 12px; }
.pk-angabe { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 34px; font-size: 13px; }
.pk-angabe > label { color: var(--muted); line-height: 1.25; }
.pk-angabe > select { justify-self: end; max-width: 100%; min-height: 32px; }
.pk-angabe.pk-text .ks-in-place { width: calc(100% + 12px); min-height: 24px; }
.pk-kurz { display: inline-flex; align-items: center; gap: 4px; justify-self: end; color: var(--muted); white-space: nowrap; }
.pk-kurz input[type="number"] { width: 52px; height: 28px; padding: 0 2px; text-align: center; font-variant-numeric: tabular-nums; }
.pk-herkunftz { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.pk-spgrp { margin: 4px 0; padding: 0 16px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pk-spfuss { display: flex; flex-wrap: wrap; gap: 0 4px; padding: 4px 6px 0; }
.pk-spst { display: grid; grid-template-columns: 14px 20px minmax(0, 1fr); align-items: start; gap: 8px; width: 100%; padding: 7px 8px 8px;
  border: 0; border-radius: var(--r); background: transparent; color: var(--ink); font: inherit; text-align: left; }
.pk-spnr { padding-top: 1px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-spst .state-mark .ic { width: 18px; height: 18px; }
.pk-spst .state-mark > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pk-splz { list-style: none; margin: 0; padding: 0 16px; display: flex; flex-direction: column; gap: 2px; }
.pk-lz { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; }
.pk-lz > .ks-in-place { flex: 1; min-width: 0; margin: -2px 0; }
.pk-lz > textarea.pk-lztext { resize: none; field-sizing: content; min-height: 0; line-height: 1.4; overflow: hidden; }
.pk-lz > .pk-lztag { margin-top: 1px; }
.pk-lztag { flex: none; min-width: 34px; padding: 2px 6px; border-radius: var(--r-small); background: var(--field); color: var(--ink);
  font-size: 12px; font-weight: 600; text-align: center; }
.pk-denkmark .pk-lztag { outline: 2px dotted color-mix(in srgb, var(--accent) 50%, var(--panel)); outline-offset: 2px; }
.pk-lzx { min-width: 28px; height: 28px; padding: 0; color: var(--muted); }
.pk-spana { list-style: none; margin: 0; padding: 0 16px; }
.pk-spana li { display: flex; align-items: baseline; gap: 10px; min-height: 28px; padding-top: 3px; font-size: 13px; }
.pk-ana { min-height: 24px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
.pk-ana:hover:not(:disabled) { background: none; text-decoration: underline; text-underline-offset: 3px; }
.pk-anazahl { font-size: 12px; color: var(--muted); }
.pk-bwo { display: none; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.pk-bkopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 4px; margin-bottom: 14px; }
.pk-bkopf > * { grid-column: 1; margin: 0; }
.pk-bzu { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.pk-bnr { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-bkopf > .pk-btitel { display: block; width: calc(100% + 12px); margin: -2px -6px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.pk-btermin { font-size: 13px; }
.pk-bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.pk-bmeta .pk-kurz { gap: 6px; }
.pk-bkopf > .pk-bwege { grid-column: 2; grid-row: 1 / span 5; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.pk-stdel { color: var(--muted); }
.pk-lbody { margin: 0; padding: 0; min-width: 0; border: 0; }
@media (min-width: 761px) and (max-width: 1179px) {
  .pk-bwo { display: block; }
}
@media (max-width: 760px) {
  .pk-bkopf { grid-template-columns: minmax(0, 1fr); }
  .pk-bkopf > .pk-bwege { grid-column: 1; grid-row: auto; }
}
.pk-plan { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.pk-plan thead th { padding: 6px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 600;
  letter-spacing: .02em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-plan thead td { border-bottom: 1px solid var(--line); }
.pk-plan thead th:nth-child(1) { width: 78px; }
.pk-plan thead th:nth-child(2) { width: 150px; }
.pk-plan thead th:nth-child(5) { width: 22%; }
.pk-plan thead td:last-child { width: 40px; }
.pk-vneben { padding-left: 4px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pk-plan tbody > tr > :is(td, th) { padding: 10px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left;
  font-weight: 400; line-height: 1.5; }
.pk-plan tbody > tr > td.pk-vweg { padding: 8px 0 0; text-align: right; }
.pk-vzeit { white-space: nowrap; }
.pk-plan input.pk-vmin { width: 44px; height: 30px; padding: 0 2px; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; }
.pk-plan input.pk-vmin::-webkit-inner-spin-button, .pk-plan input.pk-vmin::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pk-veinheit { padding-left: 4px; font-size: 13px; color: var(--muted); }
.pk-plan .ks-in-place { display: block; width: calc(100% + 12px); min-height: 1.5em; line-height: 1.5; }
.pk-plan .pk-vph { font-weight: 600; }
.pk-plan textarea.pk-vtext { resize: none; field-sizing: content; min-height: 3em; }
.pk-plan textarea.pk-verw { min-height: 1.5em; margin-top: 6px; font-size: 13px; }
.pk-vrubrik { margin: 10px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.pk-plan .pk-vrubrik + textarea.pk-verw { margin-top: 0; }
.pk-vsoz { display: flex; width: fit-content; max-width: calc(100% + 8px); min-height: 28px; margin: 4px 0 0 -8px; font-size: 13px; }
.pl-marken, .pk-vlz { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pl-marke, .pk-mmarke { display: inline-flex; align-items: center; height: 24px; padding: 0 7px; border: 0; border-radius: var(--r-small);
  background: var(--field); color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.pl-marke:hover:not(:disabled) { background: var(--field-hover); color: var(--ink); }
.pl-marke:active:not(:disabled) { background: var(--field-pressed); color: var(--ink); }
.pl-marke[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.pl-marke[aria-pressed="true"]:disabled { color: var(--muted); }
.pk-vmedien { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 4px 0 0 -6px; }
.pk-medchip { display: inline-flex; align-items: center; max-width: 100%; }
.pk-medname, .pk-medat, .pk-bstueck { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 13px; text-align: left; }
.pk-medname { padding: 3px 4px 3px 6px; }
.pk-plan :is(.pk-medat, .pk-bstueck) { height: auto; min-height: 28px; padding: 3px 6px; font-weight: 400; line-height: 1.3; white-space: normal; }
.pk-plan :is(.pk-medadd, .pk-bwahl, .pk-mlink) { min-height: 28px; padding: 0 6px; font-size: 13px; }
.pk-vx { min-width: 28px; height: 28px; padding: 0; color: var(--muted); }
.pk-plan tbody > tr.pk-modref > th { padding: 12px 0 10px; font-size: 13px; line-height: 1.5; }
.pk-mzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pk-mtitel { min-height: 24px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; }
button.pk-mtitel:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.pk-mzeile .pk-vneben { padding-left: 0; }
.pk-vrechts { margin-left: auto; }
.pk-besetzung { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.pk-bplatz { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.pk-bnum { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-bplatz.alt .pk-blabel { color: var(--muted); text-decoration: line-through; }
.pk-mneu { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.pk-mbody { padding: 6px 0 0; }
.pk-besbedarf { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.pk-mteile { list-style: none; margin: 0; padding: 0; }
.pk-mteile li { display: grid; grid-template-columns: 56px 140px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.pk-mzt { color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-mph { font-weight: 600; }
.pk-mimp { color: var(--muted); }
.pk-vfuss { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 8px 0 0 -8px; }
.pk-rest.drin { opacity: .8; }
.pk-vk { display: none; }
@media (min-width: 761px) and (max-width: 1179px) { .pk-plan thead th:nth-child(2) { width: 124px; } }
@media (max-width: 760px) {
  .pk-plan, .pk-plan tbody { display: block; }
  .pk-plan thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pk-plan tbody > tr { display: block; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
  .pk-plan tbody > tr.pk-step { display: grid; grid-template-columns: 78px minmax(0, 1fr) 40px; column-gap: 8px; }
  .pk-plan tbody > tr > :is(td, th), .pk-plan tbody > tr > td.pk-vweg, .pk-plan tbody > tr.pk-modref > th { display: block; padding: 0; border-bottom: 0; }
  .pk-step > :is(.pk-vlehren, .pk-vlernen, .pk-vmat) { grid-column: 1 / -1; margin-top: 10px; }
  .pk-step > .pk-vweg { grid-column: 3; grid-row: 1; }
  .pk-vk { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
  .pk-mteile li { grid-template-columns: 48px minmax(0, 1fr); }
  .pk-mimp { grid-column: 2; }
}
.pk-fass { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.pk-fass legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pk-choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pk-choice:last-child { border-bottom: 0; }
.pk-choice input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.pk-choice .ct { flex: 1; min-width: 0; }
.pk-choice .ct b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; color: var(--ink); }
.pk-choice .ct span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pk-dlgsum { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.pk-dlgsum b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .pk-wrap { padding: 20px 18px 80px; }
}
.ur-root { min-height: 100%; display: flex; flex-direction: column; }
.lz-content.lz-feat.ur-laufmodus { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }   
.ur-wrap { max-width: 920px; width: 100%; margin: 0 auto; padding: 44px 32px 48px; }
.ur-h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ur-subp { margin: 0 0 26px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.ur-empty { text-align: center; color: var(--muted); padding: 50px 16px; font-size: 13.5px; }
.ur-empty h1 { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.ur-emptywege { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.ur-flex { flex: 1; }
.ur-nachwrap { max-width: 1000px; }
.ur-wrap:is(.ur-auswahl, .ur-nachseite) { max-width: none; padding: 26px 40px 40px 32px; }
.ur-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
.ur-kopf .ur-h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.ur-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 0; padding: 0; list-style: none; }
.ur-legende li { display: inline-flex; align-items: center; }
.ur-legende li + li::before { content: "→"; margin: 0 10px; color: var(--muted); font-size: 13px; }
.ur-gitter { grid-template-columns: 150px repeat(5, minmax(0, 1fr)); margin-top: 28px; }
.ur-gitter .class-grid-head > .ur-col-past { grid-column: span 2; }
.ur-gitter .class-grid-cell { min-height: 160px; }
.ur-gitter .class-grid-cell > .lesson-cell + .lesson-cell { margin-top: 22px; }
.ur-ohnebtn {
  height: auto; margin: 14px 0 0 -8px; padding: 6px 8px; align-items: flex-start; justify-content: flex-start;
  white-space: normal; text-align: left; line-height: 1.3; font-weight: 400;
}
.ur-ohnebtn .ic { margin-top: 0; }
.ur-later { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); }
.ur-later > .lesson-cell { margin-top: 18px; }
.ur-laterbtn { display: inline-flex; align-items: center; gap: 4px; margin-left: -8px; min-height: 28px; padding: 2px 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ur-laterbtn:hover:not(:disabled) { color: var(--ink); }
.ur-laterbtn .ic { transition: transform .15s; }
.ur-laterbtn[aria-expanded="true"] .ic { transform: rotate(90deg); }
.lesson-cell { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lesson-cell > p { margin: 0; }
.lesson-cell-title { margin: 4px 0 0; font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; }
.lesson-cell-series { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; max-width: 100%; font-size: 12px; color: var(--muted); }
.lesson-cell-series > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-cell-steps { display: inline-flex; flex: none; gap: 3px; }
.lesson-cell-steps i { display: block; width: 8px; height: 8px; box-sizing: border-box; border: 1px solid var(--muted); }
.lesson-cell-steps i.vor { background: var(--muted); }
.lesson-cell-steps i.hier { background: var(--ink); border-color: var(--ink); }
.lesson-cell-meta { font-size: 13px; color: var(--muted); }
.lesson-cell-when, .lesson-cell-warn { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--ink); }
.lesson-cell-when .ic { flex: none; margin-top: 1px; color: var(--muted); }
.lesson-cell-warn .ic { flex: none; margin-top: 1px; color: var(--status-warnung); }
.lesson-cell-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 4px; }
.lesson-cell:not(.area-open) .lesson-cell-main::before { content: ""; position: absolute; inset: 0; }
.lesson-cell-main { position: static; white-space: normal; text-align: left; }
.lesson-cell.area-open .lesson-cell-main { position: relative; z-index: 1; }
.lesson-cell-main.ks-onward { display: inline-block; margin-left: -12px; padding: 8px 10px 8px 12px; line-height: 1.25; }
.lesson-cell-keep { white-space: nowrap; }
.lesson-cell-main.primary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 14px; }
.lesson-cell-main .ic { width: 18px; height: 18px; margin-left: 6px; vertical-align: -4px; }
.lesson-cell-more { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0 2px; margin-left: -8px; }
.lesson-cell-more > button { min-height: 28px; padding: 2px 8px; font-size: 13px; text-align: left; }
.lesson-cell:not(.area-open) .lesson-cell-main.ks-onward:hover:not(:disabled) { background-color: transparent; }
.lesson-cell:not(.area-open):has(.lesson-cell-main:hover) .lesson-cell-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lesson-cell:not(.area-open) .lesson-cell-main:focus-visible { outline: none; }
.lesson-cell:not(.area-open):has(.lesson-cell-main:focus-visible) { outline: 2px solid var(--accent); outline-offset: 7px; }
@media (forced-colors: active) { .lesson-cell:not(.area-open):has(.lesson-cell-main:focus-visible) { outline-color: CanvasText; } }
.lesson-cell-open { padding: 0; border: 0; font-weight: inherit; text-align: left; overflow-wrap: break-word; hyphens: auto; }
.lesson-cell-open:hover:not(:disabled) { background: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lesson-cell:not(.area-open):has(.lesson-cell-main) .lesson-cell-open { position: relative; z-index: 1; }
.lesson-cell:is(.area-open, :not(:has(.lesson-cell-main))) .lesson-cell-open::before { content: ""; position: absolute; inset: 0; }
.lesson-cell:is(.area-open, :not(:has(.lesson-cell-main))):has(.lesson-cell-open:hover) .lesson-cell-open { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lesson-cell:is(.area-open, :not(:has(.lesson-cell-main))) .lesson-cell-open:focus-visible { outline: none; }
.lesson-cell:is(.area-open, :not(:has(.lesson-cell-main))):has(.lesson-cell-open:focus-visible) { outline: 2px solid var(--accent); outline-offset: 7px; }
@media (forced-colors: active) { .lesson-cell:has(.lesson-cell-open:focus-visible) { outline-color: CanvasText; } }
.lesson-cell.sticky-note { margin: -8px -10px; padding: 8px 10px 10px; }
.class-grid-cell > .lesson-cell.sticky-note + .lesson-cell { margin-top: 30px; }
@media (max-width: 1279px) {
  .ur-wrap:is(.ur-auswahl, .ur-nachseite) { padding: 22px 24px 40px 24px; }
  .ur-gitter { grid-template-columns: 118px repeat(5, minmax(0, 1fr)); }
  .ur-gitter .class-grid-head > :not(:first-child) { padding-left: 10px; padding-right: 10px; }
  .ur-gitter .class-grid-cell { padding: 14px 10px 12px; }
  .ur-gitter .lesson-cell-title { font-size: 16px; }
  .ur-gitter .class-grid-name.is-long { font-size: 26px; }
  .ur-gitter .class-grid-name.is-longer { font-size: 20px; }
  .lesson-cell.sticky-note { margin: -8px -6px; padding: 8px 6px 10px; }
  .ur-ohnebtn { hyphens: auto; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .ur-gitter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ur-gitter .class-grid-head > :first-child { display: none; }
  .ur-gitter .class-grid-head > .ur-col-past { grid-column: span 1; }
  .ur-gitter .class-grid-row { grid-template-rows: auto auto 1fr auto; }
  .ur-gitter .class-grid-name-cell { grid-column: 1 / -1; grid-row: 1; flex-flow: row wrap; align-items: baseline; gap: 2px 18px; padding: 14px 0 8px; }
  .ur-gitter .class-grid-name-cell .ur-ohnebtn { margin: 0 0 0 -8px; }
  .ur-gitter .ur-col-today { grid-column: 1; grid-row: 2 / span 2; }
  .ur-gitter .ur-col-week { grid-column: 2; grid-row: 2 / span 2; }
  .ur-gitter .ur-col-unscheduled { grid-column: 3; grid-row: 2 / span 2; }
  .ur-gitter .ur-col-due { grid-column: 4; grid-row: 2; min-height: 0; }
  .ur-gitter .ur-col-held { grid-column: 4; grid-row: 3; min-height: 0; border-left-color: var(--line); }
  .ur-gitter .ur-col-due:has(> .lesson-cell) + .ur-col-held { padding-top: 4px; }
  .ur-gitter .class-grid-extra { grid-row: 4; }
  .ur-gitter .class-grid-cell { min-height: 48px; }
}
@media (max-width: 760px) {
  .ur-wrap:is(.ur-auswahl, .ur-nachseite) { padding: 20px 16px 40px; }
  .ur-kopf .ur-h1 { font-size: 24px; }
  .ur-gitter { margin-top: 18px; }
  .ur-gitter .ur-col-due:has(> h3) + .ur-col-held > h3 { display: none; }
  .ur-gitter .ur-col-due:has(> h3) + .ur-col-held { padding-top: 4px; }
  .ur-gitter .class-grid-cell { min-height: 0; padding: 10px 12px 14px; }
}
.ur-zustand { display: flex; align-items: flex-start; gap: 8px; max-width: 620px; margin: 28px 0 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.ur-zustand .ic { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--muted); }
.ur-zustand.is-fehler .ic { color: var(--status-fehler); }
.ur-zustand + :is(.ks-onward, .ks-secondary) { margin-left: -12px; }
.ur-zustand + .ks-secondary { margin-left: -10px; }
.ur-platzhalter { margin-top: 28px; border-top: 1px solid var(--line); }
.ur-platzzeile { display: grid; grid-template-columns: 150px repeat(4, minmax(0, 1fr)); gap: 0 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ur-platzzeile i { display: block; height: 14px; border-radius: var(--r); background: var(--field); }
.ur-platzzeile i:first-child { width: 60%; height: 30px; }
@media (max-width: 760px) {
  .ur-platzzeile { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }
  .ur-platzzeile i:nth-child(n+4) { display: none; }
}
.ur-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.ur-hinweis > .ic { flex: none; width: 16px; height: 16px; color: var(--muted); }
.ur-hinweis > span { flex: 1 1 0; min-width: 12em; }
.class-grid-name-cell .ur-hinweis { align-items: flex-start; font-size: 12px; }
.class-grid-name-cell .ur-hinweis > span { min-width: 0; }
.ur-lauf { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ur-lzwei { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.ur-lzwei[hidden], .ur-bogenplatz[hidden] { display: none; }
.ur-lspalte { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-right: 1px solid var(--line); background: var(--panel); }
.ur-lspalte .pl-spkopf > .ks-back { margin: 0 0 6px -10px; }
.ur-spklasse { margin: 0; padding: 6px 0 0; font-size: 30px; }
.ur-lspalte .ur-spklasse { padding-left: 0; }
.ur-abschritt { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: start; font-size: 14px; }
.ur-abnr { padding-top: 1px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ur-abzeit { display: inline-flex; align-items: center; gap: 4px; padding-top: 1px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ur-abzeit .ks-check-hand { width: 18px; height: 15px; }   
.ur-ablauf { display: flex; flex-direction: column; min-height: 0; }
.ur-ablauf .pl-spliste { min-height: 0; overflow-y: auto; }
.ur-ablauf li.jetzt .ur-abist { color: var(--accent); font-weight: 600; }
.ur-ablauf li.jetzt .ur-abist.ueber { color: var(--status-warnung); }
.ur-ablauf li.war .pl-spname > span { color: var(--muted); }
.ur-abschritt .pl-spname > span > .ic { margin-right: 4px; vertical-align: -2px; color: var(--status-fehler); }
.ur-uhr { padding: 12px 16px 6px; }
.ur-abnach { margin: 0; padding: 0 4px 10px; }
.ur-uhrzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 2px 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ur-uhrzeile b { font-size: 16px; font-weight: 600; color: var(--ink); }
.ur-spunten { margin-top: auto; padding: 8px 8px 10px; border-top: 1px solid var(--line); }
.ur-lblatt { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); }
.ur-buehne { flex: 1; min-height: 0; overflow-y: auto; padding: 30px 48px 24px 44px; }
.ur-bkopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 2px; align-items: start; }
.ur-bkopf > * { grid-column: 1; margin: 0; }
.ur-bphase { display: flex; align-items: baseline; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ur-bphase:focus { outline: none; }
.ur-bphase .ic { align-self: center; margin-right: 6px; color: var(--status-fehler); }
.ur-snr { display: inline-block; flex: none; min-width: 1.4em; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.ur-bsoz { font-size: 14px; color: var(--muted); padding-left: 1.4em; }
.ur-bmarken { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 0 1.4em; }
.ur-marke { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r); background: color-mix(in srgb, var(--ink) 6%, var(--panel));
  color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.ur-bkopf .ur-buhr { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.ur-buhr b { font-size: 44px; line-height: 1; letter-spacing: -.01em; font-weight: 600; color: var(--accent); }
.ur-buhr.ueber b { color: var(--status-warnung); }
.ur-rubrik { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.ur-bimpuls { margin-top: 30px; }
.ur-zeilen.ur-impuls { gap: 16px; max-width: 760px; margin-top: 8px; }
.ur-impuls .ur-wort { font-size: 34px; line-height: 1.2; letter-spacing: -.012em; }
.ur-zeilen.ur-impuls .ur-wort q { font-weight: 400; }   
.ur-zeilen.ur-impuls .ur-tat { font-size: 20px; line-height: 1.3; color: var(--ink); }
.ur-zeilen.ur-impuls .ur-tat::before { content: none; }
p.ur-impuls { margin: 8px 0 0; max-width: 760px; font-size: 34px; line-height: 1.2; }
.ur-stockt { margin-top: 22px; max-width: 60ch; }
.ur-stockt ul { list-style: none; margin: 2px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.ur-stockt b { color: var(--ink); font-weight: 400; }
.ur-bdrei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid var(--line); }
.ur-rub { padding: 14px 20px 0 0; }
.ur-rub + .ur-rub { padding-left: 20px; border-left: 1px solid var(--line); }
.ur-rub.ur-rubmat { grid-column: -2 / -1; }
.ur-bdrei > .ur-rub:first-child:nth-last-child(2) { grid-column: span 2; }   
.ur-punkte { list-style: none; margin: 2px 0 0; padding: 0; font-size: 16px; }
.ur-punkte li { position: relative; padding-left: 14px; }
.ur-punkte li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 4px; height: 4px; border-radius: var(--round); background: var(--muted); }
.ur-rubleer { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.ur-medien { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 2px 0 0 -6px; }
.ur-med { display: inline-flex; align-items: flex-start; gap: 2px; max-width: 100%; }
.ur-medbtn { height: auto; min-height: 36px; white-space: normal; text-align: left; line-height: 1.3; padding-top: 6px; padding-bottom: 6px; justify-content: flex-start; }
.ur-medbtn .ic { color: var(--accent); }
.ur-qrbtn { flex: none; color: var(--muted); }
.ur-mattext { margin: 2px 0 0; font-size: 14px; }
.ur-bfuss { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 12px 48px 14px 44px; border-top: 1px solid var(--line); background: var(--panel); }
.ur-next { display: flex; flex-direction: column; flex: 1; min-width: min(280px, 100%); margin: 0; font-size: 14px; }
.ur-nextwort { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70ch; font-size: 13px; color: var(--muted); }
.ur-bknoepfe { display: flex; align-items: center; gap: 8px; }
.ur-bknoepfe button.primary { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px 0 22px; font-size: 16px; }
.ur-bknoepfe button.primary .ic { width: 18px; height: 18px; flex: none; }
#ur-zurueck[aria-disabled="true"] { color: var(--muted); cursor: default; }
@media (pointer: coarse) { .ur-bknoepfe :is(#ur-zurueck, #ur-weiter) { min-height: 44px; } }
#ur-zurueck[aria-disabled="true"] .ic { color: inherit; }
.ur-bogenplatz { flex: 1; min-height: 0; overflow-y: auto; background: var(--panel); }
@media (max-width: 1179px) {
  .ur-lzwei { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .ur-lspalte { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 16px 6px; overflow: visible;
    border-right: 0; border-bottom: 1px solid var(--line); }
  .ur-lspalte .pl-spkopf { display: flex; align-items: center; gap: 4px 12px; flex: 1 1 0; min-width: min(240px, 100%); padding: 0; }
  .ur-lspalte .pl-spkopf > .ks-back { margin: 0 0 0 -10px; }
  .ur-lspalte .pl-sptitel { min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ur-spklasse { padding: 0; font-size: 20px; }
  .ur-lspalte .pl-spabschnitt { border-top: 0; padding: 0; }
  .ur-ablauf { order: 5; flex-basis: 100%; min-width: 0; }
  .ur-ablauf .pl-sph { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ur-ablauf .pl-spliste { display: flex; gap: 3px; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .ur-ablauf li { flex: var(--ab, 1) 0 auto; }   
  .ur-abschritt { display: flex; align-items: baseline; gap: 6px; padding: 6px 4px 8px; }
  .ur-abschritt :is(.ur-abnr, .pl-spname > small) { display: none; }
  .ur-abschritt .pl-spname > span { white-space: nowrap; }
  .ur-abzeit { display: none; }
  .ur-abschritt { min-width: 0; }
  .ur-ablauf li.war .ur-abschritt { color: var(--muted); }
  .ur-uhr, .ur-abnach { padding: 0; }
  .ur-uhrzeile:not(.ur-uhrrest) { display: none; }
  .ur-uhrzeile { gap: 6px; }
  .ur-spunten { margin: 0; padding: 0; border: 0; }
  #ur-fenster > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   
  .ur-buehne { padding: 20px 24px; }
  .ur-bfuss { padding: 10px 24px 12px; }
  .ur-zeilen.ur-impuls .ur-wort, p.ur-impuls { font-size: 30px; }
  .ur-bdrei { margin-top: 26px; }
}
@media (max-width: 760px) {
  .ur-lspalte { row-gap: 2px; justify-content: flex-end; }
  .ur-lspalte::before { content: ""; order: 3; flex-basis: 100%; height: 0; }
  .ur-lspalte::after { content: ""; order: 4; flex: 1 0 0; height: 0; margin-left: -12px; }
  .ur-lspalte .pl-spkopf { display: contents; }
  .ur-lspalte .pl-spkopf > .ks-back { order: 1; margin-right: auto; }
  .ur-uhr, .ur-abnach, .ur-spunten { order: 2; }
  .ur-lspalte .pl-sptitel { order: 4; flex: 0 1 auto; font-size: 18px; line-height: 1.25; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .ur-spklasse { order: 4; }
  .ur-ablauf { margin-top: 2px; }
  .ur-bdrei { grid-template-columns: minmax(0, 1fr); }
  .ur-rub + .ur-rub { padding-left: 0; border-left: 0; }
  .ur-bdrei > .ur-rub, .ur-rub.ur-rubmat { grid-column: auto; }
  .ur-bkopf { column-gap: 16px; }
  .ur-buhr b { font-size: 32px; }
  .ur-zeilen.ur-impuls .ur-wort, p.ur-impuls { font-size: 24px; }
  .ur-zeilen.ur-impuls .ur-tat { font-size: 17px; }
  .ur-buehne { padding: 16px 16px 20px; }
  .ur-bfuss { padding: 10px 16px 12px; }
}
body.ur-fenster { margin: 0; height: 100vh; display: flex; flex-direction: column; background: var(--panel); color: var(--ink);
  font-family: var(--font);
  --accent: var(--rc-unterricht-accent); --accent-soft: var(--rc-unterricht-soft); }
.ur-fenster .lzr-toast { left: 50%; }
.ur-referent-platz { flex: none; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); background: var(--panel);
  max-height: 74vh; }   
.ur-referent-platz > .ur-referent { min-height: 0; overflow-y: auto; }
.ur-referent-platz:has(> .ur-referent:empty) { display: none; }
.ur-referent-platz .ur-plan-klappe { flex: none; align-self: flex-start; margin: 8px 12px; }
.ur-lauf.ur-plan-zu > .ur-referent-platz { flex: 1 1 auto; min-height: 0; max-height: none; }
.ur-lauf.ur-plan-zu:has(> .ur-referent-platz > .ur-referent:not(:empty)) > :not(.ur-referent-platz) { display: none; }
@media (pointer: coarse) and (max-width: 760px), (pointer: coarse) and (max-height: 520px) { #ur-fenster { display: none; } }
.ur-bogen { container-type: inline-size; }
.ur-naktion { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin: -6px 0 0; padding: 6px 0; background: var(--panel); }
.ur-naktion .ks-back { margin: 0 auto 0 -10px; }
.ur-nh { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.ur-nh:focus { outline: none; }
.ur-klhand { padding-left: 10px; font-family: var(--hand); font-weight: 400; font-size: 26px; line-height: 1; white-space: nowrap; }
.ur-nunter { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0; }
.ur-privat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ur-privat .ic { flex: none; }
.ur-nsatz { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 70ch; }
.ur-npflicht, .ur-nkuer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.ur-npflicht { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ur-npflicht.is-eins, .ur-nkuer.is-eins { grid-template-columns: minmax(0, 1fr); }
.ur-nspalte { padding: 16px 24px 18px 0; display: flex; flex-direction: column; gap: 20px; }
.ur-npflicht > .ur-cov { padding: 16px 0 14px 24px; border-left: 1px solid var(--line); }
.ur-npflicht.is-eins > .ur-nspalte, .ur-npflicht.is-eins > .ur-cov { padding-left: 0; padding-right: 0; border-left: 0; }
.ur-nkuer > .ur-nblock { padding: 18px 24px 0 0; }
.ur-nkuer > .ur-nblock + .ur-nblock { padding: 18px 0 0 24px; border-left: 1px solid var(--line); }
.ur-nkuer.is-eins > .ur-nblock { padding-right: 0; }
.ur-nblock { min-width: 0; }
.ur-nblock > :is(h2, h3, h4):first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px;
  margin: 0 0 6px; font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.ur-nzahl { font-size: 13px; font-weight: 400; color: var(--muted); }
.ur-nfeld { margin-top: 14px; }
.ur-nfeld > :is(h3, h4, h5) { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.ur-ntext { display: block; min-height: 4.6em; margin-top: 4px; margin-right: -6px; font-size: 14px; line-height: 1.5; max-width: 76ch;
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.ur-ntext.is-line { min-height: 1.6em; white-space: normal; }
.ur-nfuss { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 8px 0 0 -12px; }
.ur-nende { display: flex; margin: 24px 0 0 -12px; }
.ur-nrest { list-style: none; margin: 0; padding: 0; }
.ur-nrest li { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; min-height: 32px; font-size: 14px; color: var(--ink); }
.ur-nrest select { font-size: 14px; max-width: 100%; min-width: 0; }
@media (pointer: coarse) { .ur-bogen :is(button, select, .ur-covrow, input[type=date]) { min-height: 40px; } .ur-covrow { align-items: center; } }
.ur-terminrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; }
.ur-terminfeld { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ur-tdatum { font: inherit; font-size: 13.5px; padding: 5px 8px; border: 1px solid var(--edge); border-radius: var(--r);
  background: var(--panel); color: var(--ink); }
.ur-tdatum:hover:not(:disabled, :focus) { border-color: var(--ink); }
.ur-tnr { font-size: 13.5px; }
.ur-terminhint { display: flex; flex-direction: column; gap: 2px; flex-basis: 100%; font-size: 13px; color: var(--muted); }
.ur-terminhint .is-warn { color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); }
.ur-terminhint:empty { display: none; }
.ur-covgrp { margin: 8px 0 0; padding: 0; border: 0; min-width: 0; }
.ur-covkomp { padding: 0; margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.ur-covrow { display: flex; align-items: flex-start; gap: 10px; margin-left: -6px; padding: 5px 6px 6px; border-radius: var(--r);
  font-size: 14px; color: var(--ink); line-height: 1.35; cursor: pointer; }
.ur-covrow:hover { background: var(--field); }
.ur-covrow input { margin-top: 1px; }
.ur-covrow small { display: block; font-size: 12px; color: var(--muted); }
.ur-covleer { margin: 4px 0 10px; font-size: 13px; color: var(--muted); }
.ur-covpick { margin-top: 10px; }   
.ur-covsuche { margin-bottom: 10px; }
.ur-covlist { max-height: 320px; overflow: auto; }
.ur-covneu { display: flex; align-items: flex-start; gap: 6px; width: 100%; text-align: left; font: inherit; font-size: 13px;
  color: var(--ink); background: none; border: 0; border-radius: var(--r); padding: 5px 6px; cursor: pointer; }
.ur-covneu:hover { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.ur-wahlseite .ur-zurueck { margin: 0 0 14px -10px; }
.ur-wahlseite .ur-h1:focus { outline: none; }
.ur-wahl { display: flex; flex-direction: column; gap: 30px; max-width: 560px; margin-top: 22px; }
.ur-wahl .lesson-cell-title { font-size: 20px; }
.ur-wahlbuch { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ur-wahlbuch .ks-onward { margin-left: -12px; }
.ur-ohnedialog input[type=date].ks-frage-feld { width: auto; min-width: 12em; }
.ur-ohnedialog .ur-ohnehint { margin-top: 14px; }
.ur-ohnedialog .ks-frage-fehler:not([hidden]) { margin-top: 6px; }
@container (max-width: 760px) {
  .ur-npflicht, .ur-nkuer { grid-template-columns: minmax(0, 1fr); }
  .ur-nspalte { padding-right: 0; }
  .ur-npflicht > .ur-cov { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .ur-nkuer > .ur-nblock, .ur-nkuer > .ur-nblock + .ur-nblock { padding: 18px 0 0; border-left: 0; }
  .ur-nkuer > .ur-nblock + .ur-nblock { margin-top: 18px; border-top: 1px solid var(--line); }
}
.ur-ztab { border-collapse: collapse; width: 100%; max-width: 560px; margin-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.ur-ztab th, .ur-ztab td { padding: 7px 16px 7px 0; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; font-weight: 400; color: var(--ink); }
.ur-ztab th:first-child { text-align: left; width: 52%; }
.ur-ztab th:last-child, .ur-ztab td:last-child { padding-right: 0; }
.ur-ztab thead th { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.ur-ztab tbody th { font-weight: 600; }
.ur-ztab tfoot :is(th, td) { font-weight: 600; border-bottom: 0; }
.ur-ztab .ueber { color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); font-weight: 600; }
.ur-snr { display: inline-block; min-width: 1.6em; color: var(--muted); font-weight: 400; }
.ur-ztnote { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 60ch; }
.ur-ztnote:empty { display: none; }
@media (max-width: 860px) {
  .ur-ntext { font-size: 16px; }
  .ur-ntext:not(.is-line) { min-height: 96px; }
  .ur-nachwrap { padding-bottom: 90px; }
  .ur-tdatum, .ur-tnr, .ur-covsuche > input, .ur-nrest select { font-size: 16px; }
  .ur-wrap { padding: 24px 18px 40px; }
}
:root { --wa-col-w: 340px; }
:root[data-rail="icons"] { --wa-col-w: 276px; }
@media (width < 1180px) { :root:not([data-rail="words"]) { --wa-col-w: 276px; } }
.wr-root:has(> .wa), .ton-page:has(> .wtb > .wa) { container-type: size; }
.wr-root:has(> .wa) { padding-bottom: var(--sab); }
.wa { display: grid; grid-template-columns: var(--wa-col-w) minmax(0, 1fr); align-items: start; min-height: 100cqh; color: var(--ink); }
.wa-col {
  position: sticky; top: 0; z-index: 1; height: 100cqh; box-sizing: border-box; overflow-y: auto;
  display: flex; flex-direction: column; padding: 22px 26px 22px 22px;
  background: var(--panel); border-right: 1px solid var(--line);
}
.wa-colhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-right: -10px; }
.wa-back { margin-left: -10px; }
.wa-colbtn { flex: none; color: var(--muted); }
.wa-colbtn:hover:not(:disabled) { color: var(--ink); }
@media (pointer: coarse) { .wa-colbtn, .wa-back-zu { min-width: 44px; height: 44px; } }
@media (pointer: coarse) {
  :is(.wtb .wa, body.persona-teen .lx-pop) :is(.ks-secondary, .ks-onward, .primary, .wa-see .wa-link, .lx-see .lx-link,
    .wk-diag-play, .wk-diag-folge, .wk-diag-gross, .wk-diag-beschr, .wk-diag-playm, .wk-diag-rec, .wk-diag-link) { min-height: 44px; }
  :is(.wtb .wa, body.persona-teen .lx-pop) :is(.ks-tabs > [role=tab], .ks-segmented > button, .ks-tool, .ks-search > input,
    .wk-diag-tempo input) { height: 44px; }
}
.wa-back-zu, .wa-title-zu { display: none; }
.wa-title-zu { margin: 0 0 18px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--muted); }
@media (width >= 900px) {
  .wa.is-colzu { grid-template-columns: 56px minmax(0, 1fr); }
  .wa.is-colzu .wa-col { padding: 22px 10px; }
  .wa.is-colzu .wa-col > :not(.wa-colhead), .wa.is-colzu .wa-back { display: none; }
  .wa.is-colzu .wa-colhead { flex-direction: column; justify-content: flex-start; gap: 4px; margin-right: 0; }
  .wa.is-colzu .wa-back-zu { display: inline-flex; }
  .wa.is-colzu .wa-title-zu { display: block; }
}
.wa-title { margin: 18px 0 0; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em;
  hyphens: auto; overflow-wrap: break-word; }
.wa-kurz { margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.wa-tabs { flex-wrap: wrap; margin: 22px 0 0 -8px; }
.wa-choice { flex-wrap: wrap; align-self: flex-start; margin-top: 14px; }
.wa-choice > .wa-miss:not([aria-pressed="true"]) { color: var(--muted); font-weight: 400; }
.wa-tools { display: flex; flex-wrap: wrap; gap: 2px; margin: 10px 0 0 -10px; }
.wa-read { min-width: 0; padding: 34px 40px 56px 44px; overflow-x: clip; }
.wa-read > .wa-text, .wa-read > .wa-see, .wa-read > .wa-note { max-width: 800px; }
.wa-read > .wa-explore { max-width: 1020px; }
.wa-text { font-size: 16px; line-height: 1.6; }
.wa-text :is(p, li) { max-width: 66ch; }
.wa-text p { margin: 0 0 1em; }
.wa-text :is(ul, ol) { margin: 0 0 1em; padding-left: 1.35em; }
.wa-text li { margin-bottom: .35em; }
.wa-text :is(h2, h3, h4) { margin: 1.6em 0 .5em; font-size: 20px; font-weight: 600; line-height: 1.25; }
.wa-text h4 { font-size: 16px; }
.wa-text .wk-kurzfassung { font-weight: 600; }
.wa-text.wa-teacher .wk-sach-text { font-size: inherit; line-height: inherit; }
.wa-text .wk-blick { margin-bottom: 22px; padding-bottom: 12px; }
.wa-link { padding: 0; border: 0; border-radius: 0; background: none; font: inherit; color: var(--ink); cursor: pointer;
  text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.wa-link:hover:not(:disabled) { background: none; text-decoration-style: solid; text-decoration-color: currentColor; }
.wa-off, .wa-link.wa-off { color: var(--muted); cursor: default; text-decoration: none; }
.wa-note { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.wa-read > [data-retry] { margin-left: -10px; }
.wa-see { margin-top: 32px; }
.wa-see h2 { margin: 0; font-size: 14px; font-weight: 600; }
.wa-see ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.wa-see li { display: flex; align-items: center; min-height: 24px; }
.wa-see .wa-link { display: inline-flex; align-items: center; min-height: 24px; }
:root[data-rail="icons"] .wa-read { padding: 26px 22px 40px 26px; }
@media (width < 1180px) { :root:not([data-rail="words"]) .wa-read { padding: 26px 22px 40px 26px; } }
@media (width < 900px) {
  .wa { display: block; min-height: 0; }
  .wa-col { position: static; height: auto; overflow: visible; padding: 16px 16px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .wa-colbtn { display: none; }
  .wa-title { margin-top: 12px; font-size: 26px; }
  .wa-kurz { margin-top: 12px; }
  .wa-tabs { margin-top: 14px; }
  :root .wa-read { padding: 20px 16px 40px; }
}
.wl { padding: 26px 40px 64px 32px; color: var(--ink); }
.wl-kids { padding: 22px 32px 56px; }
.wl-head { display: flex; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; min-height: 40px; }
.wl-head h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.wl-kids .wl-head h1 { font-weight: 700; }
.wl-total { margin: 0; font-size: 14px; color: var(--muted); }
.wl-search { margin-top: 16px; }
.wl-search .ks-search { max-width: 520px; }
.wl-search .ks-search > input { height: 40px; }
.wl-kids .wl-search .ks-search { max-width: none; }
.wl-kids .wl-search .ks-search > input { height: 52px; padding-left: 46px; font-size: 16px; }
.wl-kids .wl-search .ks-search:has(> kbd) > input { padding-right: 52px; }
.wl-kids .wl-search .ks-search > .ic { left: 16px; width: 20px; height: 20px; }
.wl-kids .wl-search .ks-search > kbd { right: 14px; min-width: 26px; height: 26px; font-size: 13px; }
@media (pointer: coarse) { .wl-kids .wl-search .ks-search > kbd { display: none; } }
.wl-hits { display: none; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.wl.is-searching .wl-hits { display: flex; }
.wl-message { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 60ch; margin-top: 28px; font-size: 16px; color: var(--muted); }
.wl-message p { margin: 0; }
.wl-message .ks-secondary { margin-left: -10px; }
.wl-none { display: none; }
.wl.is-none .wl-none { display: flex; }
.wl.is-none .wl-register { display: none; }
.wl-clear { height: 28px; padding: 0 8px; font-size: 13px; color: var(--ink); }
.wl-none .wl-clear { margin-left: -8px; }
.wl-kids .wl-clear { height: 44px; padding: 0 12px; font-size: 14px; }
.wl-kids .wl-none .wl-clear { margin-left: -12px; }
.wl-register { margin-top: 26px; columns: 4 230px; column-gap: 40px; }
.wl-group { break-inside: avoid; margin: 0 0 24px; }
.wl-group-title { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 0 0 6px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 600; line-height: 1.3; break-after: avoid; }
.wl-kids .wl-group-title { font-size: 16px; font-weight: 700; }
.wl-count { font-size: 13px; font-weight: 400; color: var(--muted); }
.wl-toggle { display: none; margin-left: auto; align-self: center; color: var(--muted); }
.wl-items { list-style: none; margin: 6px -8px 0; padding: 0; }
.wl-entry { display: block; width: 100%; padding: 4px 8px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; hyphens: auto; cursor: pointer;
  transition: background-color .15s; }
.wl-kids .wl-entry { padding: 11px 8px; font-size: 16px; }   
.wl-entry:hover { background: var(--field); }
.wl-entry:active { background: var(--field-pressed); }
.wl-entry-short { display: none; }
.wl-loading { gap: 14px; width: min(100%, 720px); max-width: none; }
.wl-bar { display: block; height: 14px; border-radius: var(--r-small); background: var(--field); }
.wl.is-searching .wl-register { columns: auto; max-width: 760px; }
.wl.is-searching .wl-group { margin-bottom: 26px; }
.wl.is-searching .wl-group-title { border-bottom: 0; padding-bottom: 4px; }
.wl.is-searching .wl-items { margin: 0; }
.wl.is-searching .wl-items > li { border-top: 1px solid var(--line); }
.wl.is-searching .wl-entry { width: calc(100% + 16px); margin: 0 -8px; padding: 10px 8px; }
.wl.is-searching .wl-entry-title { display: block; font-size: 16px; font-weight: 600; }
.wl-kids.is-searching .wl-entry-title { font-weight: 700; }
.wl.is-searching .wl-entry-short { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.wl.is-searching .wl-entry:active .wl-entry-short { color: var(--ink); }
@media (max-width: 1179px) {
  .wl:not(:where(.wl-kids)) { padding: 22px 28px 56px 24px; }   
  .wl-register { columns: 3 220px; column-gap: 32px; }
}
@media (max-width: 759px) {
  .wl, .wl-kids { padding: 16px 16px 48px; }
  .wl-head h1 { font-size: 26px; }
  .wl-register { columns: auto; margin-top: 18px; }
  .wl-group { margin-bottom: 0; }
  .wl-group-title { align-items: center; min-height: 48px; padding: 0; cursor: pointer; }
  .wl-toggle { display: inline-flex; min-width: 44px; height: 44px; margin-right: -10px; }
  .wl-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .wl-group.is-closed .wl-items { display: none; }
  .wl-items { margin: 4px -8px 14px; }
  .wl.is-searching .wl-group-title { min-height: 0; padding: 0 0 4px; cursor: default; }
  .wl.is-searching .wl-toggle { display: none; }
  .wl.is-searching .wl-group.is-closed .wl-items { display: block; }
}
.wr-root { min-height: 100%; }
.lzr-root { min-height: 100%; }
.lzr-wrap { max-width: 1500px; margin: 0 auto; padding: 26px 36px 64px; display: flex; flex-direction: column; gap: 22px; }
.lzr-h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.lzr-sub { margin: 5px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.lzr-sub b { color: var(--ink); font-weight: 600; }
.lzr-vhead { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lzr-vhead > div { flex: 1; min-width: min(240px, 100%); }
.lzr-emojiwrap { position: relative; }
.lzr-pop.lzr-emojipop { left: 0; top: 46px; width: 330px; max-width: min(330px, 88vw); }
.lzr-emojigrid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; }
.lzr-emojiopt { min-height: 32px; border: 0; background: none; font-size: 21px; line-height: 1; padding: 5px 0; border-radius: var(--r); cursor: pointer; }
.lzr-emojiopt:hover { background: var(--field); }
.lzr-emojiopt[aria-pressed="true"] { background: var(--accent-soft); }
.lzr-sec { display: flex; flex-direction: column; gap: 12px; }
.lzr-sechead { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.lzr-sectitle { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.lzr-pill { font-size: 12px; font-weight: 600; border-radius: var(--r); padding: 3px 10px; background: var(--accent-soft); color: var(--accent); }
.lzr-pill.mut { background: color-mix(in srgb, var(--muted) 12%, var(--panel)); color: var(--muted); }
.lzr-pill.gr { background: var(--status-ok-soft); color: var(--status-ok); }
.lzr-empty { color: var(--muted); font-size: 13.5px; padding: 12px 4px; }
.lzr-stnenner { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.lzr-stfuss { margin: 9px 2px 0; font-size: 12px; color: var(--muted); }
.lzr-prcard { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 10px; }
.lzr-prhead, .lzr-prrow { display: grid;
  grid-template-columns: minmax(120px, 1fr) 176px 196px 108px 132px;
  align-items: center; gap: 12px; }
.lzr-prhead { font-size: 10.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; padding: 0 5px 5px; }
.lzr-prgrp { margin-bottom: 10px; }
.lzr-prgrp > b { display: block; font-size: 12px; color: var(--muted); padding: 7px 5px 3px; }
.lzr-prrow { min-height: 34px; padding: 2px 5px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, var(--panel)); }
.lzr-prgrp .lzr-prrow:last-child { border-bottom: none; }
.lzr-prname { font-size: 13px; color: var(--ink); display: flex;
  align-items: baseline; gap: 7px; min-width: 0; }
.lzr-prname small { font-size: 10.5px; color: var(--muted); flex: none; }
.lzr-prseg.ks-segmented > button { flex: 1; justify-content: center; padding: 0 8px; }
.lzr-prwahl { display: contents; }   
.lzr-prwort { display: none; }
.lzr-prfolge { display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--muted); }
.lzr-prrow.ueben .lzr-prfolge { color: var(--accent); }   
.lzr-prrow.tragen .lzr-prfolge { color: var(--status-ok); }
.lzr-prrow.seltener .lzr-prfolge { color: var(--muted); }
.lzr-pralt { font-style: normal; font-weight: 500; font-size: 10.5px; color: var(--muted);
  white-space: nowrap; }
.lzr-prbel { font-size: 11px; color: var(--muted); text-align: right; }
.lzr-prgen { font-weight: 700; color: var(--accent); margin-right: 7px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel)); border-radius: var(--r); padding: 1px 7px; }
#si-pop { position: fixed; inset: 0; z-index: 94; background: rgba(20,26,40,.45);
  display: flex; align-items: center; justify-content: center; }
.si-box { width: min(1180px, 96vw); max-height: 92vh; overflow-y: auto;
  font-family: var(--font); }
.si-eingabe { width: min(720px, 94vw); }
.si-sub { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
#si-text { width: 100%; box-sizing: border-box; font: inherit; font-size: 13.5px;
  line-height: 1.5; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); resize: vertical; }
#si-text.drop { border-color: var(--gruen); background: color-mix(in srgb, var(--gruen) 6%, var(--panel)); }
.si-zeile { display: flex; gap: 12px; align-items: flex-end; margin: 10px 0 4px; flex-wrap: wrap; }
.si-zeile label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); flex: 1; min-width: 190px; }
.si-zeile input { font: inherit; font-size: 13px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: var(--r); }
.si-datei { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: none; padding: 7px 12px; cursor: pointer; }
.si-formate { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.si-teil { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; min-height: 0; }
.si-teil:empty { margin-top: 0; }
.si-tz { font-size: 12px; color: var(--muted); background: var(--field); border-radius: var(--r); padding: 3px 11px; }
.si-tz.stark { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--gruen) 13%, var(--panel)); }
.si-tstueck { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.si-hinweis.err { color: var(--status-fehler); background: color-mix(in srgb, var(--status-fehler) 9%, var(--panel)); }
.si-haltbtn { background: var(--field); color: var(--ink); }
.si-warn { font-size: 12.5px; color: var(--status-warnung); background: color-mix(in srgb, var(--bernstein) 12%, var(--panel));
  border-radius: var(--r); padding: 8px 11px; display: flex; align-items: center; gap: 7px; margin: 12px 0 0; }
.si-grad { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin: 10px 0 0; }
.si-gradlab { font-size: 12.5px; color: var(--muted); margin-right: 10px; }
.si-gradbtn { font: inherit; font-size: 12.5px; padding: 6px 13px; min-height: 0;
  border: 1.5px solid var(--line); border-right-width: 0; background: var(--panel); color: var(--muted);
  cursor: pointer; }
.si-gradbtn:first-of-type { border-radius: var(--r) 0 0 var(--r); }
.si-gradbtn:last-of-type { border-radius: 0 var(--r) var(--r) 0; border-right-width: 1.5px; }
.si-gradbtn.an { background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink); font-weight: 600; }
.si-gradbtn.an + .si-gradbtn { border-left-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.si-gradinfo { font-size: 12px; color: var(--status-warnung); margin: 7px 0 0; min-height: 0; display: none; }
.si-gradinfo.an { display: block; }
.si-hinw-offen { font-size: 12.5px; color: var(--status-warnung);
  background: color-mix(in srgb, var(--bernstein) 12%, var(--panel)); border-radius: var(--r);
  padding: 8px 11px; display: flex; align-items: center; gap: 7px; margin: 0 0 12px; }
.si-modul { margin: 8px 0 0; padding: 7px 10px; border: 1.5px dashed var(--line);
  border-radius: var(--r); background: var(--field); }
.si-modul.an { border-style: solid; background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.si-modulwahl { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.si-modultitel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.si-modulmin { font-size: 12px; color: var(--muted); margin-left: auto; }
.si-modulwarum { font-size: 12px; color: var(--muted); font-style: italic; margin: 4px 0 0 26px; }
.si-modulhint { font-size: 11.5px; color: var(--muted); margin: 3px 0 0 26px; }
.si-modul.an .si-modulhint { color: var(--status-warnung); }
.si-status { font-size: 12.5px; color: var(--muted); min-height: 20px; margin-top: 8px; }
.si-status.err { color: var(--status-fehler); font-weight: 600; }
.si-spin { display: inline-block; width: 11px; height: 11px; border: 2px solid var(--line);
  border-top-color: var(--status-ok); border-radius: var(--round); animation: si-dreh .8s linear infinite; }
@keyframes si-dreh { to { transform: rotate(360deg); } }
.si-hinweise { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.si-hinweis { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  color: var(--status-warnung); background: color-mix(in srgb, var(--bernstein) 12%, var(--panel)); border-radius: var(--r); padding: 4px 12px; }
.si-duo { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 18px; align-items: start; }
.si-lab { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 7px; display: flex; align-items: center; gap: 10px; }
.si-lab small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.si-lab input { flex: 1; font: inherit; font-size: 13.5px; font-weight: 600; text-transform: none;
  letter-spacing: 0; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r); padding: 5px 9px; }
.si-quelle { max-height: 62vh; overflow-y: auto; font-size: 12.5px; line-height: 1.5; color: var(--muted);
  background: var(--field); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; white-space: pre-wrap; }
.si-quelle p { margin: 0 0 10px; border-radius: var(--r); transition: background .2s ease; }
.si-quelle p.hell { background: color-mix(in srgb, var(--bernstein) 22%, var(--panel)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--bernstein) 22%, var(--panel)); }
.si-schritt { border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 10px; cursor: default; }
.si-skopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.si-phase { flex: 1; min-width: 120px; font: inherit; font-size: 13px; font-weight: 700;
  border: 0; border-bottom: 1.5px solid var(--line); padding: 3px 2px; background: none; }
.si-zeit { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; }
.si-zeit input { width: 48px; font: inherit; font-size: 12.5px; text-align: right;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 3px 5px; }
.si-zeit.geraten input { border-color: color-mix(in srgb, var(--status-warnung) 55%, var(--line));
  background: color-mix(in srgb, var(--bernstein) 9%, var(--panel)); }
.si-zeit i { font-style: normal; font-size: 11px; color: var(--status-warnung); }
.si-soz { display: inline-flex; gap: 3px; }
.si-sozb { font: inherit; font-size: 11.5px; border: 1px solid var(--line); background: none;
  border-radius: var(--r); padding: 2px 9px; cursor: pointer; color: var(--muted); }
.si-sozb.on { background: #1668b3; border-color: #1668b3; color: #fff; font-weight: 600; }
.si-marke { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: var(--r);
  background: color-mix(in srgb, var(--bernstein) 16%, var(--panel)); color: var(--status-warnung); }
.si-marke.weich { background: none; color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.si-weg { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; }
.si-weg:hover { color: var(--status-fehler); }
.si-scols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.si-slab { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.si-slab.g { color: var(--gruen); }
.si-slab.klein { margin-top: 8px; font-size: 11px; opacity: .85; }
.si-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.si-liste .si-wort q { quotes: '\201E' '\201C'; font-weight: 600; }
:lang(en) .si-liste .si-wort q { quotes: '\201C' '\201D'; }
.si-liste .si-tat { font-size: .92em; color: var(--muted); }
.si-liste .si-tat::before { content: '·'; margin-right: 6px; color: var(--muted); }
.si-erw li { color: var(--muted); font-style: italic; }
.si-mat { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.si-stunde + .si-stunde { margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.si-sthead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.si-stnr { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.si-sttitel { flex: 1; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 5px 9px; }
.si-stdauer { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--muted); }
.si-stdauer input { width: 52px; font: inherit; font-size: 12.5px; text-align: right;
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 4px 5px; }
.si-nstd { font-size: 11.5px; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--status-warnung); background: color-mix(in srgb, var(--bernstein) 14%, var(--panel)); border-radius: var(--r); padding: 2px 10px; }
.si-lzblock, .si-fehlt { margin-top: 16px; }
.si-lz { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.si-lzgrp { display: inline-flex; gap: 2px; }
.si-grpb { font: inherit; font-size: 11px; border: 1px solid var(--line); background: none;
  border-radius: var(--r); padding: 2px 6px; cursor: pointer; color: var(--muted); }
.si-grpb.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.si-lztext { flex: 1; font: inherit; font-size: 12.5px; border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 5px 9px; }
.si-herk { font-size: 11px; color: var(--muted); white-space: nowrap; }
.si-herk.neu { color: var(--status-warnung); font-weight: 700; }
.si-fzeile { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 11px; margin-bottom: 6px; }
.si-fzeile p { margin: 0; flex: 1; color: var(--muted); white-space: pre-wrap; }
.si-doch { font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: var(--r);
  background: none; padding: 3px 11px; cursor: pointer; white-space: nowrap; }
.si-doch:hover { border-color: var(--gruen); color: var(--gruen); }
.si-kosten { font-size: 12px; color: var(--muted); margin-left: 12px; }
@media (max-width: 860px) {
  .si-duo, .si-scols { grid-template-columns: 1fr; }
  .si-quelle { max-height: 30vh; }
}
.ur-zeilen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.ur-zeilen li { line-height: 1.35; }
.ur-zeilen .ur-wort q { font-weight: 600; quotes: '\201E' '\201C'; }
:lang(en) .ur-zeilen .ur-wort q { quotes: '\201C' '\201D'; }
.ur-zeilen .ur-tat { font-size: 0.82em; color: var(--muted); font-weight: 400; }
.ur-zeilen .ur-tat::before { content: '·'; margin-right: 7px; color: var(--muted); }
#lzr-body > .lzr-sec + .lzr-sec { margin-top: 26px; }
.lzr-lvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.lzr-lvcard { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); font: inherit; cursor: pointer; transition: transform .16s var(--bounce), border-color .16s ease, box-shadow .16s ease; }
.lzr-lvcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--live-text) 42%, var(--line)); box-shadow: var(--shadow); }
.lzr-lvcard:active { transform: translateY(0) scale(.995); }
.lzr-lvcard[disabled] { cursor: default; opacity: .55; }
.lzr-lvico { flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--field); color: var(--muted); }
.lzr-lvico svg { width: 20px; height: 20px; }
.lzr-lvcard:hover .lzr-lvico { background: color-mix(in srgb, var(--live-text) 10%, var(--panel)); color: var(--live-text); }
.asg-tcard:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); box-shadow: var(--shadow); }
.asg-tcard:hover .lzr-lvico { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.lzr-lvtext { min-width: 0; }
.lzr-lvtext b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lzr-lvtext small { display: block; font-size: 12.5px; color: var(--muted); }
.lzr-uebersicht { gap: 0; padding-top: 26px; }
.lzr-uebersicht .lzr-h1 { font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.lzr-uebersicht .lzr-sub { margin-top: 8px; font-size: 15px; color: var(--ink); }
.lzr-gitter { grid-template-columns: minmax(120px, 190px) minmax(0, 1.3fr) minmax(0, 1fr) auto; margin-top: 26px; }
.lzr-gitter .class-grid-head > :last-child { padding: 0; }
.lzr-stand { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.lzr-klink { padding: 0; border: 0; font: inherit; line-height: inherit; color: inherit; text-align: left; }
.lzr-klink:hover:not(:disabled) { background-color: transparent; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.lzr-krow { position: relative; }
.lzr-klink::before { content: ""; position: absolute; inset: 0; }
.lzr-krow :is(button, a[href], select, input):not(.lzr-klink) { position: relative; z-index: 1; }
.lzr-gitter .class-grid-sub { display: flex; align-items: center; gap: 6px; }
.lzr-kzeichen { font-size: 15px; line-height: 1; }
.lzr-zugang { margin: 8px 0 0; }
.lzr-zugang[hidden] { display: none; }
.lzr-col-next { display: flex; flex-direction: column; align-items: flex-start; }
.lzr-col-next > p { margin: 0; }
.lzr-col-next > .state-mark { margin-top: 6px; }
.lzr-col-next > .lzr-nst-titel { margin-top: 6px; font-size: 18px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.lzr-nst-weg { margin: 6px 0 0 -12px; }
.lzr-nst-weg.ks-secondary { margin-left: -10px; }
.lzr-col-weg { display: flex; align-items: flex-start; padding-right: 0; }
.lzr-oeffnen { margin-top: -6px; }
.lzr-zettel { margin: -8px -10px; padding: 10px 12px 12px; }
.lzr-zettel-titel { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.lzr-zettel ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lzr-zettel li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.lzr-werk {
  max-width: 100%; min-height: 26px; padding: 0; border: 0; font-weight: 600; color: var(--ink); text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lzr-werk:hover:not(:disabled) { background-color: transparent; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lzr-wer { font-size: 13px; color: color-mix(in srgb, var(--ink) 72%, var(--attention)); }
.lzr-zettel-mehr { margin: 4px 0 0 -6px; min-height: 28px; padding: 2px 6px; font-size: 13px; font-weight: 600; }
.lzr-zettel-mehr:hover:not(:disabled) { background-color: color-mix(in srgb, var(--ink) 8%, var(--attention)); }
.lzr-neu { margin: 14px 0 0 -10px; }
.lzr-keine { margin-top: 22px; }
.lzr-keine .ks-secondary { margin: 6px 0 0 -10px; }
.lzr-leise { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.lzr-ladefehler { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 18px 0 0; font-size: 14px; }
.lzr-ladefehler[hidden] { display: none; }
.lzr-sec > .lzr-ladefehler { margin-top: 0; }   
.lzr-ladefehler > .ic { flex: none; width: 18px; height: 18px; color: var(--status-warnung); }
.lzr-ladefehler .ks-secondary { margin-left: 4px; }
.lzr-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.lzr-band > [data-lzr-zusatz]:empty { display: none; }
.lzr-bandh { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.lzr-bandh .lzr-stand { margin-left: 4px; }
.lzr-bandsatz { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.lzr-bandsatz b { font-weight: 600; }
.lzr-bandteil > .lzr-leise { margin-top: 8px; }
.lzr-rubrik { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lzr-phasen { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lzr-phasen li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; }
.lzr-phasen b { font-weight: 600; }
.lzr-bahn { grid-row: 2; grid-column: 1 / -1; position: relative; height: 6px; background: var(--field); }
.lzr-bahn i { display: block; height: 100%; background: var(--accent); }
.lzr-bahn s { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); }
.lzr-richt { grid-row: 1; grid-column: 2; font-size: 12px; color: var(--muted); }
@media (forced-colors: active) { .lzr-bahn { border: 1px solid CanvasText; } .lzr-bahn i, .lzr-bahn s { background: CanvasText; } }
.lzr-raumwahl > summary { display: inline-flex; margin: 6px 0 0 -12px; list-style: none; cursor: pointer; }
.lzr-raumwahl > summary::-webkit-details-marker { display: none; }
.lzr-raumwahl .lzr-auf, .lzr-raumwahl[open] .lzr-zu { display: none; }
.lzr-raumwahl[open] .lzr-auf { display: inline; }
.lzr-raumwahl > .lzr-leise { margin-top: 4px; }
.lzr-kreuze { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.lzr-kreuze > legend { margin-bottom: 2px; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.lzr-kreuze > div { display: flex; flex-wrap: wrap; gap: 0 14px; }
.lzr-kreuze label { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-size: 14px; cursor: pointer; }
.lzr-datenknopf { margin: 8px 0 0 -10px; }
.lzr-neudialog .ks-frage-label { display: block; margin-top: 12px; }
.lzr-neudialog #lzr-neu-jhinweis { margin-top: 4px; }
@media (max-width: 1279px) {
  .lzr-gitter { grid-template-columns: 118px minmax(0, 1.3fr) minmax(0, 1fr) auto; }
  .lzr-gitter .class-grid-head > :not(:first-child) { padding-left: 10px; padding-right: 10px; }
  .lzr-gitter .class-grid-cell { padding: 14px 10px 12px; }
  .lzr-gitter .class-grid-name.is-long { font-size: 26px; }
  .lzr-gitter .class-grid-name.is-longer { font-size: 20px; }
  .lzr-oeffnen > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lzr-oeffnen { padding: 0 8px; }
  .lzr-band { gap: 28px 28px; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .lzr-gitter { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
  .lzr-gitter .class-grid-head > :first-child { display: none; }
  .lzr-gitter .class-grid-name-cell { grid-column: 1 / -1; flex-flow: row wrap; align-items: baseline; gap: 2px 18px; padding: 14px 0 6px; }
  .lzr-gitter .class-grid-name-cell + .class-grid-cell { border-left-color: transparent; padding-left: 0; }
  .lzr-gitter .class-grid-head > :nth-child(2) { padding-left: 0; }
  .lzr-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lzr-uebersicht { padding: 20px 16px 40px; }
  .lzr-uebersicht .lzr-h1 { font-size: 24px; }
  .lzr-gitter { margin-top: 18px; }
  .lzr-gitter .class-grid-cell { padding: 8px 0 12px; }
  .lzr-gitter .class-grid-cell.lzr-col-post:has(> .ks-sr:last-child) { padding: 0; }
  .lzr-gitter .lzr-col-post:has(> .ks-sr:last-child) > h3.ks-sr {
    position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .lzr-zettel { margin: 0 -4px; }
  .lzr-col-weg { padding: 0 0 8px; }
  .lzr-oeffnen { margin: 0 0 0 -12px; padding: 0 10px 0 12px; }
  .lzr-oeffnen > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .lzr-band { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
}
.lzr-back { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: var(--r); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); border: 1.5px solid var(--line); background: var(--panel); cursor: pointer; transition: transform .14s cubic-bezier(.34,1.4,.5,1), border-color .14s ease, color .14s ease; }
.lzr-back:hover { transform: translateY(-2px); color: var(--accent); border-color: color-mix(in srgb, var(--rc-lehrerzimmer) 34%, var(--line)); }
.lzr-klasse { gap: 0; }
.lzr-oben { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-left: -10px; }
.lzr-postsatz { font-size: 13px; color: var(--muted); }
.lzr-kkopf { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px 24px; margin-top: 14px; }
.lzr-kkopf-links { flex: 1; min-width: min(280px, 100%); }
.lzr-ktitel { display: flex; align-items: center; gap: 4px; }
.lzr-klasse .lzr-h1 { min-width: 0; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lzr-emojibtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -8px;
  padding: 0; border: 0; border-radius: var(--r); background: none; font-size: 26px; line-height: 1; cursor: pointer; }
.lzr-emojibtn:hover, .lzr-emojibtn[aria-expanded="true"] { background: var(--field); }
.lzr-angaben { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.lzr-angaben > span + span::before { content: "·"; margin: 0 8px; }
.lzr-angaben b { color: var(--ink); font-weight: 600; }
.lzr-angaben > .lzr-offen { margin-left: 18px; gap: 6px; font-size: 14px; font-weight: 400; color: var(--ink); }
.lzr-angaben > .lzr-offen::before { content: none; }
.lzr-angaben > .lzr-offen[hidden] { display: none; }
.lzr-jahrgang select { height: 30px; font-size: 14px; }
.lzr-kkopf-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lzr-reiter { flex-wrap: wrap; margin-top: 22px; padding-left: 0; border-bottom: 1px solid var(--line); }
.lzr-reiter > [role=tab]:first-child { margin-left: -8px; }
.lzr-reiter > [role=tab] { font-size: 15px; }
.lzr-klasse #lzr-body { margin-top: 24px; }
.lzr-sech { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.lzr-zahl { font-size: 13px; font-weight: 400; color: var(--muted); }
.lzr-satz { margin: 0; max-width: 90ch; font-size: 14px; line-height: 1.45; color: var(--muted); }
.lzr-satz > b { color: var(--ink); font-weight: 600; }
.lzr-pop { position: absolute; left: 0; top: calc(100% + 8px); width: 400px; max-width: min(400px, 82vw); z-index: 45; background: var(--raised); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.lzr-pop[hidden] { display: none; }
.lzr-poph { font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 4px 0; }
.lzr-poprow { display: flex; gap: 7px; }
.lzr-popfree { flex: 1; min-width: 0; padding: 9px 12px; border-radius: var(--r); border: 1px solid var(--edge); background: var(--panel); color: var(--ink); font: inherit; font-size: 13.5px; }
.lzr-popfree:hover:not(:focus) { border-color: var(--ink); }
.lzr-kinder { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.lzr-kinder thead th { padding: 0 16px 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.lzr-kinder tbody > tr > * { height: 50px; padding: 4px 16px 4px 0; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; font-weight: 400; }
.lzr-kname { width: 22%; }
.lzr-kind { min-height: 24px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.lzr-kinder tbody > tr:hover .lzr-kind, .lzr-kind:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lzr-kzahl { width: 13%; color: var(--muted); }
.lzr-kzahl b { color: var(--ink); font-weight: 400; }
.lzr-knotiz { width: 44%; }
.lzr-notizfeld { display: block; min-height: 24px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.lzr-kinder tbody > tr > .lzr-kauf { width: 40px; padding-right: 0; text-align: right; }
.lzr-kauf-knopf { color: var(--muted); }
.lzr-logins { align-self: flex-start; margin-left: -10px; }
@media (pointer: coarse) { .lzr-kind, .lzr-lvtitel { min-height: 44px; } .lzr-notizfeld { min-height: 40px; padding-top: 10px; padding-bottom: 10px; } }
@media (max-width: 600px) {
  .lzr-kinder thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lzr-kinder, .lzr-kinder tbody, .lzr-kinder tbody > tr, .lzr-kinder tbody > tr > * { display: block; width: auto; }
  .lzr-kinder tbody > tr { position: relative; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .lzr-kinder tbody > tr > * { height: auto; padding: 2px 48px 2px 0; border: 0; }
  .lzr-kinder td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
  .lzr-kinder td.lzr-knotiz::before { display: block; }
  .lzr-kinder tbody > tr > .lzr-kauf { position: absolute; top: 8px; right: 0; padding: 0; }
}
.lzr-lvliste { margin: 6px 0 0; padding: 0; list-style: none; }
.lzr-lvliste > li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 46px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lzr-lvliste > li > .ic { flex: none; width: 18px; height: 18px; color: var(--muted); }
.lzr-lvtitel { min-width: 0; min-height: 24px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.lzr-lvtitel:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lzr-lvliste > li > .lzr-leise { margin-left: auto; }
.lzr-skala { display: inline-flex; align-items: center; gap: 4px; }
.lzr-sdot { width: 24px; height: 24px; border-radius: var(--round); border: 1px solid var(--edge); background: var(--panel); padding: 0; cursor: pointer; transition: background-color .13s ease, border-color .13s ease; }
button.lzr-sdot:hover:not(.on) { background: var(--field); border-color: var(--edge); }   
.lzr-sdot.on { background: var(--accent); border-color: var(--accent); }
.lzr-skala.big .lzr-sdot { width: 26px; height: 26px; }
.lzr-skala.ro .lzr-sdot { cursor: default; width: 15px; height: 15px; }
.lzr-skala.ro small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.lzr-bilanzz { margin: 0; font-size: 13.5px; line-height: 1.4; }
.lzr-bilanzz b { font-weight: 600; }
.lzr-bilanzh { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.lzr-none { color: var(--muted); }
dialog.ur-abnahme { width: min(760px, calc(100vw - 32px)); box-sizing: border-box; }
.ur-abnahme .ur-abnahmehint { margin-top: 12px; }
.ur-nrlist { margin: 6px -10px 0; }
.ur-nrblock { padding: 11px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, var(--panel)); }
.ur-nrblock:last-child { border-bottom: none; }
.ur-nrsatz { margin: 0 0 7px; font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.ur-nrziele { display: flex; flex-wrap: wrap; gap: 7px; }
.ur-nrziel { display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: color-mix(in srgb, var(--accent) 55%, var(--ink)); border: 1.5px solid transparent;
  background: color-mix(in srgb, var(--accent) 9%, var(--panel)); border-radius: var(--r); padding: 4px 12px 4px 8px; }
.ur-nrziel input { flex: none; width: 15px; height: 15px; margin: 0; }
.ur-nrziel i { font-style: normal; font-size: 10.5px; font-weight: 600; color: color-mix(in srgb, var(--status-warnung) 60%, var(--ink));
  background: color-mix(in srgb, var(--status-warnung) 18%, var(--panel)); border-radius: var(--r); padding: 1px 7px; }
.ur-nrziel.unsicher { color: var(--muted); background: color-mix(in srgb, var(--ink) 4%, var(--panel)); border-color: var(--line); }
.ur-nrziel.unsicher input::before { background: var(--muted); }
.ur-rmrow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0 0; }
.ur-rmrow > .ks-secondary { margin-left: -12px; }
.ur-rmhint { font-size: 13px; color: var(--muted); max-width: 46ch; }
.ur-rmblock { display: flex; flex-direction: column; gap: 5px; }
.ur-rmziel { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.ur-rmziel input { flex: none; width: 16px; height: 16px; margin: 0; }
.ur-rmname { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ur-rmwert { font-size: 11.5px; font-weight: 600; border-radius: var(--r); padding: 2px 9px;
  background: color-mix(in srgb, var(--muted) 11%, var(--panel)); color: var(--muted); }
.ur-rmwert.w1 { background: color-mix(in srgb, var(--accent) 13%, var(--panel)); color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.ur-rmwert.w-1 { background: color-mix(in srgb, var(--status-fehler) 13%, var(--panel)); color: color-mix(in srgb, var(--status-fehler) 60%, var(--ink)); }
.ur-rmbeleg { margin: 0 0 0 25px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.ur-rmrest { padding: 11px 10px 0; }
.ur-rmrest b { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.ur-rmrest p { margin: 0 0 3px; font-size: 12.5px; color: var(--muted); }
dialog.lzr-dlg { width: min(720px, calc(100vw - 32px)); box-sizing: border-box; }
.lzr-dlgkopf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: -6px 0 6px; }
p.lzr-dlgkopf > span + span::before { content: "·"; margin-right: 8px; }
.lzr-eindruck { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.lzr-dlgteil { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.lzr-dlg .lzr-dlgteil > h3 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); }
.lzr-dlg .lzr-dlgteil > h3 > .ic { width: 16px; height: 16px; color: var(--muted); }
.lzr-dlgliste { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.lzr-dlgliste > li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; overflow-wrap: anywhere; }
.lzr-dlgliste > li > .ic { flex: none; width: 16px; height: 16px; color: var(--muted); }
.lzr-kidcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.lzr-kidnote { min-height: 72px; margin-left: -8px; }
.lzr-werkoeffnen { margin: 4px 0 0 -12px; }
.lzr-raterow > button { height: 34px; }
.lzr-dlg menu { flex-wrap: wrap; row-gap: 4px; }
.lzr-beobneu { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lzr-beobneu .lzr-beobfeld { flex: 1 1 200px; width: auto; min-width: 0; }
.lzr-beobliste { display: flex; flex-direction: column; gap: 2px; max-height: 190px; overflow-y: auto; }
.lzr-beobrow { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.lzr-beobtag { flex: none; width: 44px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lzr-beobtext { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lzr-beobweg { flex: none; color: var(--muted); }
@media (max-width: 700px) {
  .lzr-kidcols { grid-template-columns: minmax(0, 1fr); }
  .lzr-skala .lzr-sdot, .lzr-skala.big .lzr-sdot { min-width: 0; min-height: 0; width: 34px; height: 34px; }
}
.lzr-toast { position: fixed; left: calc(50% + (var(--lzr, 0px) - var(--lzs, 0px)) / 2); bottom: 26px; z-index: 90; display: flex; align-items: center; gap: 8px;
  max-width: min(560px, calc(100vw - 32px)); box-sizing: border-box; padding: 10px 16px; border-radius: var(--r);
  background: var(--raised); color: var(--ink); box-shadow: var(--shadow); font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1.35;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(2px); }
.lzr-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition: opacity .15s ease-out, transform .15s ease-out; }
.lzr-toast > .ic { flex: none; width: 18px; height: 18px; color: var(--status-fehler); }
.lzr-toast.ks-toast-ok > .ic { color: var(--status-ok); }
.lzr-toast .ks-toast-retry { flex: none; margin-left: 8px; font-size: 14px; }
.lzr-toast.ks-toast-alert { padding-right: 6px; pointer-events: auto; }
.lzr-toast .ks-toast-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 4px; padding: 0; color: var(--ink); }
.lzr-toast { width: max-content; flex-wrap: wrap; max-width: min(560px, calc(100vw - 32px - var(--lzr, 0px) - var(--lzs, 0px))); }
.lzr-toast > span { flex: 1 1 0; min-width: 0; }
@media (max-width: 520px) {
  .lzr-toast > span { flex-basis: calc(100% - 70px); }
  .lzr-toast .ks-toast-x { order: 2; }
  .lzr-toast .ks-toast-retry { order: 3; margin-left: 16px; }
}
@media (max-width: 900px) {
  .lzr-wrap { padding: 20px 16px 48px; }
  .lzr-pop { left: 0; }
  .lzr-prhead { display: none; }
  .lzr-prrow { grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 8px 5px; }
  .lzr-prwahl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .lzr-prwort { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
  .lzr-prname { grid-column: 1 / -1; }
  .lzr-prbel { text-align: right; }
}
.bib-liveic { display: inline-block; width: 11px; height: 11px; border-radius: var(--round); background: var(--live-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live-text) 22%, transparent); flex: none; }
.bib-folder.bib-live .bib-fname { color: var(--live-text); font-weight: 800; }
.bib-lshead { grid-column: 1 / -1; font-size: 12.5px; font-weight: 800; color: var(--muted); margin: 6px 2px 0; }
.bib-lscard .bib-prev { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--live-text) 8%, var(--panel)); }
.bib-lspulse { width: 14px; height: 14px; border-radius: var(--round); background: var(--live-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live-text) 22%, transparent); animation: tonPulse 1.5s ease-in-out infinite; }
.bib-lsdel { border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: var(--r); padding: 2px 6px; }
.bib-lsdel:hover { background: color-mix(in srgb, var(--live-text) 12%, transparent); color: var(--ink); }
.se-lsmenu { position: fixed; z-index: 74; width: min(320px, calc(100vw - 20px)); background: var(--panel); border: 1.5px solid color-mix(in srgb, var(--live) 26%, var(--line)); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.se-lshead { display: flex; align-items: center; gap: 9px; padding: 4px 6px 8px; font-size: 15px; color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--live) 14%, var(--line)); margin-bottom: 4px; }
.se-lshead .lp { width: 10px; height: 10px; border-radius: var(--round); background: color-mix(in srgb, var(--ink) 30%, var(--line)); flex: none; }
.se-lshead .lp.on { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 24%, transparent); animation: sePulse 1.4s ease-in-out infinite; }
.se-lshint { margin: 2px 6px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.se-lsrow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; border-radius: var(--r); padding: 9px 8px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.se-lsrow:hover { background: color-mix(in srgb, var(--live) 9%, transparent); }
.se-lsrow b { display: block; font-size: 13.5px; font-weight: 800; }
.se-lsrow small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.se-lssearch { padding: 2px 4px 4px; position: relative; }
.se-lssearch input { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: var(--r); padding: 8px 11px; font: inherit; font-size: 13.5px; }
.se-lssearch input:focus { border-color: var(--live); }
.se-lssearch #se-ls-sug { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.se-lssugrow { border: 0; background: color-mix(in srgb, var(--live) 7%, transparent); border-radius: var(--r); padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.se-lssugrow:hover { background: color-mix(in srgb, var(--live) 14%, transparent); }
.se-lsacc { display: flex; flex-direction: column; padding: 2px 2px 6px; }
.se-lsaccrow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 13.5px; color: var(--ink); border-radius: var(--r); }
.se-lsaccrow:hover { background: color-mix(in srgb, var(--live) 6%, transparent); }
.se-lsaccrow .se-lswho { flex: 1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-lsaccrow small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.se-lsaccrow.own small { color: var(--live-text); }
.se-lsaccrow button { border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: var(--r); padding: 2px 6px; }
.se-lsaccrow button:hover { background: color-mix(in srgb, var(--live) 12%, transparent); color: var(--ink); }
.se-lsgen { border-top: 1px solid color-mix(in srgb, var(--live) 14%, var(--line)); padding: 8px 4px 2px; }
.se-lsgen > b { display: block; font-size: 12px; font-weight: 800; color: var(--muted); padding: 0 4px 6px; }
.se-lsseg { display: flex; gap: 4px; background: color-mix(in srgb, var(--live) 7%, transparent); border-radius: var(--r); padding: 3px; }
.se-lsseg button { flex: 1; border: 0; background: none; border-radius: var(--r); padding: 7px 4px; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--muted); cursor: pointer; }
.se-lsseg button.on { background: var(--live); color: #fff; }
.se-lsseg button:disabled { cursor: default; }
.ks-klcode { color: var(--muted); font-weight: 400; }
.se-live .lp { width: 9px; height: 9px; border-radius: var(--round); background: color-mix(in srgb, var(--ink) 42%, var(--line)); flex: none; }
.se-live.is-live { background: var(--live); border-color: var(--live); color: #fff; }
.se-live.is-live .lp { background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); animation: sePulse 1.1s ease-in-out infinite; }
@keyframes sePulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.se-col {
  position: fixed; left: 0; bottom: 0; width: var(--se-col); z-index: 60;
  overflow-y: auto; padding: 0 12px 40px 16px;
  background: var(--panel);
  font-family: var(--font); color: var(--ink); font-size: 15px;
}
.se-resizer { position: fixed; left: calc(var(--se-col, 280px) - 7px); width: 14px; cursor: col-resize; z-index: 61; touch-action: none; }
.se-resizer::after { content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 44px; transform: translateY(-50%); border-radius: var(--r-small); background: transparent; transition: background .14s ease; }
.se-resizer:hover::after, body.se-resizing .se-resizer::after { background: color-mix(in srgb, var(--blau) 55%, transparent); }
.side-panel { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 6px; overflow: hidden; transition: border-color .14s ease; }
.side-panel:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.side-panel > .side-panel-head { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 8px 12px; font-size: 13.5px; font-weight: 900; color: var(--ink); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.side-panel > .side-panel-head::-webkit-details-marker { display: none; }
.side-panel-dot { width: 8px; height: 8px; border-radius: var(--r-small); flex: none; background: var(--accent); }
.side-panel-title { min-width: 0; margin: 0; font: inherit; letter-spacing: inherit; color: inherit; overflow-wrap: anywhere; }
.side-panel-chevron { margin-left: auto; display: inline-flex; color: var(--muted); transition: transform .18s ease; }
.side-panel[open] > .side-panel-head .side-panel-chevron { transform: rotate(90deg); }
.side-panel-box { position: relative; }
.side-panel-box > .side-panel { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0; overflow: visible; }
.side-panel-box > .side-panel:hover { border-color: var(--line); }
.side-panel-box > .side-panel > .side-panel-head {
  gap: 6px; min-height: 40px; box-sizing: border-box; padding: 10px 12px 6px 16px; border-radius: var(--r);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
}
.side-panel-box:has(> .side-panel-tools) > .side-panel > .side-panel-head { padding-right: calc(12px + var(--side-panel-tools, 30px)); }
.side-panel-box > .side-panel > .side-panel-head:hover { color: var(--ink); }
.side-panel > .side-panel-head:focus-visible { outline-offset: -2px; }
.side-panel-box .side-panel-title { flex: 1; }
.side-panel-box .side-panel-chevron { margin-left: 0; }
.side-panel-box .side-panel-chevron .ic { width: 12px; height: 12px; }
.side-panel-tools { position: absolute; top: 6px; right: 6px; z-index: 1; display: flex; gap: 2px; }
.side-panel-box:has(> .side-panel-tools .side-panel-window + .side-panel-hide) { --side-panel-tools: 60px; }
.side-panel-tools button { width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.side-panel-tools button:hover:not(:disabled) { color: var(--ink); }
.side-panel-tools button:focus-visible { outline-offset: -2px; }
.side-panel-box:has(> .side-panel[hidden]), .side-panel-hidden { display: none !important; }
.side-panel-floating { position: fixed; z-index: 66; width: 300px; max-height: 72vh; overflow-y: auto; background: var(--raised); box-shadow: var(--shadow); }
.side-panel-floating .side-panel-head { cursor: grab; position: sticky; top: 0; background: var(--raised); z-index: 2; touch-action: none; }
.side-panel-floating > .side-panel { border-top: 0; }
.side-panel-drop-target { outline: 2px dashed var(--accent); outline-offset: -3px; }
body.side-panel-window-body { margin: 0 !important; padding: 0 !important; background: var(--panel); }
.side-panel-in-window > .side-panel { border-top: 0; }
.side-panel-in-window .side-panel-head { cursor: default; }
.side-panel-in-window :is(.side-panel-chevron, .side-panel-window) { display: none; }
.side-panel-in-window > .side-panel > .side-panel-head { font-size: 13px; color: var(--ink); }
.side-panel-menu-wrap { position: relative; flex: none; }
.side-panel-menu-button { border: 1.5px solid var(--line); background: var(--panel); border-radius: var(--r); width: 36px; height: 34px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.side-panel-menu-button:hover { border-color: var(--accent); color: var(--accent); }
.side-panel-menu { position: absolute; left: 0; top: 40px; z-index: 67; width: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.side-panel-menu[hidden] { display: none; }
.side-panel-menu-list { display: flex; flex-direction: column; gap: 2px; }
.side-panel-menu > * + .side-panel-menu-list { border-top: 1px solid var(--line); padding-top: 8px; }
.side-panel-menu-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px; border-radius: var(--r); cursor: pointer; color: var(--ink); }
.side-panel-menu-row:hover { background: var(--field); }
.side-panel-menu-row input { margin: 0; }
.side-panel-menu-row small { margin-left: auto; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.se-secbody { padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 11px; }
.se-adopt > .se-secbody { padding: 0 12px 10px; gap: 6px; }
.se-adopt .se-fld { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.se-adopt .se-fld > span { flex: 999 1 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.se-adopt .se-fld > select { field-sizing: content; flex: 1 0 auto; min-width: 45%; max-width: 100%; }
.se-adopt .se-secbody select { height: auto; min-height: 30px; }
@supports (appearance: base-select) {
  .se-adopt .se-secbody select { white-space: normal; text-align: left; padding-block: 4px; line-height: 1.25; }
  .se-adopt .se-secbody select option { white-space: normal; }
}
.se-adopt .se-fld > input[type=range] { flex: 1 1 110px; width: auto; min-width: 0; }
.se-adopt .se-fld > input[type=number] { flex: 0 0 72px; box-sizing: border-box; }
.se-adopt .se-fld > input[type=text] { flex: 1 1 120px; min-width: 0; box-sizing: border-box; }
.se-adopt .group > select { field-sizing: content; max-width: 100%; min-width: 0; }
.se-fld { display: flex; flex-direction: column; gap: 5px; }
.se-fld > span { font-size: 12px; font-weight: 800; color: var(--muted); }
.se-fld select, .se-harmony select { height: 34px; }
.se-secbody select { height: 34px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); padding: 0 9px; transition: border-color .14s ease, box-shadow .14s ease; }
.se-secbody select:focus { border-color: var(--blau); }
.se-fld input[type=range] { width: 100%; accent-color: var(--blau); }
.se-chk { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.se-chk input { width: 17px; height: 17px; flex: none; }
.se-optbtn { width: 100%; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 12.5px; font-weight: 800; color: var(--ink); transition: border-color .14s ease, transform .14s ease; }
.se-optbtn:hover { border-color: var(--accent); transform: translateY(-1px); }
.se-addvoice { width: 100%; margin-top: 5px; padding: 7px; border: 1.5px dashed color-mix(in srgb, var(--blau) 40%, var(--line)); border-radius: var(--r); background: none; font: inherit; font-size: 12px; font-weight: 800; color: color-mix(in srgb, var(--blau) 65%, var(--ink)); transition: border-color .14s ease; }
.se-addvoice:hover { border-style: solid; border-color: var(--blau); }
body.se-on .se-col #track-list { display: flex; flex-direction: column; gap: 2px; }
body.se-on .se-col #track-list .trk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 7px 0; font-size: 12.5px; color: var(--ink); }
body.se-on .se-col #track-list .trk input.trk-name { flex: 1 1 90px; min-width: 80px; }
body.se-on .se-col #track-list .trk select.instr { flex: 1 1 96px; min-width: 96px; max-width: 150px; }
body.se-on .se-col #track-list .trk input.mix { flex: 1 1 62px; min-width: 62px; }
body.se-on .se-col #track-list .trk button.mini { width: 26px; height: 26px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
body.se-on .se-col #track-list .trk button.mini svg { width: 15px; height: 15px; display: block; }
body.se-on .se-col #track-list .trk input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
body.se-on .se-col #track-list .trk input[type=color] { width: 26px; height: 24px; padding: 0; }
@media (pointer: coarse) {
  body.se-on .se-col #track-list .trk button.mini { width: 32px; height: 32px; }
  body.se-on .se-col #track-list .trk input[type=checkbox] { width: 22px; height: 22px; }
  body.se-on .se-col #track-list .trk input[type=color] { width: 30px; height: 28px; }
  body.se-on .se-col #track-list .trk input.mix { height: 26px; }
}
body.se-on .se-col #track-list .trk .grip { color: var(--muted); cursor: grab; }
body.se-on .se-col #track-list .trk-plus { display: none; }
body.se-on .se-col #track-list select { height: 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 11.5px; color: var(--muted); padding: 0 6px; }
body.se-on .se-col #track-list input[type=range] { accent-color: var(--blau); }
body.se-on .se-col #track-list .hint { color: var(--muted); font-size: 12px; }
.se-harm { border-style: dashed; }
.se-harm .se-earn { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 900; color: var(--gruen); }
.se-harm .se-earn svg { width: 13px; height: 13px; }
.se-harm .se-lockbadge { margin-left: auto; display: none; align-items: center; color: var(--muted); }
.se-harm .se-lockbadge svg { width: 14px; height: 14px; }
.se-harm .se-locknote { display: none; align-items: flex-start; gap: 8px; margin: 0; padding: 9px 11px; border-radius: var(--r); background: color-mix(in srgb, var(--blau) 6%, var(--panel)); border: 1px dashed color-mix(in srgb, var(--blau) 26%, var(--line)); font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--blau) 72%, var(--ink)); line-height: 1.4; }
.se-harm .se-locknote svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--blau); }
.se-harm.locked .se-earn { display: none; }
.se-harm.locked .se-lockbadge { display: inline-flex; }
.se-harm.locked .se-locknote { display: flex; }
#se-begleit-hint { margin: 2px 0 0; padding: 8px 11px; border-radius: var(--r); background: color-mix(in srgb, var(--bernstein) 7%, var(--panel)); border: 1px dashed color-mix(in srgb, var(--bernstein) 32%, var(--line)); font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--bernstein) 55%, var(--ink)); line-height: 1.4; }
#se-begleit-hint[hidden] { display: none; }
.se-harm.locked .se-fld, .se-harm.locked .se-checkbtn, .se-harm.locked .se-hints { display: none; }
.se-harm.locked > summary { color: var(--muted); cursor: default; }
.se-checkbtn { width: 100%; margin-top: 2px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 12.5px; font-weight: 800; color: var(--ink); transition: border-color .14s ease, transform .14s ease; }
.se-checkbtn:hover { border-color: var(--accent); transform: translateY(-1px); }
.se-hints { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.se-hintrow { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.45; background: color-mix(in srgb, var(--bernstein) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--bernstein) 34%, var(--line)); border-radius: var(--r); padding: 6px 8px; }
.se-hintrow.info { background: color-mix(in srgb, var(--blau) 6%, var(--panel)); border-color: color-mix(in srgb, var(--blau) 26%, var(--line)); }
.se-hintrow span { flex: 1; }
.se-hintrow.se-hintgo { cursor: pointer; }
.se-hintrow.se-hintgo:hover { border-color: color-mix(in srgb, var(--bernstein) 62%, var(--line)); background: color-mix(in srgb, var(--bernstein) 15%, var(--panel)); }
.se-hintrow.se-hintgo.info:hover { border-color: color-mix(in srgb, var(--blau) 48%, var(--line)); background: color-mix(in srgb, var(--blau) 11%, var(--panel)); }
.se-hintbook, .se-hintbell { flex: none; border: none; background: none; padding: 0 2px; font-size: 13px; cursor: pointer; }
.se-hintok { margin: 2px 2px 0; font-size: 11px; color: var(--muted); }
body.se-on [data-meta] { cursor: text; }
body.se-on [data-meta]:hover { fill: var(--blau); }
.se-metaov { position: fixed; z-index: 70; display: flex; flex-direction: column; gap: 5px; padding: 7px; background: var(--panel); border: 1.5px solid var(--blau); border-radius: var(--r); box-shadow: var(--shadow); }
.se-metaov input { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 5px 8px; background: var(--panel); }
.se-metaov input:focus { border-color: color-mix(in srgb, var(--blau) 55%, var(--line)); }
:is(.nt-eraser, .nt-entry).on { background: color-mix(in srgb, var(--blau) 12%, var(--panel)); box-shadow: inset 0 0 0 1.5px var(--blau); color: var(--blau); }
body.se-on #score-scroll.erasing, body.se-on #score-scroll.erasing *,
body.se-on #score-scroll.erase-mode, body.se-on #score-scroll.erase-mode * { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><circle cx="12" cy="12" r="9" fill="none" stroke="black" stroke-width="2"/></svg>') 12 12, auto !important; }
body.se-on #score-scroll { background: var(--panel); }
body.se-on #score-area .page svg { box-shadow: var(--shadow); border-radius: var(--r-paper); }
body.se-on .statusbar { border-top: none; background: var(--panel); padding-left: calc(var(--se-col, 280px) + 16px); }
@media (hover: hover) and (pointer: fine) { .nt-touch { display: none !important; } }
@media (hover: none) and (pointer: coarse) { .nt-keys { display: none !important; } }
body.se-on #score-area { -webkit-touch-callout: none; }
body.se-on .se-col .se-zeichen .se-secbody.pal-feld { gap: 4px; }
body.se-on .se-col .se-zeichen .se-secbody.pal-feld button[data-pal] { min-width: 44px; height: 44px; font-size: 21px; }
.se-modal { position: fixed; inset: 0; z-index: 89; display: none; align-items: center; justify-content: center; padding: 26px; background: rgba(24, 22, 18, .46); backdrop-filter: blur(3px); font-family: var(--font); }
.se-modal.on { display: flex; }
.se-savecard { width: min(720px, 100%); height: min(480px, calc(100vh - 52px)); background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.se-schead { display: flex; align-items: center; gap: 13px; padding: 15px 18px 15px 22px; border-bottom: 1.5px solid var(--line); }
.se-schead-ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r); background: color-mix(in srgb, var(--blau) 14%, var(--panel)); color: var(--blau); flex: none; }
.se-schead-ic svg { width: 22px; height: 22px; }
.se-schead h2 { margin: 0; flex: 1; font-size: 19px; font-weight: 900; letter-spacing: -.015em; color: var(--ink); }
.se-scx { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r); color: var(--muted); font-size: 21px; line-height: 1; flex: none; }
.se-scx:hover { background: var(--field); color: var(--ink); }
.se-scbody { flex: 1; display: flex; min-height: 0; }
.se-scrail { width: 210px; flex: none; border-right: 1.5px solid var(--line); background: var(--panel); display: flex; flex-direction: column; padding: 12px; gap: 2px; overflow-y: auto; }
.se-folder { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); border: 1.5px solid transparent; font-size: 14px; font-weight: 800; color: var(--ink); width: 100%; text-align: left; transition: background .12s ease, border-color .12s ease; }
.se-folder:hover { background: var(--field); border-color: color-mix(in srgb, var(--ink) 14%, transparent); }
.se-folder.on { background: color-mix(in srgb, var(--blau) 11%, var(--panel)); border-color: color-mix(in srgb, var(--blau) 40%, transparent); }
.se-folder svg { width: 18px; height: 18px; flex: none; color: color-mix(in srgb, var(--muted) 70%, var(--ink)); }
.se-folder.on svg { color: var(--blau); }
.se-folder .f-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-sccontent { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 20px; }
.se-scfield { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.se-scfield label { font-size: 12px; font-weight: 800; color: var(--muted); }
.se-scfield input { height: 44px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 15px; font-weight: 800; color: var(--ink); padding: 0 14px; transition: border-color .14s ease, box-shadow .14s ease; }
.se-scfield input:focus { border-color: var(--blau); }
.se-sctarget { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 auto; }
.se-sctarget b { color: var(--blau); font-weight: 900; }
.se-scerr { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--status-fehler); min-height: 16px; }
.se-scactions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1.5px solid var(--line); }
.se-btn-ghost { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; color: var(--ink); transition: background .12s, border-color .12s; }
.se-btn-ghost:hover { background: var(--field); border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.se-btn-primary { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: var(--r); background: var(--gruen); color: #fff; font-weight: 900; font-size: 14px; box-shadow: var(--shadow); transition: transform .12s var(--bounce); }
.se-btn-primary:hover { transform: translateY(-1.5px); }
#kp-kbd-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 87; height: 128px; width: min(94vw, calc(var(--kp-w) * 46px)); background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px -10px rgba(28, 27, 24, .25); padding: 7px; }
#kp-kbd-bar[hidden] { display: none; }
#kp-kbd-bar .kp-key { position: absolute; top: 7px; bottom: 7px; margin: 0; padding: 0; border: 1px solid #c9c7c2; background: var(--panel); cursor: pointer; touch-action: none; }
#kp-kbd-bar .kp-white { left: calc(7px + var(--kp-i) * ((100% - 14px) / var(--kp-w))); width: calc((100% - 14px) / var(--kp-w)); border-radius: 0 0 6px 6px; z-index: 1; }
#kp-kbd-bar .kp-white i { position: absolute; left: 0; right: 0; bottom: 4px; font-style: normal; font-size: 10px; font-weight: 800; color: var(--muted); text-align: center; pointer-events: none; }
#kp-kbd-bar .kp-black { left: calc(7px + var(--kp-i) * ((100% - 14px) / var(--kp-w)) - ((100% - 14px) / var(--kp-w)) * 0.32); width: calc(((100% - 14px) / var(--kp-w)) * 0.64); height: 58%; bottom: auto; background: #26241f; border-color: #26241f; border-radius: 0 0 5px 5px; z-index: 2; }
#kp-kbd-bar .kp-key.kp-exp { box-shadow: inset 0 0 0 2.5px #1f9e6a; }
#kp-kbd-bar .kp-black.kp-exp { box-shadow: inset 0 0 0 2.5px #6fdcae; }
#kp-kbd-bar .kp-key.kp-got { background: color-mix(in srgb, #1f9e6a 30%, var(--panel)); }
#kp-kbd-bar .kp-black.kp-got { background: color-mix(in srgb, #1f9e6a 55%, var(--ink)); }
#kp-kbd-bar .kp-key.kp-press { background: #e4e2de; }
#kp-kbd-bar .kp-black.kp-press { background: #4a463f; }
body.kp-present #kp-kbd-bar { left: 0; right: 0; bottom: 0; transform: none; width: auto; max-width: none; height: 180px; border-radius: 16px 16px 0 0; border-left: none; border-right: none; border-bottom: none; box-shadow: 0 -10px 30px -12px rgba(28, 27, 24, .25); }
#kp-lane { position: fixed; left: 0; right: 0; z-index: 86; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0), color-mix(in srgb, var(--gruen) 5%, transparent)); }
#kp-lane::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--gruen) 55%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--gruen) 55%, transparent); }
.kp-tile { position: absolute; top: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; border-radius: var(--r); color: #fff; font-family: var(--font); font-size: 16px; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.35); background: var(--kp-stufe); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35), var(--shadow); will-change: transform; transition: opacity .3s ease; }
.kp-tile.kp-tnear { box-shadow: inset 0 0 0 2.5px rgba(255,255,255,.75), var(--shadow); }
.kp-tile.kp-thit { filter: brightness(1.28) saturate(1.15); box-shadow: inset 0 0 0 2.5px rgba(255, 255, 255, .9), 0 0 18px color-mix(in srgb, var(--gruen) 45%, transparent); }
.kp-tile.kp-tok { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35), 0 0 0 3.5px var(--bernstein); }
.kp-tile.kp-tmiss { background: color-mix(in srgb, var(--panel) 55%, var(--muted)); box-shadow: 0 0 0 3.5px var(--status-fehler); opacity: .8; }
.kp-ic { border: none; background: none; font: inherit; font-size: 15px; cursor: pointer; padding: 2px 5px; border-radius: var(--r); color: var(--muted); }
.kp-ic:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.kp-ic.on { color: var(--gruen); background: color-mix(in srgb, var(--gruen) 12%, var(--panel)); }
.kp-modesel { border: none; background: none; font: inherit; font-size: 12px; font-weight: 800; color: var(--muted); padding: 3px 9px; border-radius: var(--r); cursor: pointer; }
.kp-modesel.on { background: var(--panel); color: var(--gruen); box-shadow: inset 0 0 0 1.5px var(--gruen); }
.kp-modesel svg, .kp-loop svg { width: 17px; height: 17px; display: block; }
.kp-ic svg { width: 17px; height: 17px; display: block; }
.kp-modesel { padding: 5px 10px; }
#kp-count { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 96; font-family: var(--font); font-size: 120px; font-weight: 900; color: var(--gruen); text-shadow: 0 6px 30px color-mix(in srgb, var(--gruen) 35%, transparent); pointer-events: none; }
#kp-count.pop { animation: kpPop .65s ease; }
@keyframes kpPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 100% { opacity: .9; transform: translate(-50%, -50%) scale(1); } }
body.kp-fall #score-scroll { visibility: hidden; }
#score-area :is(path.nh, circle[data-uid], rect[data-uid]).kp-hit { --kp-treffer: var(--gruen); }
#score-area :is(path.nh, circle[data-uid], rect[data-uid]).kp-hit-ok { --kp-treffer: var(--bernstein); }
#score-area :is(path.nh, circle[data-uid], rect[data-uid]).kp-miss { --kp-treffer: var(--status-fehler); }
#score-area :is(path.nh, circle[data-uid]):is(.kp-hit, .kp-miss) { fill: var(--kp-treffer); }
#score-area rect[data-uid]:is(.kp-hit, .kp-miss) {
  filter: drop-shadow(2.5px 0 0 var(--kp-treffer)) drop-shadow(-2.5px 0 0 var(--kp-treffer))
    drop-shadow(0 2.5px 0 var(--kp-treffer)) drop-shadow(0 -2.5px 0 var(--kp-treffer));
}
#kp-pill { position: fixed; inset: 0; z-index: 88; pointer-events: none; display: block; padding: 0; background: none; border: none; box-shadow: none; transform: none; left: 0; bottom: 0; }
#kp-pill > * { pointer-events: auto; }
#kp-close { position: absolute; top: 64px; left: 16px; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .92); font: inherit; font-size: 17px; color: var(--muted); cursor: pointer; }
#kp-close:hover { color: var(--ink); border-color: var(--line); }
#kp-score { position: absolute; top: 64px; right: 16px; text-align: right; background: rgba(255, 255, 255, .92); border: 1.5px solid var(--line); border-radius: var(--r); padding: 8px 14px; font-family: var(--font); }
#kp-score b { display: block; font-size: 26px; font-weight: 900; color: var(--gruen); line-height: 1.1; }
#kp-score span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
#kp-score[hidden], #kp-result[hidden] { display: none; }
.kp-rail { position: absolute; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; padding: 8px; background: rgba(255, 255, 255, .88); border: 1.5px solid var(--line); border-radius: var(--r); }
.kp-rail-l { left: 12px; }
.kp-rail-r { right: 12px; }
.kp-rail button { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; transition: transform .16s cubic-bezier(.34,1.4,.5,1), border-color .14s ease, color .14s ease; }
.kp-rail button:hover { transform: translateY(-2px); border-color: var(--gruen); color: var(--ink); }
.kp-rail button.on { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.kp-rail button.locked { opacity: .45; pointer-events: none; }
.kp-rail button.locked.on { opacity: 1; pointer-events: none; }
.kp-rail .kp-modesel svg, .kp-rail .kp-loop svg, .kp-rail .kp-ic svg { width: 22px; height: 22px; }
#kp-result { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .55); }
.kp-resbox { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--panel); border: 2px solid var(--gruen); border-radius: var(--r); padding: 26px 44px; box-shadow: var(--shadow); font-family: var(--font); }
.kp-resbox b { font-size: 52px; font-weight: 900; color: var(--gruen); line-height: 1; }
.kp-resbox > span { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.kp-noecht { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--bernstein); }
.kp-fallsp { margin-top: 10px; }
.kp-resrow { display: flex; gap: 10px; margin-top: 12px; }
.kp-resrow button { border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 14.5px; font-weight: 800; color: var(--ink); padding: 10px 18px; cursor: pointer; }
.kp-resrow button:hover { border-color: var(--gruen); }
.kp-resbox.fail { border-color: var(--bernstein); }
.kp-resbox.fail b { color: var(--bernstein); }
.kp-resrow .kp-primary { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.lp-nextbox.fail b { color: var(--bernstein); }
#kp-kbd-bar, #kp-kbd-bar * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#kp-kbd-bar .kp-key { touch-action: none; }
.kp-flash { position: absolute; bottom: -34px; width: 68px; height: 68px; border-radius: var(--round); pointer-events: none; background: radial-gradient(circle, rgba(255, 255, 255, .95), color-mix(in srgb, var(--gruen) 55%, transparent) 45%, transparent 70%); animation: kpFlash .45s ease-out forwards; }
@keyframes kpFlash { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
body.kp-present #ton-shell, body.kp-present .se-bar, body.kp-present .se-col,
body.kp-present .se-resizer, body.kp-present .statusbar { display: none !important; }
body.kp-present #lz-rail, body.kp-present #tab-bar,
body.kp-present #se-globalmenu { display: none !important; }
body.kp-present.lz-on { padding-left: 0 !important; }
body.kp-present #score-scroll { padding-left: 84px; padding-right: 84px; }
body.kp-present { padding-top: 52px !important; background: var(--panel); }
body.kp-present .volta-plus, body.kp-present .ks-menu { display: none !important; }
body.kp-present #score-area { pointer-events: none; }
body.kp-present .main-col { margin-left: 0 !important; }
#lp-strip { position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 89; display: flex; align-items: center; gap: 16px; padding: 0 18px; background: var(--panel); font-family: var(--font); color: var(--ink); }
#lp-strip b { font-size: 16px; font-weight: 900; }
#lp-strip .lp-dots { display: flex; gap: 5px; }
#lp-strip .lp-dots i { width: 9px; height: 9px; border-radius: var(--round); background: var(--line); }
#lp-strip .lp-dots i.cur { background: var(--bernstein); }
#lp-strip .lp-dots i.done { background: var(--gruen); }
#lp-strip .lp-flex { flex: 1; }
#lp-strip button { border: none; background: none; font: inherit; font-size: 17px; color: var(--muted); cursor: pointer; padding: 6px 11px; border-radius: var(--r); }
#lp-strip button:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
#lp-card { position: fixed; inset: 52px 0 0 0; z-index: 88; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .95); padding: 22px; overflow-y: auto; }
#lp-card[hidden] { display: none; }
#lp-card.lp-top { align-items: flex-start; background: transparent; pointer-events: none; }
#lp-card.lp-top .lp-box { pointer-events: auto; box-shadow: var(--shadow); }
.lp-box { max-width: 760px; width: 100%; background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); padding: 30px 34px; box-shadow: var(--shadow); font-family: var(--font); font-size: 17px; line-height: 1.75; color: var(--ink); }
.lp-box p { margin: 0 0 14px; }
.lp-box.lp-slim { max-width: 620px; padding: 20px 24px; font-size: 15px; }
.lp-big { display: block; width: 100%; margin-top: 14px; padding: 16px; border: none; border-radius: var(--r); background: var(--gruen); color: #fff; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); transition: transform .16s cubic-bezier(.34, 1.4, .5, 1); }
.lp-big:hover { transform: translateY(-2px); }
.lp-mini { margin-top: 10px; border: 1.5px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 9px 14px; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; }
.lp-mini:hover { border-color: var(--ink); }
.lp-fin { font-size: 19px; text-align: center; }
#lp-next { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; font-family: var(--font); }
#lp-next[hidden] { display: none; }
.lp-nextbox { display: flex; flex-direction: column; gap: 10px; align-items: center; background: var(--panel); border: 2px solid var(--gruen); border-radius: var(--r); padding: 14px 22px; box-shadow: var(--shadow); color: var(--ink); }
.lp-nextbox b { font-size: 17px; }
.lp-row { display: flex; gap: 10px; align-items: center; }
.lp-row .lp-big { width: auto; margin-top: 0; padding: 12px 26px; }
.lp-row .lp-mini { margin-top: 0; }
.se-warte.on { background: color-mix(in srgb, var(--gruen) 12%, var(--panel)); box-shadow: inset 0 0 0 1.5px var(--gruen); color: var(--gruen); }
.se-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); z-index: 92; background: var(--ink); color: var(--panel); padding: 11px 18px; border-radius: var(--r); font-size: 14px; font-weight: 800; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--bounce); display: flex; align-items: center; gap: 9px; font-family: var(--font); }
.se-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.se-toast svg { width: 17px; height: 17px; }
@media (max-width: 760px) {
  body.se-on .main-col { margin-left: 0; }
  .se-col, .se-resizer { display: none; }
  body.se-on .statusbar, body.ton-bar.se-on .statusbar { margin-left: 0; padding-left: 14px; }
}
@media (pointer: coarse) and (max-width: 760px),
       (pointer: coarse) and (max-height: 520px) {
  #se-pencil, .se-onlyedit { display: none !important; }
  .se-col, .se-resizer { display: none !important; }
  body.se-on .main-col { margin-left: 0 !important; }
  body.se-on .statusbar, body.ton-bar.se-on .statusbar { margin-left: 0; padding-left: 14px; }
  .statusbar #feedback-link, .statusbar #about-link,
  .statusbar #app-version { display: none; }
  .statusbar .view-switch > label.inline > span[data-i18n="view"] { display: none; }
  .statusbar { gap: 9px; }
  .statusbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 57;
    background: color-mix(in srgb, var(--panel) 90%, transparent);
    backdrop-filter: blur(7px);
    padding-bottom: calc(5px + var(--sab));
  }
  body.lz-on .statusbar { left: var(--lzr); }
  #score-scroll { padding-bottom: 40px; }
  :root { --lzr: var(--sal); --lzb: calc(60px + var(--sab)); }
  body.lz-on { padding-left: var(--sal); }
  #lz-rail { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: var(--lzb); flex-direction: row;
    align-items: center; justify-content: flex-end; padding: 0 calc(10px + var(--sar)) var(--sab) calc(10px + var(--sal));
    overflow: hidden; }
  #lz-rail .lz-raeume, #lz-rail .lz-logo { display: none; }
  #lz-rail .lz-unten { flex-direction: row; gap: 4px; margin: 0; padding: 0; }
  .lz-entry { width: 44px; min-height: 44px; height: 44px; margin: 0; padding: 0; }
  .lz-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lz-line { width: 22px; margin: 2px 0 0; }
  body.lz-on #lz-page { bottom: var(--lzb); }
  #lz-roomwrap { display: block; position: fixed; z-index: 58;
    left: calc(10px + var(--sal)); bottom: calc(8px + var(--sab)); }
  body.kp-present #lz-roomwrap, body.kp-present #lz-rail { display: none; }
  body.lz-on .statusbar { bottom: var(--lzb); left: 0; }
  @media (orientation: landscape) {
    :root { --lzr: calc(56px + var(--sal)); --lzb: 0px; }
    body.lz-on { padding-left: var(--lzr); }
    #lz-rail { left: 0; right: auto; top: 0; bottom: 0; width: var(--lzr); height: auto; flex-direction: column;
      padding: calc(64px + var(--sat)) 0 calc(6px + var(--sab)) var(--sal); }
    #lz-rail .lz-unten { flex-direction: column; margin-top: auto; }
    .lz-entry { margin: 0 auto; }
    body.lz-on #lz-page { bottom: 0; }
    #lz-roomwrap { left: calc(6px + var(--sal)); top: calc(10px + var(--sat)); bottom: auto; }
    #lz-roombtn { width: 44px; padding: 0; }
    .lz-rbname { display: none; }
    .lz-rooms-pop { flex-direction: row; left: calc(100% + 8px); top: 0; bottom: auto; }
    body.lz-on .statusbar { bottom: 0; left: var(--lzr); }
  }
  .bib-railbtn { display: inline-flex; }
  #bib-pick { display: none; }
  .bib-toolbar { padding: 8px 10px; padding-right: 52px; }
  .bib-gridwrap { padding: 6px 10px 10px; }
  .bib-th { padding-top: 6px; padding-bottom: 6px; }
  .bib-pencil { min-height: 0; height: 24px; width: 24px; }
  tr.bib-row > td { padding: 3px 10px; }
  #bib-tafel { display: block; position: absolute; left: 0; right: 0; bottom: 0;
    width: auto; max-height: 62%; z-index: 7;
    border-left: none; border-top: 1px solid var(--b-line);
    border-radius: var(--r) var(--r) 0 0;
    padding: 14px 16px calc(66px + var(--sab));
    box-shadow: var(--shadow); }
  #bib-tafel[hidden] { display: none; }
  @media (orientation: landscape) {
    #bib-tafel { left: auto; top: 0; bottom: 0; width: min(300px, 42vw);
      max-height: none; border-top: none; border-left: 1px solid var(--b-line);
      border-radius: 0; padding: 14px 16px calc(14px + var(--sab));
      box-shadow: var(--shadow); }
  }
  #bib-tafel { position: absolute; }
  #bib-tafel .bib-thaupt { position: absolute; top: 10px; right: 12px;
    margin: 0; gap: 2px; z-index: 2; }
  #bib-tafel .bib-thaupt .bib-tb { width: 34px; height: 34px; min-height: 0; padding: 0;
    justify-content: center; border: none; background: none; }
  #bib-tafel .bib-thaupt .bib-tb svg { width: 22px; height: 22px; }
  #bib-tafel .bib-thaupt .bib-tb span { display: none; }
  #bib-tafel .bib-thaupt .bib-tb.haupt { color: var(--accent); }
  #bib-tafel h3 { padding-right: 76px; }
  #bib-tafel .bib-tdel { position: fixed; z-index: 59; margin: 0;
    left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--sab)); }
  #bib-tafel .bib-tdel .bib-tb { width: 48px; height: 48px; min-height: 0; padding: 0;
    justify-content: center; border-radius: var(--r);
    border: 1.5px solid color-mix(in srgb, var(--status-fehler) 40%, var(--line));
    background: var(--panel); color: var(--status-fehler);
    box-shadow: var(--shadow); }
  #bib-tafel .bib-tdel .bib-tb svg { width: 22px; height: 22px; }
  #bib-tafel .bib-tdel .bib-tb span { display: none; }
  @media (orientation: portrait) {
    #bib-tafel { padding-bottom: calc(72px + var(--sab)); }
  }
  #bib-grid .bib-piece.bib-kat { display: flex; align-items: center; gap: 10px;
    height: auto; padding: 6px 10px; border-radius: var(--r);
    border: none; border-bottom: 1px solid var(--b-line); box-shadow: none; }
  #bib-grid .bib-piece.bib-kat:hover { transform: none; box-shadow: none; }
  #bib-grid .bib-piece.bib-kat .bib-prev { height: auto; width: 34px; flex: none;
    background: none; border: none; }
  #bib-grid .bib-piece.bib-kat .bib-prev::before { display: none; }
  #bib-grid .bib-piece.bib-kat .bib-star { position: static; width: 30px; height: 30px; }
  #bib-grid .bib-piece.bib-kat .bib-meta { flex: 1; min-width: 0; padding: 0; }
  #bib-grid .bib-piece.bib-kat .bib-ptitle { font-size: 14px; }
  #bib-kfmehr:not([open]) { padding-bottom: 2px; }
  .bib-kfmehr summary { cursor: pointer; font-size: 12.5px; color: var(--b-muted);
    padding: 5px 2px; list-style: none; }
  .bib-kfmehr summary::-webkit-details-marker { display: none; }
  .bib-kfmehr summary::before { content: "▸ "; }
  .bib-kfmehr[open] summary::before { content: "▾ "; }
  .bib-body { position: relative; }
  .bib-rail { position: absolute; left: 0; top: 0; bottom: 0; z-index: 6;
    width: min(240px, 78vw); transform: translateX(-101%);
    transition: transform .2s ease; box-shadow: var(--shadow); }
  body.bib-rail-on .bib-rail { transform: none; }
  body.bib-rail-on .bib-content::before { content: ""; position: absolute; inset: 0;
    z-index: 5; background: rgba(20,26,40,.28); }
  #tab-bar { display: none !important; }
  body.lz-on:not(.se-on) #tab-mini,
  body.lz-on:not(.se-on) #tab-pop { display: none !important; }
  #tab-mini {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 61; top: calc(3px + var(--sat)); left: calc(8px + var(--sal));
    width: 36px; height: 36px; min-height: 0; padding: 0;
    font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    border: 1.5px solid var(--line); border-radius: var(--r);
    background: var(--panel); color: inherit;
  }
  #tab-pop { display: flex; top: calc(44px + var(--sat)); left: calc(8px + var(--sal)); }
  body.lz-on #tab-mini { top: auto; left: auto; right: calc(120px + var(--sar));
    bottom: calc(6px + var(--sab)); width: 44px; height: 44px; border-radius: var(--r); z-index: 58; }
  body.lz-on #tab-pop { top: auto; left: auto; right: calc(120px + var(--sar));
    bottom: calc(var(--lzb) + 8px);
    max-width: min(340px, calc(100vw - 132px - var(--sar) - var(--sal))); }
  @media (orientation: landscape) {
    body.lz-on #tab-mini { left: calc(6px + var(--sal)); right: auto; top: calc(62px + var(--sat)); bottom: auto; }
    body.lz-on #tab-pop { left: calc(var(--lzr) + 8px); right: auto; top: calc(62px + var(--sat)); bottom: auto;
      max-width: min(340px, calc(100vw - var(--lzr) - 16px - var(--sar))); }
  }
  .se-bar { top: var(--sat) !important;
    left: calc(var(--lzr) + 50px) !important;
    right: calc(var(--sar) + 58px) !important; }
  body.lz-on .se-bar { left: var(--lzr) !important; right: var(--sar) !important; }
  body.ton-has .se-bar { top: var(--ton-tabsh) !important;
    left: var(--sal) !important; right: var(--sar) !important; }
  body.ton-has #tab-mini, body.ton-has #tab-pop { display: none !important; }
  .se-play svg { width: 18px; height: 18px; }
  .se-bar { padding: 3px 8px; gap: 8px; min-height: 0;
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; }
  .se-bar::-webkit-scrollbar { display: none; }
  .se-num .num-spin, #se-tempo::-webkit-inner-spin-button,
  #se-tempo::-webkit-outer-spin-button { display: none !important; }
  #se-tempo { -moz-appearance: textfield; appearance: textfield; }
}
.mr-root { min-height: 100%; }
.mr-wrap { max-width: 1180px; margin: 0 auto; padding: 22px 26px 60px; }
.mr-h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.mr-sub { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.mr-leer { color: var(--muted); font-size: 13.5px; }
.mr-back { margin: 0 0 10px -10px; }
.mr-filter { display: flex; flex-direction: column; gap: 4px; padding: 0 16px 12px; }
.mr-search > input { height: 36px; }
@media (pointer: coarse) { .mr-search > input { height: 40px; } }
.mr-wahl { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -8px; }
.mr-wahl select { min-height: 32px; padding: 0 8px; }
.mr-chk { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 32px; font-size: 13px; color: var(--muted); }
.mr-liste { padding-top: 4px; border-top: 1px solid var(--line); }
.mr-liste > .pl-spleer { padding-top: 12px; }
.mr-leeren { margin-left: -10px; }
.mr-liste > .pl-spliste:last-child { padding-bottom: 8px; }
.mr-liste > .pl-spabschnitt:first-child { border-top: 0; }
.mr-sphinweis { margin: -4px 0 6px; padding: 0 16px; font-size: 12px; color: var(--muted); }
.mr-blatt { padding-top: 26px; }
.mr-spalte :is(.mr-sichtung, .mr-luecken) { margin: 0 16px 12px; }
.mr-inhalt { container-type: inline-size; }
@container (max-width: 560px) { .mr-inhalt .me-duo { grid-template-columns: minmax(0, 1fr); padding-left: 0; } .mr-inhalt :is(.me-sfuss, .me-lzziel) { margin-left: 0; padding-left: 0; } }
.mr-lesen { max-width: 980px; }
.mr-kopf { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; }
.mr-kopf > div:first-child { flex: 1; min-width: min(320px, 100%); }
.mr-wege { display: flex; flex-wrap: wrap; gap: 4px; }
.mr-titel { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mr-titel:focus:not(:focus-visible) { outline: none; }
.mr-vorsatz { margin: 6px 0 0; max-width: 70ch; font-size: 16px; color: var(--muted); }
.mr-zustand { display: flex; align-items: flex-start; gap: 6px; max-width: 70ch; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.mr-zustand .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--edge); }
.mr-zustand.is-zurueck { color: color-mix(in srgb, var(--status-fehler) 70%, var(--ink)); }
.mr-zustand.is-zurueck .ic { color: var(--status-fehler); }
.mr-lesen h3 { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 17px; font-weight: 600; }
.mr-summe { font-weight: 400; font-size: 13px; color: var(--muted); }
.mr-angaben { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 12px 0 0; }
.mr-kopf + .mr-angaben, .mr-kurator + .mr-angaben { margin-top: 22px; border-top: 1px solid var(--line); }
.mr-angaben > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mr-angaben dt { font-size: 13px; color: var(--muted); }
.mr-angaben dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.mr-flies { font-size: 14px; line-height: 1.55; margin: 12px 0 0; }
.mr-lzliste { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 80ch; }
.mr-lz { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.5; }
.mr-grp { justify-self: start; align-self: start; min-width: 28px; margin-top: 1px; padding: 1px 6px; border-radius: var(--r-small); background: var(--field);
  color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5; text-align: center; }
.mr-komp { display: block; font-size: 13px; color: var(--muted); font-style: normal; }
.mr-hinweis { margin: 10px 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.mr-verlauf { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.mr-verlauf :is(td, th) { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.mr-verlauf th { width: 28%; font-weight: 600; }
.mr-verlauf .mr-min { width: 64px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mr-verlauf tr.res { color: var(--muted); }
.mr-ref > td:last-child > span { display: block; color: var(--muted); font-size: 13px; }
.mr-soz { font-size: 13px; font-weight: 400; color: var(--muted); }
.mr-trenn { display: inline-flex; vertical-align: -2px; color: var(--muted); }
.mr-sp { line-height: 1.5; margin: 0 0 4px; }
.mr-sp > b { margin-right: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mr-fehll { color: var(--muted); }
.mr-fehll .mr-fl { display: block; padding-left: 14px; }
.mr-fehll .mr-fl em { font-style: normal; font-weight: 600; }
.mr-fehll .mr-fl em::after { content: ' —'; font-weight: 400; }
.mr-z { display: flex; gap: 10px; font-size: 13.5px; align-items: baseline; }
.mr-z > b { flex: 0 0 148px; font-weight: 600; }
@media (pointer: coarse) { .mr-zwei :is(select, .mr-chk) { min-height: 40px; } }
@media (max-width: 760px) {
  .mr-blatt { padding-top: 14px; }
  .mr-angaben { grid-template-columns: minmax(0, 1fr); }
  .mr-titel { font-size: 24px; }
  .mr-verlauf, .mr-verlauf tbody, .mr-verlauf tr, .mr-verlauf :is(td, th) { display: block; width: auto; }
  .mr-verlauf tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .mr-verlauf :is(td, th) { padding: 0; border: 0; }
  .mr-verlauf td:empty { display: none; }
}
.mr-vorschlag { margin-top: 8px; }
.pk-mwtools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.pk-mwtools .ks-frage-feld { flex: 1 1 200px; width: auto; }
.pk-mwtools label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.8px; color: var(--muted); }
.pk-mwhint { font-size: 12.2px; color: var(--muted); font-style: italic; }
.pk-mwgrid { display: flex; flex-direction: column; max-height: 46vh; overflow: auto; border-top: 1px solid var(--line); }
.pk-mwcard { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 6px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pk-mwcard:hover { background: var(--field); }
.pk-mwcard:active { background: var(--field-pressed); }
.pk-mwcard.blass b { color: var(--muted); font-weight: 500; }
.pk-mwmin { float: right; color: var(--muted); font-size: 12px; }
.pk-mwkurz { display: block; font-size: 12.2px; color: var(--muted); margin-top: 3px; }
.pk-mwlade { color: var(--muted); font-size: 13px; }
.pk-mwprnote { margin: 8px 0 2px; font-size: 12.4px; color: var(--muted); line-height: 1.5; }
.pk-mwprnote b { color: inherit; font-weight: 600; }
.pk-mwpr { display: block; margin-top: 6px; font-size: 11.8px; font-weight: 600;
  color: var(--muted); }
.pk-mwpr + .pk-mwpr { margin-top: 2px; font-weight: 500; opacity: .8; }
.pk-mwpr.p-tragen, .pk-mwpr.p-mitnehmen { color: var(--status-ok); }
.pk-mwpr.p-ueben { color: var(--accent); }
.pk-mwpr.p-seltener { color: var(--muted); font-weight: 500; }
.pk-mwpr.voll { font-weight: 500; font-style: italic; }
.pk-medlink { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.pk-medlink .ks-frage-feld { flex: 1 1 200px; width: auto; }
.pk-buchhint { margin: 6px 0 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pk-buchliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pk-buchliste li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pk-buchliste li:last-child { border-bottom: none; }
.pk-buchliste span { color: var(--ink); }
.pk-buchliste span.mut { color: var(--muted); }
.me-wrap { max-width: 980px; }
.me-wrap .ks-in-place { display: block; width: calc(100% + 12px); line-height: 1.5; }
.me-wrap textarea.me-text { resize: none; field-sizing: content; min-height: 1.5em; overflow: hidden; }
.me-hinweis { display: flex; align-items: flex-start; gap: 6px; max-width: 70ch; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.me-hinweis .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.me-titel { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.me-titel > .ks-in-place { line-height: 1.2; }
.me-wrap > textarea#me-kurz { margin-top: 4px; max-width: 70ch; font-size: 16px; color: var(--muted); }
.me-wrap > textarea#me-kurz:focus { color: var(--accent); }
.me-sec { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.me-sec > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.me-summe { font-weight: 400; font-size: 13px; color: var(--muted); }
.me-note { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.me-rubrik { display: block; margin: 10px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.me-angaben { display: flex; flex-direction: column; margin: 0; }
.me-angaben > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: baseline; gap: 8px; min-height: 36px;
  padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.me-angaben dt { color: var(--muted); }
.me-angaben dd { margin: 0; min-width: 0; }
.me-angaben dd > :is(select, .ks-segmented, .pl-marken) { vertical-align: middle; }
.me-angaben .pl-marken { margin-top: 0; }
.me-zahl { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.me-zahl input[type="number"] { width: 56px; height: 30px; padding: 0 2px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.me-plus { min-height: 32px; margin-top: 8px; }
.me-griff { flex: none; min-width: 32px; height: 32px; padding: 0; color: var(--muted); }
.me-lzliste { list-style: none; margin: 0; padding: 0; }
.me-lz { padding: 8px 0; border-bottom: 1px solid var(--line); }
.me-lzzeile { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.me-lzzeile > .ks-segmented > button { height: 28px; min-width: 32px; padding: 0 6px; font-size: 12px; }
.me-lzzeile > .ks-in-place { flex: 1; min-width: 0; margin: 0 -6px; }
.me-lzziel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0 110px; font-size: 13px; }
.me-lzziel .me-plus { margin-top: 0; }
.me-lzziel .me-note { flex-basis: 100%; margin: 0; }
.me-ziel { color: var(--muted); }
.me-komps { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.me-komp { display: inline-flex; align-items: center; gap: 2px; }
.me-steps { border-top: 1px solid var(--line); }
.me-step { padding: 10px 0 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.me-skopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.me-nr { flex: none; min-width: 18px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.me-phase { flex: 1 1 180px; min-width: 0; }
.me-phase > .ks-in-place { font-weight: 600; }
.me-skopf > select { min-height: 30px; font-size: 13px; }
.me-skopf > .pl-marken { margin-top: 0; }
.me-skopf > .me-griff { margin-left: auto; }
.me-skopf .pl-marke .ic { width: 14px; height: 14px; }
.me-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding-left: 28px; }
.me-sfuss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; padding-left: 28px; }
.me-wert { display: inline-flex; flex: 1 1 260px; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.me-wert > input { flex: 1; min-width: 0; color: var(--ink); }
.me-sfuss > .pl-marken { margin-top: 0; }
.me-ref { display: flex; align-items: center; gap: 10px; }
.me-reftitel { flex: 1; min-width: 0; font-weight: 600; }
.me-wrap textarea#me-hr-blick { min-height: 3em; }
.me-wrap textarea#me-hr-text { min-height: 6em; }
.me-pruef { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.me-pruef > p { margin: 0 0 6px; }
.me-pruef ul { list-style: none; margin: 0; padding: 0; }
.me-pruef li, .me-pruef.is-ok { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0; }
.me-pruef .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.me-pruef li.is-hart { color: color-mix(in srgb, var(--status-fehler) 70%, var(--ink)); }
.me-pruef li.is-hart .ic { color: var(--status-fehler); }
.me-pruef.is-ok .ic { color: var(--status-ok); }
dialog.me-wahl { width: min(680px, calc(100vw - 32px)); box-sizing: border-box; }
.me-klist { max-height: 56vh; overflow: auto; margin-top: 10px; border-top: 1px solid var(--line); }
.me-kitem { display: block; width: 100%; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.me-kitem:hover { background: var(--field); }
.me-kitem:active { background: var(--field-pressed); }
.me-kitem > b { display: block; font-size: 14px; font-weight: 600; }
.me-kitem > span { display: block; font-size: 12.5px; color: var(--muted); }
.me-kgrp { margin: 14px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
@media (pointer: coarse) {
  .me-wrap :is(.pl-marke, .ks-tool, .ks-secondary, select, .ks-segmented > button), .me-wrap input:is([type="number"], [type="text"]:not(.ks-in-place)) { min-height: 40px; }
  .me-griff { min-width: 40px; }
}
@media (max-width: 760px) {
  .me-titel { font-size: 24px; }
  .me-angaben > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .me-lzziel, .me-duo, .me-sfuss { margin-left: 0; padding-left: 0; }
}
.mr-btn { border: 1px solid var(--line); border-radius: var(--r); padding: 4px 13px;
  background: transparent; color: inherit; font: inherit; font-size: 12.5px; cursor: pointer; }
.mr-btn:hover { border-color: var(--accent); color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.mr-mark { font-size: 12px; font-style: normal; color: var(--muted); font-weight: 400; }
.vz-blatt .mr-back { margin-left: -10px; }
.vz-angaben { display: flex; flex-wrap: wrap; gap: 4px 36px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.vz-angabe { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.vz-angabe label { font-size: 13px; color: var(--muted); }
.vz-angabe select { margin-left: -8px; }
.vz-angabe input[type="number"] { width: 56px; text-align: right; }
.vz-einheit { margin-left: -4px; font-size: 13px; color: var(--muted); }
.vz-note { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.vz-prnote b { color: var(--ink); font-weight: 600; }
.vz-zeigen { margin-top: 18px; }
.vz-zeigen .ks-secondary { margin-left: -10px; }
.vz-nimm { margin-top: 18px; }
.vz-nimmzeile { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.vz-nimmzeile > button.primary, .vz-zeigen > button.primary { min-height: 36px; padding: 0 16px; }
.vz-vorsatz { margin: 6px 0 0; max-width: 70ch; font-size: 16px; line-height: 1.5; color: var(--muted); }
.vz-nimm .ld-fehler { margin-bottom: 8px; }
@media (max-width: 759px) { .vz-angaben { gap: 0 24px; } }
.kr-root { min-height: 100%; }
.kr-wrap { max-width: 1180px; margin: 0 auto; padding: 22px 26px 60px; }
.kr-blatt { padding-top: 22px; }
.kr-inhalt { container-type: inline-size; }
@container (max-width: 560px) { .kr-inhalt .le-duo { grid-template-columns: minmax(0, 1fr); } }
.le-leer { color: var(--muted); font-size: 13.5px; margin: 4px 0; }
.le-wrap { max-width: 1000px; }
.le-felder { border: 0; margin: 0; padding: 0; min-width: 0; }
.le-wrap .ks-in-place:disabled { background: transparent; color: inherit; -webkit-text-fill-color: currentColor; opacity: 1; cursor: text; }
.le-wrap .ks-in-place:disabled::placeholder { color: transparent; }
.le-felder:disabled :is(.le-griff, .le-plus) { display: none; }
.le-kursnr { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.le-titel { margin: 0 0 14px; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.le-titel > .ks-in-place { display: block; width: calc(100% + 12px); }
.le-wrap .ks-in-place { display: block; width: calc(100% + 12px); line-height: 1.5; }
.le-wrap textarea.le-text { resize: none; field-sizing: content; min-height: 1.5em; overflow: hidden; }
.le-angaben { display: flex; flex-direction: column; margin: 0 0 8px; }
.le-angaben > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: baseline; gap: 8px; min-height: 32px; font-size: 13.5px; }
.le-angaben dt { color: var(--muted); }
.le-angaben dd { margin: 0; min-width: 0; }
.le-neben { color: var(--muted); font-size: 12.5px; }
.le-sec { margin: 26px 0 0; }
.le-sec > h3, .le-seckopf > h3 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 650; }
.le-seckopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.le-seckopf > h3 { padding: 0; border: 0; }
.le-zahl { font-weight: 400; font-size: 13px; color: var(--muted); }
.le-note { font-size: 12.5px; color: var(--muted); margin: 8px 0; }
.le-rubrik { margin: 10px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.le-warn { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); }
.le-warn .ic { flex: none; width: 14px; height: 14px; }
.le-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.le-plus { min-height: 32px; }
.le-griffe { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.le-griff { min-width: 32px; height: 32px; padding: 0; color: var(--muted); }
.le-liste { list-style: none; margin: 0; padding: 0; }
.le-liste > li { display: flex; align-items: flex-start; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.le-liste > li > .ks-in-place { flex: 1; min-width: 0; margin: 0 -6px; }
.le-liste > li > .le-griff { margin-top: -4px; }
.le-lek { border-bottom: 1px solid var(--line); }
.le-lkopf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; padding: 4px 0; }
.le-nr { flex: none; min-width: 18px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.le-lh { flex: 1 1 200px; min-width: 0; margin: 0; font-size: 15px; font-weight: 600; }
.le-ltitel { display: inline-flex; align-items: center; min-height: 24px; gap: 4px; cursor: pointer; border-radius: var(--r-small); }
.le-ltitel:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.le-ltitel .ic { flex: none; width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); transition: transform .12s; }
.le-ltitel[aria-expanded="true"] .ic { transform: none; }
.le-lmeta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.le-lbody { padding: 0 0 16px 28px; }
.le-lbody > input.ks-in-place { font-weight: 600; }
.le-schritte { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 14px; }
.le-schritte > tbody > tr > :is(td, th) { padding: 10px 10px 12px 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
.le-schritte > tbody > tr > td.le-snr { width: 22px; padding-top: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.le-sart { width: 150px; }
.le-sart > select { max-width: 100%; }
.le-sinhalt { min-width: 0; }
.le-sinhalt > .le-rubrik:first-child { margin-top: 0; }
.le-schritte > tbody > tr > td.le-griffe { width: 1%; padding-right: 0; }
.le-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.le-vf { display: block; }
.le-vin { display: flex; align-items: center; gap: 6px; }
.le-vin input { flex: 1 1 auto; min-width: 0; max-width: 340px; }
.le-tot { color: var(--status-fehler); display: inline-flex; flex: none; }
.le-werte { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.le-wert { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.le-wert > select, .le-wert > input { color: var(--ink); }
.le-kurz { width: 64px; }
.le-mittel { width: 180px; }
.le-aus { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.le-aus > .le-rubrik { margin: 0 6px 0 0; }
.le-akk { margin-top: 4px; }
.le-akt { border-collapse: collapse; margin-top: 4px; }
.le-akt th { padding: 0 6px 4px 0; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; }
.le-akt td { padding: 2px 6px 2px 0; }
.le-akt input { width: 100%; box-sizing: border-box; }
.le-akt td:nth-child(-n+2) { width: 58px; }
.le-akt td:nth-child(3), .le-akt td:nth-child(4) { width: 80px; }
.le-akt td:nth-child(5) { width: 140px; }
.le-werk > .le-vf { margin-top: 10px; }
.le-quellen { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.le-quellen th { padding: 4px 10px 6px 0; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; }
.le-quellen th:nth-child(3) { width: 22%; }
.le-quellen thead td { width: 40px; }
.le-quellen tbody td { padding: 6px 10px 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
.le-vlist { list-style: none; margin: 0; padding: 0; }
.le-vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 40px; padding: 2px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.le-vname { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.le-vherk { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.le-vrow.tot .le-vherk { color: var(--status-fehler); }
.le-voeffnen { gap: 4px; padding: 0 8px; }
@media (max-width: 760px) {
  .le-angaben > div { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 0; }
  .le-lbody { padding-left: 0; }
  .le-schritte, .le-schritte > tbody, .le-schritte > tbody > tr { display: block; }
  .le-schritte > tbody > tr { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; border-top: 1px solid var(--line); padding: 8px 0 10px; }
  .le-schritte > tbody > tr > :is(td, th) { border: 0; padding: 0; }
  .le-schritte > tbody > tr > .le-sinhalt { grid-column: 1 / -1; grid-row: 2; padding-top: 6px; }
  .le-schritte > tbody > tr > td.le-snr { padding-top: 6px; }
  .le-sart { width: auto; }
  .le-akt td:nth-child(5) { width: auto; }
}
.br-root { height: 100%; overflow: hidden; }
.lz-content.br-root { padding-bottom: var(--sab); }
.br-wrap { height: 100%; display: flex; flex-direction: column; }
.br-flaeche { flex: 1 1 auto; min-height: 0; position: relative; overflow: auto; }
.br-leer { color: var(--muted); font-size: 13.5px; padding: 26px; }
#bib-pop.bib-inline { position: static; inset: auto; z-index: auto; padding: 0;
  background: none; backdrop-filter: none; display: block; height: 100%; }
#bib-pop.bib-inline .bib-card { width: 100%; height: 100%; border: 0; border-radius: 0;
  box-shadow: none; animation: none; }
#bib-pop.bib-inline .bib-head { display: none; }
#bib-pop:not(.bib-inline) #bib-h1 { display: none; }
#wb-status.fehler, #cw-status.fehler, #vs-status.fehler, #wb-ende { color: var(--status-fehler); }
#wb-status .ic, #cw-status .ic, #vs-status .ic { vertical-align: -.2em; }
.se-tabs { display: flex; gap: 2px; margin: 0 0 12px; border-bottom: 1.5px solid var(--line); }
.se-tab { flex: 1 1 0; min-width: 0; }
.se-tab {
  position: relative;
  padding: 9px 4px 10px; margin-bottom: -1.5px; border: 0;
  border-radius: var(--r); background: none;
  color: var(--muted); font: inherit; font-size: 12px; font-weight: 800;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .14s ease;
}
.se-tab:hover { color: var(--ink); background: var(--field); }
.se-tab:active { color: var(--ink); background: var(--field-pressed); }
.se-tab.on { color: var(--ink); }
.se-tab::after {
  content: ""; position: absolute; left: 4px; right: 2px; bottom: 1px; height: 5px; pointer-events: none;
  background: var(--accent); -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; opacity: 0;
}
.se-tab.on::after { opacity: 1; }
.se-tab:focus-visible { outline-offset: -2px; }
.se-pane[hidden] { display: none; }
.se-palhint { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.se-secbody.pal-feld { display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px; align-items: stretch; }
.se-secbody.pal-feld, body.lz-on .se-col .se-secbody.pal-feld { padding: 0 8px 8px; }
.se-secbody.pal-feld button[data-pal],
body.lz-on .se-col .se-secbody.pal-feld button[data-pal] {
  width: auto; min-width: 30px; height: 32px; padding: 0 5px; margin: 0;
  border: none; border-radius: var(--r); background: none;
  font-size: 17px; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.se-secbody.pal-feld button[data-pal]:hover,
body.lz-on .se-col .se-secbody.pal-feld button[data-pal]:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--blau);
}
.se-secbody.pal-feld button[data-pal].on,
body.lz-on .se-col .se-secbody.pal-feld button[data-pal].on {
  background: color-mix(in srgb, var(--blau) 14%, transparent); color: var(--blau);
  box-shadow: inset 0 0 0 1.5px var(--blau);
}
.eo-hlrow { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.eo-hlrow > span:nth-child(2) { flex: 1 1 auto; }
.eo-hlweg { min-width: 32px; height: 32px; padding: 0; color: var(--muted); }
.eo-hladd { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 8px; }
.eo-hladd select { flex: 1 1 0; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 4px 6px; background: var(--panel); font: inherit; font-size: 12.5px; }
.eo-hladd #eo-hltyp { flex: 1 0 100%; }
.eo-hladd button { flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: var(--r); width: 30px;
  height: 30px; padding: 0; background: var(--panel); font: inherit; cursor: pointer; }
body.lz-on .se-col .se-secbody .eo-hladd select { border-radius: var(--r); padding: 4px 6px; }
body.lz-on .se-col .se-secbody .eo-hladd button { border-radius: var(--r); padding: 0; margin: 0; }
.eo-hladd button:hover { border-color: var(--blau); color: var(--blau); }
.eo-wz { display: flex; align-items: center; justify-content: center; gap: 7px; }
.eo-scope { display: flex; gap: 8px; }
.eo-scope > label { flex: 1 1 0; min-width: 0; }
.se-suchfeld { flex: 1; }
.se-suchfeld > button {
  position: absolute; right: 5px; display: inline-flex; padding: 5px; border: 0; border-radius: var(--r-small);
  background: none; color: var(--muted); cursor: pointer;
}
.se-suchfeld > button:hover { color: var(--ink); }
.se-suchfeld > button[hidden] { display: none; }
.se-suchfeld:has(> button:not([hidden])) > input { padding-right: 34px; }
.rh-svg { display: block; margin: 8px auto 4px; max-width: 100%; }
.rh-takt { stroke: var(--ink); stroke-width: 1.6; opacity: .55; }
.rh-gl { fill: var(--ink); stroke: none; }
.rh-box { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.rh-silbe { font-size: 20px; font-weight: 600; fill: var(--ink); }
.rh-pause .rh-box { stroke: var(--edge); stroke-width: 1; stroke-dasharray: 4 3; }
.rh-hilfslinie { stroke: var(--ink); stroke-width: 1.3; }
.rh-marke .ex-dot { display: block; margin: 1px auto 0; }
.rh-marke .ex-dot.hit { width: 26px; height: 22px; }
.rh-marke .ex-dot.miss { width: 18px; height: 18px; margin-top: 3px; }
.ex-rhybild { margin: 4px 0 2px; }
.ex-lege { display: flex; gap: 4px; margin: 10px auto 6px; max-width: 560px; }
.ex-offen { flex: 1; border-style: dashed; opacity: .55; min-width: 0; }
.ex-slot {
  min-width: 0; padding: 11px 4px; border-radius: var(--r); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent); background: none; color: var(--muted);
  cursor: default;
}
.ex-slot.voll {
  border-style: solid; border-color: color-mix(in srgb, var(--gruen) 55%, transparent);
  background: color-mix(in srgb, var(--gruen) 14%, transparent); color: var(--ink); cursor: pointer;
}
.ex-slot.voll.ex-klingt {
  border-color: color-mix(in srgb, var(--gruen) 95%, transparent);
  background: color-mix(in srgb, var(--gruen) 42%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gruen) 18%, transparent);
}
.ex-vorrat { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 10px; }
.ex-chip {
  min-width: 60px; padding: 12px 12px; border-radius: var(--r); font-weight: 700; font-size: 16px;
  border: 1px solid var(--line); background: var(--field); cursor: pointer;
}
.ex-chip:hover { background: var(--field-hover); }
.ex-stripslide { position: relative; will-change: transform; }
.ex-mtag {
  position: absolute; top: 2px; height: 16px; padding: 0;
  font: 700 10px/16px inherit; text-align: center; color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-bottom: none;
  border-radius: var(--r) var(--r) 0 0; background: rgba(255, 255, 255, .72);
  cursor: pointer;
}
.ex-mtag:hover { background: var(--panel); color: var(--ink); }
.ex-mtag.now { border-color: var(--accent); color: var(--accent); }
.ex-mtag.picked { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ex-fixrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.ex-fix {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 6px; border-radius: var(--r); border: 1.5px solid transparent;
  touch-action: none;
}
.ex-fix.fok { border-color: var(--accent); background: color-mix(in srgb, var(--gruen) 8%, transparent); }
.ex-fix.geaendert { background: color-mix(in srgb, var(--bernstein) 16%, transparent); border-color: color-mix(in srgb, var(--bernstein) 55%, transparent); }
.ex-fixarr {
  border: none; background: none; cursor: pointer; padding: 2px 10px;
  font-size: 12px; color: var(--muted); line-height: 1;
}
.ex-fixarr:hover { color: var(--ink); }
.ex-fixz { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.ex-fixz b { font-size: 13px; font-weight: 800; line-height: 1.2; }
.ex-fixz .hsign { display: block; }
.ex-ueb { display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 10px; border-radius: var(--r); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ex-ueb b { font-size: 17px; font-weight: 800; }
.ex-ueb i { font-size: 11.5px; font-style: normal; color: var(--muted); }
.note-field { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1.5px solid var(--line);
  border-radius: var(--r); background: var(--panel); color: var(--ink); }
.note-field.nf-active { outline: 2px solid var(--accent); outline-offset: 2px; }
.note-field:not(.nf-active) :is(.nf-tools, .nf-syllables) { display: none; }
.nf-tools, .nf-syllables, .nf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nf-scroll { position: relative; overflow: auto; max-height: 60vh; }
.nf-area svg { display: block; }
.note-field.nf-active .nf-area { cursor: crosshair; }
:is(.nf-syllables, .nf-foot) button { height: 36px; min-width: 44px; padding: 0 12px; border: 1.5px solid var(--line);
  border-radius: var(--r); background: var(--panel); color: var(--ink); font-weight: 700; font-size: 14px; }
.nf-status { flex: 1; margin: 0; min-height: 1.2em; font-size: 12.5px; color: var(--muted); }
.nf-status.warn { color: var(--status-fehler); }
.nf-hints { flex-basis: 100%; margin: 0; padding: 0 0 0 18px; font-size: 13px; color: var(--ink); }
.nf-hints li.info { color: var(--muted); }
.nf-area [data-uid].nf-given { opacity: .45; }
.ks-ib { display: inline-flex; align-items: center; gap: 0.42em; vertical-align: -0.1em; }
.ks-ib .ic { flex: none; width: 1.15em; height: 1.15em; }
.ks-ib-t { min-width: 0; }
.ks-ib .nz { flex: none; height: 1.15em; width: auto; }
.nz { display: inline-block; vertical-align: middle; color: inherit; }
.nz-wort { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 0.94em; }
.pk-mwbedarf { margin: 0 0 4px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.pk-mwahl .pk-mwgrid { max-height: 34vh; }
.pk-mwvor { margin: 2px 0 6px; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--ink); }
.pk-mwvor li { margin: 3px 0; }
.pk-mwvor b { font-weight: 650; }
.pk-mwnosuch { margin: 4px 0 6px; font-size: 12.8px; line-height: 1.55; color: var(--muted); font-style: italic; }
.pk-mwsec i { font-style: normal; font-weight: 400; color: var(--muted); }
.pk-mwcard span { display: block; margin-top: 2px; font-size: 11.8px; font-weight: 400; color: var(--muted); }
.pk-mwahl .pk-mwtreffer { max-height: none; overflow: visible; }
.pk-vglsub { margin: 3px 0 8px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.pk-vgllist { margin: 0 0 6px; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.pk-vgllist li { margin: 3px 0; }
.pk-vgllist span { display: block; font-size: 11.8px; color: var(--muted); }
.pk-vgltab { display: flex; flex-direction: column; gap: 4px; }
.pk-vglrow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 18px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pk-vglwo { display: flex; flex-direction: column; min-width: 0; }
.pk-vglwo b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-vglwo i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.pk-vglmein { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-vglfremd { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-vglpfeil { text-align: center; color: var(--muted); }
.bib-katfilter { padding: 0 18px 10px; display: flex; flex-direction: column; gap: 7px; }
.bib-katfilter[hidden] { display: none; }
.bib-kfrow { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.bib-kfrow select { font-size: 13px; }
.bib-kfchk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.bib-kfchips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bib-kfhead { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.bib-kfchip { border: 0; border-radius: var(--r); padding: 3px 10px;
  background: var(--field); color: inherit; font: inherit; font-size: 12.5px; cursor: pointer; }
.bib-kfchip:hover { background: var(--field-hover); }
.bib-kfchip.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bib-kfchip.mut { color: var(--muted); }
.mr-kurator { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 12px 0; padding: 10px 14px; border: 1px solid var(--status-warnung); border-radius: var(--r);
  background: color-mix(in srgb, var(--status-warnung) 8%, var(--panel)); font-size: 13px; }
.mr-kurator > b { display: inline-flex; align-items: center; gap: 6px; color: var(--status-warnung); }
.mr-kubtns { display: flex; flex-wrap: wrap; gap: 6px; }
.mr-kurator .mr-btn { font-size: 12.5px; padding: 3px 10px; }
.mr-kuweg { opacity: .75; }
.mr-kunote { color: var(--muted); font-size: 12.2px; }
.mr-luecken { margin: 10px 0 18px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r); font-size: 13px; }
.mr-luecken > b { display: inline-flex; align-items: center; gap: 6px; }
.mr-luecken p { margin: 4px 0 8px; color: var(--muted); font-size: 12.4px; }
.mr-luecken ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mr-lksperrt { display: inline-block; min-width: 26px; font-weight: 700; color: var(--status-warnung); }
.mr-sichtung { margin: 10px 0 16px; padding: 12px 14px; border: 1px solid var(--status-warnung);
  border-radius: var(--r); background: color-mix(in srgb, var(--status-warnung) 8%, var(--panel)); }
.mr-sichtung > b { display: inline-flex; align-items: center; gap: 6px; color: var(--status-warnung); }
.mr-srow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 13px; }
.mr-stitel { font-weight: 600; }
.mr-sart { color: var(--muted); font-size: 12.2px; }
.mr-shinweis { display: inline-flex; align-items: center; gap: 4px; font-size: 12.2px;
  color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); }
.mr-srow .mr-btn { font-size: 12.5px; padding: 3px 10px; }
.mr-sinhalt { flex-basis: 100%; font-size: 12.4px; }
.mr-sinhalt > summary { cursor: pointer; color: var(--muted); }
.mr-sinhalt dl { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 4px 10px; margin: 6px 0 0; }
.mr-sinhalt dt { font-weight: 600; }
.mr-sinhalt dd { margin: 0; min-width: 0; }
.mr-sinhalt pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.mr-sinhalt .mr-sheute { color: var(--muted); }
.bib-tdrev { white-space: nowrap; text-align: right; }
.bib-tdrev .bib-tb { font-size: 12px; padding: 2px 8px; margin-left: 4px; }
.bib-kfchk.bib-kfwartet { color: var(--status-warnung); font-weight: 600; }
.bib-kfchk.bib-kfwartet b { display: inline-block; min-width: 18px; padding: 0 5px;
  border-radius: var(--r); background: var(--status-warnung); color: var(--panel); font-size: 11.5px; text-align: center; }
.bib-tab col.c-rev { width: 300px; }
.bib-kedrow > td { padding: 0 !important; background: color-mix(in srgb, var(--status-warnung) 6%, var(--panel)); }
.bib-kedit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  padding: 10px 14px; }
.bib-kedit label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px;
  color: var(--muted); }
.bib-kedit input { border: 1px solid var(--edge); border-radius: var(--r);
  padding: 4px 8px; background: var(--panel); color: inherit; font: inherit; font-size: 13px; }
.bib-kedit select { font-size: 13px; }
.bib-kedit input { min-width: 200px; }
.bib-kedflex { flex: 0 0 8px; }
.bib-keddel { color: color-mix(in srgb, var(--status-fehler) 70%, var(--ink)); border-color: color-mix(in srgb, var(--status-fehler) 35%, var(--line)); }
.bib-mk.mk-dopp { background: color-mix(in srgb, var(--status-warnung) 16%, var(--panel)); color: color-mix(in srgb, var(--status-warnung) 60%, var(--ink)); }
.bib-tdrev .bib-kedbtn { margin-left: 4px; }
.tab .tab-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  min-height: 0;
  padding: 0;
  margin: -3px -5px -3px 0;
}
@media (pointer: coarse) {
  .tab .tab-x { width: 30px; height: 30px; margin: -7px -9px -7px -2px; }
}
#export-dialog .exp-row label { min-height: 26px; }
@media (pointer: coarse) {
  #export-dialog .exp-row label { min-height: 34px; }
}
.bib-hk {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px; min-height: 26px;
  margin: -4px -6px;
  cursor: pointer;
}
.bib-hk input { width: 15px; height: 15px; margin: 0; }
@media (pointer: coarse) {
  .bib-hk { min-width: 34px; min-height: 34px; margin: -6px -8px; }
  .bib-hk input { width: 18px; height: 18px; }
}
@media (pointer: coarse) and (min-width: 701px) {
  button.mini2 { min-height: 34px; min-width: 40px; }
}
@media (pointer: coarse) {
  :is(#ex-pop, #lg-pop) button.mini2 { min-height: 40px; }
}
@media (pointer: coarse) {
  .num-spin { display: none; }
}
@media (pointer: coarse) {
  .statusbar a, .statusbar button, .statusbar select {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
  }
}
.ks-frage { font-family: var(--font); }
.ks-frage .ks-dialog-title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.ks-frage h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ks-frage .hint { color: var(--muted); font-size: 13px; margin: 0 0 4px; line-height: 1.45; white-space: pre-line; }   
.ks-frage-liste { max-height: 40vh; overflow-y: auto; padding-left: 18px; }
.lzr-ausk { width: min(720px, calc(100vw - 32px)); box-sizing: border-box; }
.lzr-ausk .lzr-ausk-warn { color: var(--status-warnung); font-weight: 600; }
.lzr-ausk-liste { max-height: 32vh; overflow-y: auto; margin: 4px 0 8px; padding-left: 18px; font-size: 12.5px; line-height: 1.45; }
.lzr-ausk-liste li { margin: 2px 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.lzr-ausk-ganz summary { cursor: pointer; font-size: 13px; color: var(--muted); margin: 4px 0; }
.lzr-ausk-ganz pre { max-height: 40vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; margin: 4px 0;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); }
mark.lzr-ausk-treffer { background: color-mix(in srgb, var(--status-warnung) 28%, transparent); color: inherit; border-radius: var(--r-small); padding: 0 1px; }
mark.lzr-ausk-treffer.mehrdeutig { background: transparent; text-decoration: underline dotted var(--status-warnung) 2px; text-underline-offset: 3px; }
.ks-frage-feld {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--panel);
  color: var(--ink);
}
.ks-frage-feld:hover:not(:disabled, :focus) { border-color: var(--ink); }
textarea.ks-frage-feld { resize: vertical; min-height: 7em; line-height: 1.45; font: inherit; }
select.ks-frage-feld { display: flex; width: fit-content; max-width: calc(100% + 8px); min-height: 36px; margin: 6px 0 0 -8px; padding: 0 8px;
  border: 0; background: transparent; font-weight: 600; }
select.ks-frage-feld:hover:not(:disabled) { background: var(--field); }
.ks-frage-label { display: block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.ks-frage-label + .ks-frage-feld { margin-top: 14px; }
.ks-frage .ks-frage-fehler { color: var(--status-fehler); }
.ks-frage menu { justify-content: flex-end; margin-top: 26px; padding-top: 0; }
.ks-frage menu > button.primary { min-height: 36px; padding: 0 16px; }
.ks-wahl { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.ks-wahl-weg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  color: inherit;
  cursor: pointer;
}
.ks-wahl-weg b { font-size: 14px; font-weight: 600; }
.ks-wahl-weg small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ks-wahl-weg:hover { background: var(--field); }
.ks-wahl-weg:focus-visible { outline-offset: 1px; }
.ks-wahl-warn { border-color: var(--status-fehler); }
.ks-wahl-warn b { color: var(--status-fehler); }
.ks-wahl-warn:hover { border-color: var(--status-fehler); background: color-mix(in srgb, var(--status-fehler) 6%, var(--raised)); }
.ks-frage menu { border-top: 0; }
button.primary.ks-frage-warn, button.primary.ks-frage-warn:is(:hover, :active) { background: var(--status-fehler); border-color: var(--status-fehler); color: var(--panel); }
.te-wrap { display: flex; flex-direction: column; gap: 6px; }
.te-bar {
  display: flex; flex-wrap: wrap; gap: 3px;
  padding: 3px; border-radius: var(--r);
  background: var(--field);
  position: sticky; top: 0; z-index: 2;
}
.te-w {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  padding: 0;
  border: 1px solid transparent; border-radius: var(--r);
  background: none; color: var(--muted); cursor: pointer;
}
.te-w:hover { background: var(--panel); color: var(--ink); }
.te-w.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.te-flaeche {
  min-height: 220px; max-height: 52vh; overflow-y: auto;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); color: var(--ink);
}
.te-flaeche:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent-line); }
.te-flaeche.te-leer::before {
  content: attr(data-platzhalter);
  color: var(--muted); pointer-events: none; display: block;
}
.te-flaeche .wk-h { margin: 14px 0 4px; font-size: 15px; }
.te-flaeche .lx-link, .te-flaeche .wtb-link { cursor: text; }
.te-vw input[type="search"] {
  width: 100%; min-height: 38px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 14px; background: var(--panel); color: var(--ink);
}
.te-vw input[type="search"]:focus { border-color: var(--blau, var(--rc-noteneditor-accent)); }
.te-vwliste { max-height: 46vh; overflow-y: auto; margin: 6px 0 2px; }
.te-vwtreffer {
  display: block; width: 100%; text-align: left;
  padding: 7px 10px; margin: 0 0 3px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); color: var(--ink); cursor: pointer;
}
.te-vwtreffer:hover { border-color: var(--blau, var(--rc-noteneditor-accent)); }
.te-vwtreffer b { display: block; font-size: 14px; }
.te-vwtreffer small { color: var(--muted); font-size: 12px; }
.lz-sheet-body:has(> .ag-pop) { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.ag-pop { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ag-chatleiste { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ag-chatleiste .spacer { flex: 1; }
.ag-pop :is(.ag-vorrat, .ag-freigabe, .ag-stop)[hidden] { display: none; }
.ag-lauf { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex;
  flex-direction: column; gap: 6px; min-height: 40px; }
.ag-z { font-size: 14px; line-height: 1.35; }
.ag-antwort p, .ag-antwort ul, .ag-antwort ol { margin: 0 0 6px; }
.ag-antwort ul, .ag-antwort ol { padding-left: 18px; }
.ag-antwort li + li { margin-top: 4px; }
.ag-antwort > :last-child { margin-bottom: 0; }
.ag-frage { align-self: flex-end; background: var(--field);
  border-radius: var(--r) var(--r) var(--r-small) var(--r); padding: 6px 10px; max-width: 85%; }
.ag-antwort { align-self: flex-start; border: 1px solid var(--line);
  border-radius: var(--r) var(--r) var(--r) var(--r-small); padding: 6px 10px; max-width: 85%; }
.ag-schritt { color: var(--muted); font-size: 12.5px;
  display: flex; align-items: center; gap: 5px; }
.ag-schlug, .ag-fehl { color: var(--status-fehler); }
.ag-warte { color: var(--muted); font-style: italic; }
.ag-hinweis { color: var(--muted); font-size: 12.5px; }
.ag-frage { position: relative; }
.ag-fanh { color: var(--muted); margin-left: 6px; }
.ag-merk { border: 0; background: none; padding: 0 0 0 6px; cursor: pointer; color: var(--muted); vertical-align: middle; }
.ag-merk:hover { color: inherit; }
.ag-anhang { padding: 0 18px 6px; }
.ag-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: var(--r); padding: 3px 8px 3px 10px; font-size: 12.5px; }
.ag-chip small { color: var(--muted); }
.ag-chipx { border: 0; background: none; padding: 0 2px; cursor: pointer; font: inherit; color: var(--muted); }
.ag-routinen { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; width: min(92vw, 560px); max-height: 86vh; overflow: auto; background: var(--panel); color: inherit; box-sizing: border-box; }
.ag-routinen::backdrop { background: rgba(28,27,24,.35); }
.ag-routinen button { display: inline-flex; align-items: center; gap: 6px; }
.ag-rt-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ag-rt-liste > li { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font-size: 13.5px; }
.ag-rt-kopf { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ag-rt-kopf small, .ag-rt-leer, .ag-rt-rest { color: var(--muted); }
.ag-rt-folge { margin: 4px 0 6px; padding-left: 22px; color: var(--muted); overflow-wrap: anywhere; }
.ag-rt-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.ag-rt-feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.ag-rt-feld input, .ag-rt-edit input { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); color: inherit; min-width: 0; }
.ag-rt-schrittfeld { border: 1px solid var(--line); border-radius: var(--r); margin: 0; padding: 8px 10px 10px; }
.ag-rt-schrittfeld legend { padding: 0 4px; font-size: 13px; color: var(--muted); }
.ag-rt-edit { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ag-rt-edit li { display: grid; grid-template-columns: 1.6em 1fr auto auto auto; gap: 4px; align-items: center; }
.ag-rt-nr { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ag-rt-edit button { padding: 4px 6px; }
.ag-rt-rest { margin: 8px 0 0; font-size: 12.5px; }
.ag-rt-warn { color: var(--status-fehler); }
.ag-rt-fuss { margin-top: 14px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pf-ta { resize: vertical; min-height: 72px; font: inherit; font-size: 13.5px; }
dialog.ur-blatt { width: min(680px, calc(100vw - 32px)); box-sizing: border-box; }
.ur-blattkoerper h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 6px; }
.ur-blattkoerper ul { margin: 0; padding-left: 18px; }
.ur-blattkoerper li { margin: 2px 0; }
.ur-blattkoerper li i, .ur-blatttab i { color: var(--muted); font-style: normal; font-size: 12.5px; }
.ur-blatttab { border-collapse: collapse; width: 100%; }
.ur-blatttab td { vertical-align: top; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); }
.ur-blattmin { width: 42px; color: color-mix(in srgb, var(--accent) 55%, var(--ink)); font-weight: 600; white-space: nowrap; }
.ur-blattgrau { color: var(--muted); font-size: 12.5px; }
.ur-blattleer { color: var(--muted); margin: 0; }
.ag-form { flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 18px 4px; border-top: 1px solid var(--line); }
.ag-plus { flex: none; }
.ag-in { flex: 1; min-width: 0; height: 36px; }
.ag-zeile { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 2px 18px 0; font-size: 12.5px; color: var(--muted); }
.ag-titel { min-height: 28px; padding: 0 6px; margin-left: -6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ag-titel:hover { color: var(--ink); }
.ag-quota { display: inline-flex; align-items: center; gap: 8px; }
.ag-quota[hidden] { display: none; }
.ag-balken { width: 60px; height: 4px; border-radius: 2px; background: var(--field); overflow: hidden; }
.ag-balken > span { display: block; height: 100%; background: var(--muted); }
.ag-ki { flex: none; margin: 0; padding: 4px 18px 10px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.ag-ohne { margin: 12px 0 0; color: var(--muted); }
.ag-fuss { flex: 1; display: flex; align-items: center; gap: 4px 14px; margin: 0; font-size: 13px; color: var(--muted); }
.ag-fuss .spacer { flex: 1; }
.ag-flink { min-height: 28px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ag-flink:hover { color: var(--ink); background: none; }
.ai-chip { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px 0 9px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; vertical-align: middle; }
.ai-chip-hide { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; min-height: 26px; padding: 0; border: 0;
  border-radius: var(--r); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.ai-chip-hide:hover { color: var(--ink); }
.pk-spkopf > .ai-chip { margin: 6px 0 0; }
.pk-lz .ai-chip, .pk-rtitel .ai-chip, .pk-bzu .ai-chip { flex: none; }
.pk-vphase > .ai-chip { margin-top: 6px; }
.se-ai { display: contents; }
#pf-pop { width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--panel); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
#pf-pop[open] { display: flex; flex-direction: column; }
#pf-pop::backdrop { background: rgba(28, 27, 24, .34); }
.pf-kopf { flex: none; display: flex; align-items: center; gap: 10px; box-sizing: border-box; min-height: 60px;
  padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); }
.pf-kopf-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 36px; }
.pf-kopf-ic svg { width: 22px; height: 22px; }
.pf-kopf h2 { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; justify-content: center;
  font-size: 17px; font-weight: 600; line-height: 1.2; }
.pf-kopf-sub { font-size: 13px; font-weight: 400; color: var(--muted); }
.pf-kopf-sub:empty { display: none; }
.pf-kopf h2 > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-x { flex: none; color: var(--muted); }
.pf-x:hover { color: var(--ink); }
.pf-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 16px; }
.pf-foot { flex: none; padding: 12px 18px; border-top: 1px solid var(--line); }
.pf-foot:empty { display: none; }
.pf-ab { margin-top: 22px; }
.pf-ab:first-child { margin-top: 10px; }
.pf-ab > h3 { margin: 0 0 2px; font-size: 14px; font-weight: 600; }
.pf-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 40px; padding: 6px 0; }
.pf-lbl { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pf-lbl > span { font-size: 14px; }
.pf-lbl small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.pf-was { font-weight: 600; }
.pf-reist { font-style: normal; font-size: 12px; color: var(--muted); }
.pf-feld { flex: 0 1 auto; min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 8px; }
.pf-zeile.pf-breit { display: block; }
.pf-zeile.pf-breit .pf-feld { margin-top: 8px; }
.pf-wert { font-size: 14px; color: var(--muted); }
.pf-sel { max-width: 100%; }
.pf-in { font: inherit; box-sizing: border-box; width: 100%; min-height: 36px; }
.pf-in.pf-schmal { width: 84px; }
textarea.pf-in { padding: 6px 8px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); color: var(--ink); }
textarea.pf-in:hover { border-color: var(--ink); }
.pf-devices ul { list-style: none; margin: 0 0 4px; padding: 0; }
.pf-devices li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.pf-devices small { display: block; font-size: 13px; color: var(--muted); }
.pf-devices p { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
.pf-raumfarben { width: 100%; min-width: 0; }
.pf-saetze { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin: 0 -8px; }
.pf-satz.ks-tool { justify-content: flex-start; gap: 10px; font-weight: 400; }
.pf-satz.ks-tool[aria-pressed="true"] { font-weight: 600; }
.pf-satzprobe { flex: none; display: inline-flex; gap: 2px; }
.pf-satzprobe i { width: 7px; height: 16px; border-radius: var(--r-small); }
.pf-raeume { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px 14px; margin-top: 12px; }
.pf-raum { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; cursor: pointer; }
.pf-raum > span { min-width: 0; overflow-wrap: anywhere; }
.pf-rf { flex: none; width: 40px; height: 36px; padding: 3px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); cursor: pointer; }
.pf-farben { display: flex; flex-wrap: wrap; gap: 9px; }
.pf-tupf { position: relative; width: 74px; height: 52px; border: 2px solid transparent; border-radius: var(--r); cursor: pointer; padding: 0; display: flex; align-items: flex-end; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }
.pf-tupf.sel { border-color: var(--ink); }
.pf-tname { width: 100%; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(28, 27, 24, .34); padding: 2px 4px; text-align: center; }
.pf-frei input[type="color"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pf-frei:has(> input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (forced-colors: active) { .pf-frei:has(> input:focus-visible) { outline-color: CanvasText; } }
.pf-weg { margin: 8px 0 0 -10px; color: var(--status-fehler); }
.pf-weg .ic { color: var(--status-fehler); }
.pf-weg:hover:not(:disabled) { background-color: color-mix(in srgb, var(--status-fehler) 9%, var(--panel)); }
.pf-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%; }
.pf-fuss > .ks-secondary { margin-left: -10px; }
.pf-fusszeile { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 12px;
  margin: 0; font-size: 12px; color: var(--muted); }
.pf-fusszeile :is(a, button) { display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px;
  color: inherit; font-size: inherit; font-weight: 400; text-decoration: none; }
.pf-fusszeile :is(a, button):hover { color: var(--ink); background: none; text-decoration: underline; }
.bib-katmehr { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
.lg-mehr { margin: 4px 0 6px; }
.lz-feat > .at-stub { margin: 0 auto; }
.lz-content.lz-feat.at-modus { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.at-raum { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--panel); color: var(--ink); font-size: 13px; }
.at-reiterzeile { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; }
.at-doktabs { display: flex; align-items: center; gap: 4px; flex: 1 1 0; width: 0; min-width: calc(var(--at-tabs, 0) * 60px); max-width: max-content; }
.at-kopfaktionen { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; margin-left: auto; }
.at-doktab { position: relative; display: inline-flex; align-items: center; gap: 2px; height: 38px; max-width: 320px; padding: 0 4px 0 0; border-radius: var(--r); color: var(--muted); font-size: 13px; cursor: pointer; }
.at-tabname { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; height: 100%; min-height: 0; padding: 0 4px 0 8px; border: 0; border-radius: var(--r); background: none; color: inherit; font: inherit; cursor: pointer; }
.at-doktab[hidden] { display: none; }
.at-doktab:hover { color: var(--ink); background-color: var(--field); }
.at-doktab:active { background-color: var(--field-pressed); }
.at-doktab.on { color: var(--ink); font-weight: 600; }
.at-doktab::after {
  content: ""; position: absolute; left: 4px; right: 2px; bottom: 2px; height: 5px; pointer-events: none;
  background: var(--accent); -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
  mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; opacity: 0;
}
.at-doktab.on::after { opacity: 1; }
@media (forced-colors: active) { .at-doktab::after { forced-color-adjust: none; background: CanvasText; } }
.at-tabname:focus-visible { outline-offset: -2px; }
.at-tabx { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-height: 0; padding: 0; color: var(--muted); }
.at-tabx:hover { color: var(--ink); }
.at-tabx svg { width: 12px; height: 12px; }
.at-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-doktabs > .at-doktab { flex: 0 1 auto; min-width: 56px; }
.at-neutab { flex: none; }
.at-start h2 { margin: 0 0 8px; font-size: 22px; }
:is(body.lz-on, body.persona-free).se-on #tab-bar .tab-add { display: inline-flex; align-items: center; gap: 6px; height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; flex: none; white-space: nowrap; box-shadow: none; }
#tab-bar .tab-add .ic { width: 14px; height: 14px; }
:is(body.lz-on, body.persona-free).se-on #tab-bar .tab-add:hover { border-color: var(--accent); color: var(--accent); }
:is(body.lz-on, body.persona-free).se-on #tab-bar .tab-add:focus-visible { outline-offset: -2px; }   
.at-seitenbereich { position: relative; width: 280px; min-width: 0; flex: none; display: flex; flex-direction: column; background: var(--panel); }
.at-dock { min-height: 0; flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 0 40px; font-size: 14px; scrollbar-width: none; }
.at-dock::-webkit-scrollbar { display: none; }
.at-dock:focus-visible { outline-offset: -2px; }
.at-breitengriff { position: absolute; z-index: 2; top: 0; bottom: 0; right: -12px; width: 24px; cursor: col-resize; touch-action: none; }
.at-breitengriff::after { content: ""; position: absolute; top: calc(50% - 24px); left: 10px; width: 4px; height: 48px; border-radius: var(--r-small); background: transparent; transition: background .14s ease; }
.at-breitengriff:hover::after, .at-breitengriff:focus-visible::after, .at-breite-ziehen .at-breitengriff::after { background: color-mix(in srgb, var(--accent) 55%, transparent); }
@media (hover: none) { .at-breitengriff::after, .se-resizer::after { background: color-mix(in srgb, var(--muted) 45%, transparent); } }
.at-breitengriff:focus-visible { outline-offset: -2px; }
.at-breite-ziehen { user-select: none; }
.at-oswrap { display: flex; align-items: center; gap: 6px; margin: 10px 12px 2px; }
.at-suche { flex: 1; }
.at-personas { gap: 4px; margin: 0; padding: 6px 8px 0; }
.at-personas > [role=tab] { flex: 1 1 auto; justify-content: center; min-width: 0; overflow: hidden; }
.at-personas button svg { display: none; }
.at-kaesten > .side-panel-box:first-child > .side-panel { margin-top: 8px; }
.at-kinhalt { padding: 2px 12px 14px 16px; }
.at-kasten .at-eigenschaften > h3 { display: none; }
.at-eigenschaften h3, .at-palette h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.at-eigenschaften:has(.as-eigenschaftsfelder) { display: flex; flex-direction: column; }
.as-eigenschaftsfelder { max-height: clamp(120px, 30vh, 420px); overflow: auto; scrollbar-gutter: stable; }
.as-eigenschaftsaktionen { flex: none; display: flex; flex-wrap: wrap; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); background: var(--panel); max-height: 110px; overflow: auto; }
.at-werkzeuge { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 231px; gap: 4px; }
.at-werkzeuge .at-knopf { width: auto; height: auto; aspect-ratio: 1; }
.at-werkzeuge .at-knopf svg { width: 19px; height: 19px; }
.at-buehne { flex: 1; min-width: 0; overflow: auto; position: relative; background: var(--panel); }
.at-buehnenspalte { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.at-buehnenspalte > .at-buehne { min-height: 0; }
.at-notizen { flex: none; border-top: 1px solid var(--line); background: var(--panel); }
.at-notizen > summary { display: flex; align-items: center; gap: 8px; padding: 5px 12px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); list-style: none; }
.at-notizen > summary::-webkit-details-marker { display: none; }
.at-notizen > summary > svg { flex: none; transition: transform .15s; }
.at-notizen[open] > summary > svg { transform: rotate(90deg); }
.at-notizen > summary:hover { color: var(--ink); }
.at-notizen > summary:focus-visible { outline-offset: -2px; }
.at-notizen-titel { flex: none; }
.at-notizen-vorschau { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; }
.at-notizen[open] .at-notizen-vorschau { display: none; }
.at-notizen textarea { display: block; box-sizing: border-box; width: calc(100% - 24px); margin: 0 12px 8px; min-height: 64px; max-height: 40vh; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; line-height: 1.45; resize: vertical; }
.at-notizen textarea:focus { border-color: var(--accent); }
.at-modus.at-ansicht .at-notizen { display: none; }
.at-schreibplatz { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.at-blaetter { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 18px; min-width: max-content; }
.at-blaetter:has(> .at-erkundung) { min-width: 0; align-items: stretch; }
.at-erkundung { width: 100%; max-width: calc(1020px + 2 * 20px + 2 * 1px); margin: 0 auto; box-sizing: border-box; padding: 16px 20px; border-radius: var(--r); }
.at-erkundung, .ae-vorschau-laeufer {
  color-scheme: light; color: var(--ink); background: var(--paper); font-family: var(--font); }
.at-erkundung { border: 1px solid var(--line); }
.at-erkundung, .ae-vorschau-laeufer {
  --accent: var(--rc-atelier);
  --accent-ink: var(--panel);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--panel));
  --accent-line: color-mix(in srgb, var(--accent) 38%, var(--line)); }
.at-erkundung-kopf { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.at-leerkasten { display: none !important; }
.at-erkundung .exploration-card.ae-gewaehlt { box-shadow: 0 0 0 2px var(--accent-line); }
.at-erkundung .exploration-card:focus { outline-offset: 3px; }
.at-erkundung .exploration-card:focus:not(:focus-visible) { outline: none; }
.at-erkundung .exploration-card + .exploration-card { margin-top: 28px; }
.at-erkundung .exploration-card { position: relative; }
.at-erkundung .ae-ueber { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.at-erkundung [data-head]:focus-visible { outline: 2px dashed var(--accent); outline-offset: 2px; border-radius: var(--r-small); }
.at-erkundung .exploration-block { position: relative; }
.at-erkundung .exploration-card { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.at-erkundung .exploration-block { touch-action: pan-y; }
.at-erkundung .exploration-card img { -webkit-user-drag: none; }
.at-erkundung .exploration-card :is([contenteditable="true"], input, textarea) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.ae-ueber .ae-plus { opacity: .45; }
.ae-ueber .ae-plus.an { opacity: .8; }
.ae-ueber .ae-plus-linie { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; }
.ae-ueber .ae-plus-kreis { fill: var(--panel); stroke: var(--accent); stroke-width: 1.5; }
.ae-ueber .ae-plus .ic, .ae-ueber .ae-schritt-plus .ic { color: var(--accent); }
.ae-ueber .ae-schritt-plus { opacity: .6; }
.ae-ueber .ae-schritt-plus.an { opacity: 1; }
.ae-ueber .ae-schritt-plus rect { fill: var(--panel); stroke: var(--accent); stroke-width: 1.2; }
.ae-ueber .ae-schritt-plus text { fill: var(--accent); font-size: 12px; font-weight: 700; }
.ae-ueber .ae-griff rect { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.ae-ueber .ae-griff .ic { color: var(--muted); }
.ae-ueber .ae-griff.an rect { stroke: var(--accent); }
.ae-ueber .ae-griff.an .ic { color: var(--accent); }
.ae-ueber .ae-ziel { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.ae-ueber .ae-ziel.leise { opacity: .4; }
.ae-ueber .ae-schraffur { stroke: color-mix(in srgb, var(--status-fehler) 55%, transparent); stroke-width: 2; }
.ae-ueber .ae-sperre { stroke: color-mix(in srgb, var(--status-fehler) 50%, transparent); stroke-width: 1; }
.ae-ueber .ae-sperrzeichen > circle { fill: var(--panel); }
.ae-ueber .ae-sperrzeichen .ic { color: var(--status-fehler); }
.at-erkundung .ae-gehoben { opacity: .35; }
.ae-schild { position: fixed; z-index: 1001; pointer-events: none; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 12px; border: 1.5px solid var(--accent); border-radius: var(--r); background: var(--panel); color: var(--ink); font-size: 12px; font-weight: 600; box-shadow: var(--shadow); }
.at-erkundung .te-wrap { display: block; }
.at-erkundung .te-flaeche.ae-schreibflaeche { min-height: 1.4em; max-height: none; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; }
.at-erkundung .te-flaeche.ae-schreibflaeche:focus { outline: none; }
.at-erkundung [data-write]:has(.ae-schreibflaeche), .at-erkundung [data-head]:has(.ae-schreibflaeche) { box-shadow: 0 0 0 2px var(--accent-line); border-radius: var(--r); }
.at-erkundung figcaption [data-write="titel"]:empty { display: inline-block; min-width: 6em; min-height: 1em; vertical-align: bottom; }
.at-erkundung figcaption [data-write]:has(.ae-schreibflaeche) { display: inline-block; min-width: 12em; }
.at-erkundung .ae-schreibflaeche > p:first-child { margin-top: 0; }
.at-erkundung .ae-schreibflaeche > p:last-child { margin-bottom: 0; }
.at-erkundung .ae-schreibleiste { display: flex; width: max-content; margin: 0 0 6px; padding: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.at-erkundung .ae-schreibleiste .te-bar { position: static; padding: 0; background: transparent; }
.ae-vorschau { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; box-sizing: border-box; background: var(--field); color: var(--ink); }
.ae-vorschau[open] { display: flex; flex-direction: column; }
.ae-vorschau::backdrop { background: transparent; }
.ae-vorschau-kopf { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.ae-vorschau-kopf .ae-leise { flex: 1; }
.ae-vorschau-zu { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r); }
.ae-vorschau-laeufer { flex: 1; overflow: auto; padding: 18px 16px 40px; }
.ae-vorschau-laeufer > * { max-width: 1020px; margin: 0 auto; }
.av-lesen li { cursor: pointer; border-radius: var(--r); }
.av-lesen li:hover { background: var(--accent-soft); }
.av-lesen li:focus-visible { outline-offset: 1px; }
.ae-pruefung { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; font-size: 12px; line-height: 1.4; }
.ae-pruefung svg { flex: none; margin-top: 1px; }
.ae-pruefung.ae-warnung { color: color-mix(in srgb, var(--status-warnung) 55%, var(--ink)); }
.ae-schritte { outline: none; }
.ae-schritte:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
.ae-schritte li { font-size: 13px; }
.ae-schritte li.ae-ziel { outline: 2px dashed var(--muted); }
.ae-nr { flex: none; min-width: 18px; color: var(--muted); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.ae-schritte li[aria-selected="true"] .ae-nr { color: inherit; }
.ae-kopf { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-marken { flex: none; display: inline-flex; gap: 3px; color: var(--muted); }
.ae-schritte li.ae-wegwarnung .ae-kopf { text-decoration: underline dotted color-mix(in srgb, var(--status-warnung) 70%, transparent); text-underline-offset: 3px; }
.ae-marken .ae-warnzeichen { color: color-mix(in srgb, var(--status-warnung) 55%, var(--ink)); }
.ae-pick-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; padding: 6px 8px; border: 1px solid var(--accent);
  border-radius: var(--r); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); font-size: 13px; }
.ae-pick-leiste .ae-pick-text { font-weight: 700; }
.ae-pick-leiste .ae-pick-wahl { flex: 1; min-width: 8em; color: var(--ink); }
.ae-pick-leiste .ae-pick-wahl.ae-pick-leer { color: var(--muted); }
.ae-schritte li[aria-selected="true"] .ae-marken { color: inherit; }
.ae-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.ae-felder .at-feld { grid-template-columns: 1fr; gap: 3px; margin-bottom: 8px; }
.ae-hinweis { margin: -4px 0 8px; font-size: 11px; color: var(--muted); }
.ae-pruefung:not(.ae-warnung) { color: color-mix(in srgb, var(--status-fehler) 70%, var(--ink)); }
.ae-zeile { margin: 4px 0; font-size: 12px; color: var(--muted); }
.ae-bilder { margin: 0; padding: 0; list-style: none; }
.ae-bilder li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.ae-bildkopf { display: flex; gap: 6px; align-items: baseline; font-size: 12px; margin-bottom: 4px; }
.ae-leise { color: var(--muted); font-size: 11px; margin-left: auto; }
.ae-leeres-bild { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.at-modus.at-ansicht .at-erkundung { padding: 10px 8px; }
.at-blatt { position: relative; background: #fff; box-shadow: 0 1px 2px rgba(28,27,24,.06), 0 14px 30px -14px rgba(28,27,24,.28); flex: none; }
:root[data-farbmodus="dunkel"] .at-blatt { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 30px -12px rgba(0,0,0,.7); }
.at-modus:not(.at-ansicht) .at-blatt { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.at-modus:not(.at-ansicht) .at-blatt :is([contenteditable="true"], input, textarea) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
.at-buehne:focus-visible { outline-offset: -2px; }
@media (max-width: 760px) { .at-dock { padding-bottom: 30px; } }
.at-geste { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-buehne[data-geste="verschiebe"] { cursor: move; }
.at-buehne[data-geste="griff"] { cursor: nwse-resize; }
.at-buehne[data-geste="ast"], .at-buehne[data-geste="umlegen"], .at-buehne[data-geste="plus"] { cursor: pointer; }
.at-buehne[data-geste="knick"] { cursor: grab; }
.at-buehne[data-geste="aufziehen"], .at-buehne[data-geste="wahl"], .at-buehne[data-geste="klammer"] { cursor: crosshair; }
.at-buehne[data-geste="radier"] { cursor: cell; }
.at-buehne[data-geste="umsortieren"] { cursor: move; }
.at-buehne[data-geste="beschriftung"] { cursor: grab; }
.at-buehne[data-geste="einsetzen"], .at-buehne[data-geste="kreisabschnitt"], .at-buehne[data-geste="fest"], .at-buehne[data-geste="astwahlKreis"] { cursor: pointer; }
.at-buehne[data-geste="wahlKreis"] { cursor: crosshair; }
.at-buehne[data-geste="nurRaster"] { cursor: not-allowed; }
.at-modus.at-ansicht .at-seitenbereich, .at-modus.at-ansicht .at-reiterzeile,
.at-modus.at-ansicht .at-kopf .at-trenn,
.at-modus.at-ansicht .at-kopf .at-knopf:not([data-aktion="oeffnen"]):not([data-aktion="pdf"]):not([data-aktion="abspielen"]) { display: none; }
.at-modus.at-ansicht .at-blaetter { padding: 8px; gap: 12px; }
.at-modus.at-ansicht .at-fuss .at-geste { display: none; }
.at-tabmini { position: fixed; z-index: 58; right: calc(120px + var(--sar)); bottom: calc(6px + var(--sab)); width: 44px; height: 44px; min-height: 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.at-tabmini[hidden] { display: none; }
.at-tabpop { position: fixed; z-index: 80; right: calc(120px + var(--sar)); bottom: calc(var(--lzb, 60px) + 8px); display: flex; flex-direction: column; gap: 2px; padding: 5px; min-width: 210px; max-width: min(340px, calc(100vw - 24px)); max-height: 62vh; overflow-y: auto; border-radius: var(--r); background: color-mix(in srgb, var(--panel) 96%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); }
.at-tabpop .tp-row { border: 0; background: none; font: inherit; color: var(--ink); text-align: left; }
@media (orientation: landscape) {
  .at-tabmini { right: auto; left: calc(6px + var(--sal)); bottom: auto; top: calc(62px + var(--sat)); }
  .at-tabpop { right: auto; left: calc(var(--lzr, 56px) + 8px); bottom: auto; top: calc(62px + var(--sat)); }
}
.at-aktionen { display: flex; align-items: center; gap: 4px; }
.at-aktionen .at-trenn { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.at-knopf svg { width: 20px; height: 20px; }
.at-mitte { flex: 1; min-height: 0; display: flex; }
.at-blatt > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.at-blatt > svg.at-seite { pointer-events: none; }
.at-blatt > svg.at-overlay { pointer-events: none; overflow: visible; }
.at-blatt > svg.at-pick-ebene { pointer-events: none; overflow: visible; }
.at-pick-ebene .at-pick-stelle { pointer-events: all; cursor: pointer; fill: transparent; stroke: var(--lza, #4d5a70); stroke-width: 1; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.at-pick-ebene .at-pick-stelle.an { fill: var(--lza, #4d5a70); fill-opacity: .35; stroke-dasharray: none; }
.ae-pick-leiste.at-pick-blatt { position: sticky; top: 0; z-index: 5; margin: 0 0 8px; }
.at-overlay .at-wahl { fill: none; stroke: #2b6cd8; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.at-overlay .at-griff { fill: #fff; stroke: #2b6cd8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.at-overlay .at-spiegel { fill: none; stroke: #9aa3b5; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; pointer-events: none; }
.at-overlay .at-magnet { stroke: #e0308a; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; }
.at-overlay .at-uebersatz { fill: #d8302b; }
.at-overlay .as-platzhalter { fill: none; stroke: #9aa3b5; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; pointer-events: none; }
.at-overlay .as-platzhalter-text { fill: #8a909c; font-family: var(--font); pointer-events: none; }
.at-buehne.at-hand, .at-buehne.at-hand * { cursor: grab; }
.at-buehne.at-zieht, .at-buehne.at-zieht * { cursor: grabbing; }
.at-leer { color: var(--muted); font-style: italic; }
.at-fuss { display: flex; align-items: center; gap: 14px; padding: 4px 12px; min-height: 29px; background: var(--panel); border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.at-fuss .at-meldung { flex: 1; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.at-fuss .at-meldung.at-fehl { color: color-mix(in srgb, var(--status-fehler) 70%, var(--ink)); font-weight: 700; }
.at-fuss button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 2px 6px; border-radius: var(--r); }
.at-fuss button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.at-fuss .at-message-action { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.at-fuss button.at-rot { color: var(--status-fehler); font-weight: 700; }
.at-dialog { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; max-width: min(92vw, 560px); box-shadow: var(--shadow); font-size: 13px; background: var(--panel); color: var(--ink); }
.at-dialog::backdrop { background: rgba(30,38,52,.35); }
.at-dialog h2 { margin: 0 0 10px; font-size: 16px; }
.at-dialog label { display: block; margin: 8px 0 3px; font-weight: 700; font-size: 12px; color: var(--muted); }
.at-dialog input:where(:not([type=checkbox])), .at-dialog textarea, .at-dialog select { width: 100%; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; background: var(--panel); color: var(--ink); }
.at-dialog menu { display: flex; justify-content: flex-end; gap: 8px; margin: 16px 0 0; padding: 0; }
.at-dialog menu button { padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.at-dialog menu button:hover { border-color: var(--accent); }
.at-dialog ul.at-beanstliste { margin: 0; padding: 0; list-style: none; max-height: 50vh; overflow: auto; }
.at-dialog ul.at-beanstliste li { padding: 6px 4px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); cursor: pointer; }
.at-dialog ul.at-beanstliste li b { color: var(--status-fehler); }
.at-dialog ul.at-beanstliste button { width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 0; padding: 6px; cursor: pointer; }
.at-dialog label > input:not([type=checkbox]):not([type=radio]), .at-dialog label > select { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; }
.at-dialog-breit { width: 760px; max-width: calc(100vw - 40px); box-sizing: border-box; }
.at-dialog-verluste .at-verlustgruppen { max-height: 55vh; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.at-dialog-verluste section + section { margin-top: 12px; }
.at-dialog-verluste h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; }
.at-dialog-verluste h3 svg { flex: none; color: var(--muted); }
.at-dialog-verluste h3 .at-zahl { color: var(--muted); font-weight: 600; }
.at-dialog-verluste ul { margin: 0; padding: 0; list-style: none; }
.at-dialog-verluste li { padding: 6px 0 6px 22px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.at-verlust-ort { display: block; font-size: 11px; color: var(--muted); }
.at-doktab .at-tabart { display: inline-flex; flex: none; color: var(--accent); }
.at-verlust-text { display: block; overflow-wrap: anywhere; white-space: pre-line; }
.at-verlust-grund { display: block; color: var(--muted); }
.at-feld { display: grid; grid-template-columns: minmax(0, 1fr) fit-content(62%); gap: 2px 8px; align-items: baseline; margin: 0 0 4px; font-size: 13px; }
.at-feld > label { min-width: 0; padding: 7px 0; font-size: 13px; line-height: 18px; color: var(--ink); overflow-wrap: anywhere; }
.at-feld > :is(input, select) { justify-self: end; min-width: 0; max-width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; }
.at-feld > input:where(:not([type=checkbox], [type=color], [type=range])) {
  width: 100%; height: 30px; padding: 0 6px; border: 1px var(--edge-style, solid) var(--edge-now, var(--edge)); border-radius: var(--r);
  background: var(--fill-now, var(--panel)); color: var(--ink-now, var(--ink));
}
.at-feld > input:where(:not([type=checkbox], [type=color], [type=range])):hover:not(:disabled) { --edge-now: var(--ink); }
.at-feld > input[type=number] { width: 72px; }
.at-feld > select { min-height: 32px; height: auto; padding: 4px 6px; border: 0; background: transparent; color: var(--ink); font-weight: 600; align-items: center; }
.at-feld > select:hover:not(:disabled) { background-color: var(--field); }
.at-feld > input[type="checkbox"] { align-self: start; margin: 7px 2px 0 0; }
.at-liste { margin: 0; padding: 0; list-style: none; }
.at-liste li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: var(--r); cursor: pointer; }
.at-liste li:hover { background: var(--field); }
.at-liste li[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.at-zeile { display: flex; gap: 4px; align-items: center; margin: 6px 0; }
.at-overlay .as-drehgriff { fill: #fff; stroke: #2b6cd8; }
.at-overlay .as-drehlinie { stroke: #2b6cd8; stroke-dasharray: none; }
.at-overlay .as-wahlrechteck { fill: rgba(43,108,216,.08); stroke: #2b6cd8; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 2; }
.at-overlay .as-pfadlinie { fill: none; stroke: #2b6cd8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.at-overlay .as-punkt { fill: #fff; stroke: #2b6cd8; }
.at-overlay .as-startpunkt { fill: none; stroke: #e0308a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.at-overlay .as-plus { fill: none; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.at-overlay .as-fortsetzung-flaeche { fill: #fff; fill-opacity: .94; stroke: #d8302b; stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.at-overlay .as-fortsetzung-titel { fill: #d8302b; font-family: inherit; font-weight: 600; }
.at-overlay .as-quelle { fill: rgba(216,48,43,.08); stroke: #d8302b; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 3; }
.as-tabelle-rollen { overflow: auto; max-height: 65vh; }
.as-tabelle-eingabe { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 420px; }
.as-tabelle-eingabe td { border: 1px solid var(--line); padding: 3px; }
.as-tabelle-eingabe textarea { min-height: 64px; resize: vertical; color: var(--ink); background: var(--panel); }
.as-kopfzeile { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.as-kopfzeile .as-ids { color: var(--muted); word-break: break-all; }
.as-hinweis { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.at-eigenschaften h4 { margin: 10px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.as-knopfreihe { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.as-knopf { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.as-knopf:hover { border-color: var(--lza, var(--muted)); }
.as-knopf[disabled] { opacity: .4; cursor: default; }
.as-knopf svg { width: 14px; height: 14px; }
.at-knopf.as-klein, .as-schalter { width: 28px; min-width: 0; height: 28px; padding: 0; flex: none; }
:is(.at-knopf.as-klein, .as-schalter) .ic { width: 16px; height: 16px; }
.at-palette h3 { margin-top: 12px; }
.at-palette h3:first-child { margin-top: 0; }
.at-liste li small { color: var(--muted); font-size: 11px; margin-left: auto; padding-right: 4px; white-space: nowrap; }
.at-liste li .as-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.as-seiten li { flex-direction: column; align-items: stretch; gap: 4px; }
.as-seiten li.as-ziel { outline: 2px dashed var(--lza, var(--muted)); }
.as-seiten .as-mini { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--paper); pointer-events: none; }
.as-seiten li[aria-selected="true"] .as-mini { border-color: #2b6cd8; box-shadow: 0 0 0 1px #2b6cd8; }
.as-seitenzeile { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.as-seitenzeile span { color: var(--muted); }
.as-seitenzeile select { flex: 1; min-width: 0; padding: 2px 4px; font-size: 12px; }
.as-muster li { cursor: default; }
.as-ebenen li { cursor: default; flex-wrap: wrap; gap: 2px; padding: 3px 0; }
.as-ebenen li .as-name { flex: 1 1 6em; min-width: 6em; padding-left: 4px; }
.as-ebenenrest { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.as-ebenenrest small { padding: 0 4px; }
.as-stile li small { margin-left: 6px; }
.as-stilfelder { margin: 6px 0 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.as-farbe { display: inline-block; width: 18px; height: 18px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); flex: none; }
.as-farben li { cursor: default; }
.as-schriften li { cursor: default; flex-wrap: wrap; }
.as-schriften li small { margin-left: 0; white-space: normal; }
.as-schriften li .as-fehlt { flex-basis: 100%; color: var(--status-warnung); }
.as-schriften li label { flex-basis: 100%; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.as-schriften li label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; gap: 6px; }
.as-schriften li select { width: 100%; }
.at-dialog label.as-haken { display: flex; align-items: center; gap: 8px; }
.at-dialog label.as-haken input { flex: none; }
.at-dialog label.as-haken input:where(:not([type=checkbox])) { width: auto; }
.as-farben input[type="color"], .as-neuefarbe input[type="color"] { width: 26px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); flex: none; }
.as-kopfzeile.as-fachfarben { margin-top: 10px; }
.as-fachfarbe { display: grid; grid-template-columns: 44px 30px; align-items: center; gap: 6px; }
.at-eigenschaften .at-feld:has(> .as-fachfarbe) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-bottom: 4px; }
.at-feld .as-fachfarbe input[type="color"] { width: 44px; height: 24px; padding: 1px 2px; flex: none; }
.as-neuefarbe input[name="neuName"] { flex: 1; min-width: 0; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: 12px; }
.as-verkn li { align-items: flex-start; }
.as-verkn .as-status { display: inline-flex; margin-top: 2px; color: var(--muted); }
.as-verkn .as-status.as-ok { color: var(--status-ok); }
.as-verkn .as-status.as-fehlt { color: var(--status-fehler); }
.as-verkn small { margin-left: 0; white-space: normal; }
.at-overlay .av-feld { fill: none; stroke: var(--lza, #4d5a70); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 5 3; pointer-events: none; }
.at-overlay .av-druckfeld { fill: var(--lza, #4d5a70); pointer-events: none; }
.at-overlay .av-druck { fill: #fff; font-family: var(--font); font-weight: 700; pointer-events: none; }
.at-overlay .av-verdeckt { stroke: none; pointer-events: none; }
.at-overlay .av-schraffurlinie { stroke: var(--lza, #4d5a70); stroke-width: 1; stroke-opacity: .45; }
.at-overlay .av-anfang { fill: none; stroke: var(--lza, #4d5a70); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 2; pointer-events: none; }
.ae-ueber .av-regelziel { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.at-overlay .av-regelziel { fill: color-mix(in srgb, var(--lza, #4d5a70) 10%, transparent); stroke: var(--lza, #4d5a70); stroke-width: 2; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.ae-ueber .av-zahl { fill: var(--accent); stroke: var(--panel); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.ae-ueber .av-zahltext { fill: var(--accent-ink); font-weight: 700; pointer-events: none; }
.at-overlay .av-zahl { fill: var(--lza, #4d5a70); stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.at-overlay .av-zahltext { fill: #fff; font-weight: 700; pointer-events: none; }
.at-overlay .av-klick { fill: #fff; stroke: var(--lza, #4d5a70); stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.at-overlay .av-klicktext { fill: var(--lza, #4d5a70); font-weight: 700; pointer-events: none; }
.at-overlay .av-blockwahl { fill: rgba(43,108,216,.08); stroke: #2b6cd8; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.at-overlay .av-entwurf { fill: color-mix(in srgb, var(--lza, #4d5a70) 10%, transparent); stroke: var(--lza, #4d5a70); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.av-element { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.av-element:last-child { border-bottom: 0; }
.at-feld.av-breit { grid-template-columns: 1fr; }
.at-feld textarea { grid-column: 1 / -1; width: 100%; box-sizing: border-box; padding: 4px 6px; border: 1px solid var(--edge); border-radius: var(--r); font: inherit; font-size: 13px; resize: vertical; }
.at-feld textarea:hover:not(:disabled) { border-color: var(--ink); }
.av-liste-kopf { display: flex; gap: 4px; margin: 6px 0 2px; font-size: 11px; color: var(--muted); }
.av-liste-kopf .av-spalte-haken { flex: none; width: 42px; text-align: center; font-size: inherit; }
.av-liste-kopf.av-zwei > span { flex: 1; min-width: 0; }
.av-liste-kopf.av-zwei::after { content: ''; flex: none; width: 24px; }
.av-antworten, .av-paare { margin: 0 0 4px; padding: 0; list-style: none; }
.av-antworten li, .av-paare li { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.av-antworten li input[type="checkbox"] { flex: none; width: 13px; height: 13px; margin: 0 14.5px; }
.av-antworten li input:not([type]), .av-paare li input { flex: 1; min-width: 0; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: 12px; }
.av-stellen { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 6px 0; padding: 0; border: 0; }
.av-stellen legend { padding: 0; margin-bottom: 2px; font-size: 11px; color: var(--muted); }
.av-stellen label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
@media (pointer: coarse) {
  .av-antworten li input[type="checkbox"] { width: 22px; height: 22px; margin: 0 10px; }
  .av-stellen label { min-height: 28px; padding: 0 4px; }
  .av-stellen input[type="checkbox"] { width: 20px; height: 20px; }
}
.av-satz .av-stelle-noten { width: 9em; }
.av-wert { font-size: 12px; align-self: center; }
.av-uhr { margin-left: auto; font-size: 11px; color: var(--muted); align-self: center; }
.av-zeitleiste { margin: 4px 0 8px; overflow: hidden; }
.av-leiste { display: block; width: 100%; height: auto; cursor: crosshair; user-select: none; }
.av-leiste .av-tick { stroke: var(--line); stroke-width: 1; }
.av-leiste .av-achse { font-size: 10px; fill: var(--muted); }
.av-leiste .av-spur { fill: transparent; }
.av-leiste .av-spur:hover { fill: var(--field); }
.av-leiste .av-spur-gewaehlt { fill: var(--accent-soft); }
.av-leiste .av-spurname { font-size: 11px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.av-leiste .av-spurlinie { stroke: var(--line); stroke-width: 1; pointer-events: none; }
.av-leiste .av-raute { fill: var(--lza, #4d5a70); stroke: var(--panel); stroke-width: 1; cursor: pointer; }
.av-leiste .av-raute-gewaehlt { fill: #2b6cd8; stroke: #1b4fa8; }
.av-leiste .av-raute-takt { fill: var(--panel); stroke: var(--lza, #4d5a70); stroke-dasharray: 2 1; }
.av-schluessel { margin-top: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.as-hinweis.av-warn { color: var(--status-fehler); }
.av-satz { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.av-satz .av-wort { font-weight: 700; color: var(--muted); }
.av-satz select, .av-satz input { max-width: 100%; padding: 3px 5px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: 12px; }
.av-satz .at-feld { width: 100%; margin: 2px 0 0; }
.av-vorschau { margin: 4px 0 6px; padding: 6px 8px; border-radius: var(--r); background: var(--field); font-size: 12px; color: var(--ink); }
.av-regeln h4 { margin: 10px 0 4px; }
.av-anfangsliste, .av-folgen { margin: 0 0 6px; padding: 0; list-style: none; font-size: 12px; }
.av-anfangsliste li, .av-folgen li { display: flex; align-items: center; gap: 4px; padding: 3px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.av-anfangsliste li select { flex: none; max-width: 46%; padding: 2px 4px; font-size: 12px; }
.av-ziel { flex: 1; min-width: 0; cursor: pointer; border-radius: var(--r); padding: 1px 2px; }
.av-ziel:hover { background: var(--accent-soft); }
.av-ziel:focus-visible { outline-offset: 1px; }
.av-gruppe { margin: 0 0 6px; }
.av-anlass { display: flex; align-items: center; gap: 4px; margin: 4px 0 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.av-folgen { padding-left: 18px; }
.av-folgen li.av-in-arbeit { background: var(--accent-soft); border-radius: var(--r); }
.av-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0; }
.av-zeile select { max-width: 100%; padding: 3px 5px; font-size: 12px; }
.as-hinweis.av-v2 { padding: 6px 8px; border-radius: var(--r); background: var(--field); color: var(--muted); }
.av-saetze { margin: 0; padding: 0 0 0 18px; font-size: 12px; }
.av-saetze li { display: flex; align-items: flex-start; gap: 4px; padding: 4px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.av-saetze li span { flex: 1; }
.av-tabelle { width: 100%; border-collapse: collapse; font-size: 12px; }
.av-tabelle th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 700; padding: 2px 4px; border-bottom: 1px solid var(--line); }
.av-tabelle td { padding: 4px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); vertical-align: middle; }
.av-tabelle tr[data-id] { cursor: pointer; }
.av-tabelle tr[data-id]:hover td { background: var(--field); }
.av-tabelle tr[aria-selected="true"] td { background: color-mix(in srgb, var(--lza, var(--muted)) 12%, var(--panel)); }
.av-tabelle tr.av-fehl td b { color: var(--status-fehler); }
.av-tabelle tr.av-grund td { padding-top: 0; color: var(--status-fehler); border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.av-tabelle td small { color: var(--muted); }
.av-tabelle .av-grau { font-style: italic; }
.av-tabelle .av-symbol { display: inline-block; width: 16px; font-weight: 700; color: var(--lza, var(--muted)); }
.av-tabelle td:first-child { width: 40%; }
.av-tabelle select { width: calc(100% - 20px); padding: 2px 4px; font-size: 12px; }
.av-beanst { margin: 0; padding: 0 0 0 16px; font-size: 12px; }
.av-beanst li b { color: var(--status-fehler); }
.as-hinweis.av-ok { color: var(--status-ok); }
.at-overlay .av-sperrfeld { fill: var(--lza, #4d5a70); pointer-events: none; }
.at-overlay .av-sperrzeichen { color: #fff; pointer-events: none; overflow: visible; }
.av-antworten .av-buchstabe { flex: none; width: 18px; font-size: 11px; font-weight: 700; color: var(--muted); }
.as-hinweis svg { vertical-align: -2px; }
.av-leiste .av-schlag { stroke: var(--line); stroke-width: 1; }
.av-leiste-takt .av-tick.av-takt { stroke: var(--line); }
.av-schritte { margin: 0 0 6px; padding: 0; list-style: none; }
.av-schritte li { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 4px; cursor: pointer; background: var(--panel); }
.av-schritte li:hover { background: var(--field); }
.av-schritte li[aria-selected="true"] { border-color: var(--lza, var(--muted)); background: color-mix(in srgb, var(--lza, var(--muted)) 10%, var(--panel)); }
.av-schritte li.av-unerreichbar { border-style: dashed; }
.av-schritt-kopf { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); }
.av-schritt-kopf svg { flex: none; color: var(--lza, var(--muted)); }
.av-schritt-kopf span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-schritt-kopf small.av-warn { color: var(--status-fehler); font-size: 10px; }
.av-schritt-zeile { display: block; margin: 2px 0 0 20px; font-size: 11px; color: var(--muted); }
.av-zweige { margin: 4px 0 0 20px; padding: 0; list-style: none; font-size: 11px; }
.av-zweige li { display: flex; align-items: center; gap: 4px; padding: 2px 0; color: var(--muted); }
.av-zweige li svg { flex: none; }
.av-zweige li span { flex: 1; }
.av-schritt-felder { margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); }
.av-schritt-felder .as-kopfzeile { display: flex; align-items: center; gap: 6px; }
.av-schritt-felder h4 { margin: 10px 0 4px; font-size: 12px; }
.av-schritt-knoepfe { flex-wrap: nowrap; align-items: center; }
.av-schritt-knoepfe .av-klein-gruppe { display: inline-flex; gap: 2px; margin-left: auto; }
.av-verweigert { margin-top: 6px; }
#sheet-player {
  position: fixed; inset: 0; z-index: 2600;
  background: rgba(0, 0, 0, .55); padding: 24px 16px; overflow: auto;
}
#sheet-player[hidden] { display: none; }
#sheet-player .sheet-player-box {
  max-width: 820px; margin: 0 auto; background: var(--panel);
  border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden;
}
#sheet-player .sheet-player-head {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--panel);
  position: sticky; top: 0; z-index: 2;
}
#sheet-player .sheet-player-title { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
#sheet-player .sheet-player-kind {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 2px 7px; border-radius: var(--r);
  background: var(--accent); color: var(--accent-ink); vertical-align: 1px;
}
#sheet-player .sheet-player-close {
  flex: none; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); border-radius: var(--r); padding: 5px 9px; cursor: pointer;
  font: inherit; font-size: 13px;
}
#sheet-player .sheet-player-close:hover { background: var(--field); }
#sheet-player .sheet-player-page {
  background: var(--paper); color: #111; padding: 14px 16px 24px;
  font-family: var(--font); font-size: 14.5px; line-height: 1.55;
}
.sheet-view {
  --sheet-scale: 1;
  --sheet-correct: #2e9e44; --sheet-correct-light: #d1eed6;
  --sheet-wrong: #c05050; --sheet-wrong-light: #f6d3d3;
  --sheet-accent: var(--accent, #0b5c8d);
  --sheet-accent-ink: var(--accent-ink, #fff);
  --field-ink: #111; --field-muted: #555; --field-paper: var(--paper); --field-line: #999;
  --field-warn: #7a5a00; --field-warn-light: #fff4d6; --field-warn-line: #e6c56a;
  color: var(--field-ink); font-family: var(--font);
  touch-action: manipulation;
}
.sheet-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.sheet-controls button {
  border: 1px solid var(--line); background: var(--field-paper); color: var(--field-ink); border-radius: var(--r);
  padding: 7px 14px; min-height: 40px; font: inherit; font-size: 14px; cursor: pointer;
}
.sheet-controls button[aria-pressed="true"] { background: var(--sheet-accent); color: var(--sheet-accent-ink); border-color: var(--sheet-accent); }
.sheet-clock { font-variant-numeric: tabular-nums; color: var(--field-muted); margin-left: 4px; min-width: 7.5em; }
.sheet-silent[hidden] { display: none; }
.sheet-silent {
  display: inline-block; font-size: 12px; color: var(--field-warn); background: var(--field-warn-light); border: 1px solid var(--field-warn-line);
  border-radius: var(--r); padding: 2px 9px;
}
.sheet-pages { display: flex; flex-direction: column; gap: 14px; }
.sheet-view.sheet-zoomed .sheet-pages { overflow-x: auto; overscroll-behavior-x: contain; padding: 64px 0 min(420px, 60vh); }
.sheet-view.sheet-zoomed .sheet-page { width: calc(100% * var(--sheet-zoom, 1)); }
.sheet-page {
  position: relative; width: 100%; aspect-ratio: var(--sheet-w, 595.276) / var(--sheet-h, 841.89);
  background: var(--field-paper); box-shadow: 0 0 0 1px #ddd; overflow: visible;   
}
.sheet-page .sheet-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sheet-page-broken { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: #555; font-size: 15px; }
.sheet-overlays { position: absolute; inset: 0; }
.sheet-overlays > * { position: absolute; box-sizing: border-box; }
.sheet-overlays > .sheet-places { inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sheet-svg g.sheet-off, .sheet-svg g[data-element][data-state="verdeckt"] { display: none; }
.sheet-svg g[data-element][data-state="verblasst"] { opacity: .3; }
:is(.sheet-svg, .exploration .wk-diag-bild) :is([data-id], [data-mark])[data-state="verdeckt"] { display: none; }
:is(.sheet-svg, .exploration .wk-diag-bild) :is([data-id], [data-mark])[data-state="verblasst"] { opacity: .3; }
.at-erkundung .exploration .wk-diag-bild :is([data-id], [data-mark])[data-state="verdeckt"] { display: inline; visibility: hidden; }
.picture-ring { fill: none; stroke: var(--accent); stroke-width: 2.5px; vector-effect: non-scaling-stroke; pointer-events: none; }
.sheet-view .picture-ring { stroke: var(--sheet-accent); }
.wkd-stelle {
  touch-action: manipulation; vector-effect: non-scaling-stroke;
  --place-accent: var(--accent); --place-correct: #2e9e44; --place-wrong: #c05050; --place-veil: rgba(255, 255, 255, .7);
}
.wkd-stelle[data-bild] { --place-veil: color-mix(in srgb, var(--diagram-paper, var(--panel)) 70%, transparent); }
.sheet-view .wkd-stelle { --place-accent: var(--sheet-accent); --place-correct: var(--sheet-correct); --place-wrong: var(--sheet-wrong); --place-veil: rgba(255, 255, 255, .7); }
.wkd-stelle[role="button"] { cursor: pointer; }
.wkd-stelle:focus { outline: none; }
.wkd-stelle:is(.an, .wkd-an) { fill: color-mix(in srgb, var(--place-accent) 32%, transparent); stroke: var(--place-accent); stroke-width: 2px; }
.wkd-stelle[data-state="verdeckt"] { display: none; }
.wkd-stelle[data-state="verblasst"] { fill: var(--place-veil); }
.wkd-stelle[data-state="hervorgehoben"] { fill: color-mix(in srgb, var(--place-accent) 36%, transparent); stroke: var(--place-accent); stroke-width: 2px; }
.wkd-stelle:is([data-state="richtig"], [data-marked="loesung"]) { fill: color-mix(in srgb, var(--place-correct) 42%, transparent); stroke: var(--place-correct); stroke-width: 2px; }
.wkd-stelle[data-state="falsch"] { fill: color-mix(in srgb, var(--place-wrong) 38%, transparent); stroke: var(--place-wrong); stroke-width: 2px; }
.wkd-stelle[data-marked="wahl"] { fill: color-mix(in srgb, var(--place-accent) 30%, transparent); stroke: var(--place-accent); stroke-width: 3px; }
.wkd-stelle[data-state]:not([data-state="normal"]):is(.an, .wkd-an) { fill: color-mix(in srgb, var(--place-accent) 40%, transparent); }
.wkd-stelle[role="button"]:focus-visible { stroke: var(--place-accent); stroke-width: 3.5px; outline: none; }
.wkd-stelle.picture-place-fade { transition: fill 300ms, stroke 300ms, stroke-width 300ms, opacity 300ms; }
.wkd-stelle.picture-place-fade:not([data-state]:not([data-state="normal"]), [data-marked], .an, .wkd-an) { fill: transparent; }
.wkd-stelle.picture-place-fade:not([data-state="richtig"], [data-state="falsch"], [data-state="hervorgehoben"], [data-marked], .an, .wkd-an, :focus-visible) { stroke: transparent; }
.sheet-box { pointer-events: none; border-radius: var(--r-small); }
.sheet-box[data-state="hervorgehoben"] { box-shadow: 0 0 0 2.5px var(--sheet-accent); background: color-mix(in srgb, var(--sheet-accent) 10%, transparent); }
.sheet-box.sheet-block[data-state="verdeckt"] { background: var(--paper); box-shadow: 0 0 0 1.5px #fff; }
.sheet-box.sheet-block[data-state="verblasst"] { background: rgba(255, 255, 255, .7); }
.sheet-element {
  font-size: calc(11px * var(--sheet-scale)); line-height: 1.35; padding: 0 calc(4px * var(--sheet-scale));
  border-radius: var(--r-small); border: 1.5px solid transparent;
  display: flex; flex-direction: column; justify-content: flex-start; overflow: visible;
}
.sheet-element .sheet-feedback { position: absolute; right: calc(4px * var(--sheet-scale)); bottom: 0; margin: 0; max-width: 60%; text-align: right; }
.sheet-element[data-art="zuordnen"] .sheet-feedback, .sheet-element[data-art="frage"] .sheet-feedback { max-width: 48%; }
.sheet-element[data-state="verdeckt"] { display: none; }
.sheet-element[data-state="verblasst"] { opacity: .3; }
.sheet-element[data-state="richtig"] { border-color: var(--sheet-correct); }
.sheet-element[data-state="falsch"] { border-color: var(--sheet-wrong); }
.sheet-element.sheet-passthrough { pointer-events: none; }
.sheet-item-scale { position: relative; transform-origin: 0 0; display: flex; flex-direction: column; justify-content: flex-start; }
.sheet-element[data-art="question"] .sheet-feedback { top: 100%; bottom: auto; left: 0; right: auto; width: max-content; max-width: 100%; text-align: left;
  margin-top: calc(2px * var(--sheet-scale)); padding: 0 calc(4px * var(--sheet-scale)); background: var(--field-paper); border-radius: var(--r-small); z-index: 2; }
.sheet-element[data-art="question"] .sheet-feedback:empty { display: none; }
.sheet-element.sheet-passthrough .sheet-feedback { pointer-events: auto; }
.sheet-question { font-weight: 600; margin: calc(2px * var(--sheet-scale)) 0 calc(4px * var(--sheet-scale)); }
.sheet-hint { font-size: calc(8px * var(--sheet-scale)); color: var(--field-muted); margin: calc(1px * var(--sheet-scale)) 0 calc(3px * var(--sheet-scale)); }
:is(.sheet-element, .exploration-task) button:not(:where(.note-field *, .freehand *, .sheet-exercise-host *)) {
  font: inherit; font-size: calc(10.5px * var(--sheet-scale)); color: var(--field-ink); background: var(--field-paper);
  border: 1px solid var(--field-line); border-radius: calc(6px * var(--sheet-scale)); cursor: pointer;
  padding: calc(3px * var(--sheet-scale)) calc(9px * var(--sheet-scale)); min-height: calc(20px * var(--sheet-scale));
  touch-action: manipulation;
}
:is(.sheet-element, .exploration-task) button[aria-pressed="true"]:not(:where(.note-field *, .freehand *, .sheet-exercise-host *)) { background: var(--sheet-accent); color: var(--sheet-accent-ink); border-color: var(--sheet-accent); }
:is(.sheet-element, .exploration-task) button[data-state="richtig"]:not(:where(.sheet-exercise-host *)) { background: var(--sheet-correct-light); border-color: var(--sheet-correct); color: var(--field-ink); }
:is(.sheet-element, .exploration-task) button[data-state="falsch"]:not(:where(.sheet-exercise-host *)) { background: var(--sheet-wrong-light); border-color: var(--sheet-wrong); color: var(--field-ink); }
.sheet-notes { position: absolute; inset: 0; border-radius: var(--r-small); cursor: pointer; }
.sheet-notes:focus-visible { outline: 2px solid var(--sheet-accent); outline-offset: 2px; }
.sheet-element .note-field { padding: 0; gap: 0; border: none; border-radius: var(--r-small); background: var(--paper); color: #111; }
.sheet-element .note-field.nf-active { z-index: 5; cursor: auto; box-shadow: 0 0 0 2px var(--sheet-accent); outline: none; }
.sheet-element .note-field .nf-scroll { flex: 1; min-height: 0; max-height: none; }
.sheet-element .note-field.nf-active .nf-scroll { touch-action: none; }
.sheet-element .note-field.nf-active { bottom: auto; height: max(100%, min(340px, 55vh)); }
.sheet-element[data-art="noten"] { scroll-margin: 64px 16px; }
.sheet-element[data-art="noten"] .sheet-feedback { pointer-events: none; z-index: 1; }
.sheet-element .note-field:not(.nf-active) .nf-foot { display: none; }
.sheet-element .note-field.nf-active :is(.nf-tools, .nf-foot) {
  position: absolute; left: 0; right: 0; padding: 6px 8px; background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--sheet-accent); font-size: 14px; line-height: 1.3; z-index: 1;
}
.sheet-element .note-field.nf-active .nf-tools { bottom: 100%; border-radius: var(--r) var(--r) 0 0; border-bottom: none; }
.sheet-element .note-field.nf-active .nf-foot { top: 100%; border-radius: 0 0 var(--r) var(--r); border-top: none; }
.freehand { position: absolute; inset: 0; border-radius: var(--r-small); }
.freehand:focus-visible { outline: 2px solid var(--sheet-accent); outline-offset: 2px; }
.freehand .fh-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-x pan-y; }
.freehand.fh-active { z-index: 5; box-shadow: 0 0 0 2px var(--sheet-accent); }
.freehand.fh-active .fh-svg { touch-action: none; }
.freehand .fh-tools { display: none; }
.freehand.fh-active .fh-tools {
  display: flex; flex-wrap: wrap; gap: 6px; position: absolute; left: 0; right: 0; bottom: 100%; padding: 6px 8px;
  background: var(--panel); color: var(--ink); border: 1.5px solid var(--sheet-accent); border-bottom: none;
  border-radius: var(--r) var(--r) 0 0; font-size: 14px; line-height: 1.3; z-index: 1;
}
.freehand .fh-tools button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 10px; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; touch-action: manipulation; }
.freehand .fh-tools button:disabled { opacity: .45; cursor: default; }
.freehand .fh-tools button[aria-pressed="true"] { background: var(--sheet-accent); color: var(--sheet-accent-ink); border-color: var(--sheet-accent); }
.freehand .fh-status { position: absolute; left: 4px; bottom: 2px; margin: 0; font-size: 12px; color: var(--sheet-wrong); pointer-events: none; }
.freehand .fh-status:empty { display: none; }
.sheet-element[data-art="freehand"] { scroll-margin: 64px 16px; }
.sheet-element[data-art="freehand"] .fh-expectation { position: absolute; top: 100%; left: 0; right: 0; width: 100%; }
.freehand-view .fh-view { display: block; width: 100%; max-width: 520px; height: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-small); }
#ks-presentation { position: fixed; inset: 0; z-index: 1100; display: flex; background: var(--stage-bg); color: var(--ink); }
body:has(> #ks-presentation) > .lzr-toast { z-index: 1101; top: 18px; bottom: auto; left: 50%; }   
#ks-presentation .pr-stage { flex: 1; min-width: 0; min-height: 0; display: flex; outline: none; isolation: isolate; }
#ks-presentation:not(.pr-zeige):not(.pr-stift-an) .pr-stage { cursor: none; }
.sheet-view.sheet-present { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.sheet-present .sheet-controls { margin: 8px 12px 0; }
.sheet-present .sheet-controls[hidden] { display: none; }
.sheet-present .sheet-pages { flex: 1; min-height: 0; display: grid; place-items: center; gap: 0; container-type: size; }
.sheet-present .sheet-page { grid-area: 1 / 1; width: min(100cqw, 100cqh * var(--sheet-w) / var(--sheet-h)); box-shadow: none; background: var(--field-paper); }
.sheet-present .sheet-page:not(.sheet-current) { visibility: hidden; }
.sheet-present .pr-stift { position: absolute; inset: 0; z-index: 4; }
.sheet-present .pr-stift:not(.pr-stift-an), .sheet-present .pr-stift:not(.pr-stift-an) * { pointer-events: none; }
.sheet-present .pr-stift .freehand.fh-active { box-shadow: none; }
.sheet-present .pr-stift .freehand.fh-active .fh-tools { bottom: auto; left: auto; top: 8px; right: 8px; border: 1px solid var(--line); border-radius: var(--r); }
#ks-presentation .pr-bar {
  position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px;
  width: max-content; max-width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; white-space: nowrap;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
#ks-presentation.pr-zeige .pr-bar, #ks-presentation .pr-bar:focus-within { opacity: 1; pointer-events: auto; }
:is(.pr-bar, .pr-ref-knoepfe) button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border: 1px solid transparent; border-radius: var(--r);
  background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer;
}
:is(.pr-bar, .pr-ref-knoepfe) button:hover { background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
:is(.pr-bar, .pr-ref-knoepfe) button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
:is(.pr-bar, .pr-ref-knoepfe) button[hidden] { display: none; }
.pr-bar .pr-zahl { padding: 0 6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
body.pr-referent-fenster { margin: 0; min-height: 100vh; background: var(--panel); color: var(--ink);
  font-family: var(--font); }
.pr-ref { display: flex; flex-direction: column; gap: 10px; padding: 12px; font-size: 14px; color: var(--ink); background: var(--panel); }
.pr-ref-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pr-ref-kopf b { font-size: 16px; }
.pr-ref-kopf span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pr-ref-folien { display: flex; flex-direction: column; gap: 10px; }
.pr-ref-folien[hidden], .pr-ref-uebersicht[hidden] { display: none; }
.pr-bild { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pr-bild svg { display: block; width: 100%; height: auto; max-height: 42vh; }
.pr-bild .sheet-image-ring { fill: none; stroke: var(--accent); stroke-width: 3; }
.pr-bild .sheet-image-cover { fill: #fff; stroke: #fff; stroke-width: 1.5; }
.pr-bild .sheet-image-cover.sheet-image-faded { fill-opacity: .7; stroke: none; }
.pr-ref-naechste .pr-bild svg { max-height: 22vh; }
.pr-bild .pr-leer { margin: 0; padding: 18px 12px; font-size: 13px; color: var(--muted); background: var(--panel); }
.pr-ref-reihe { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.pr-ref-naechste small { display: block; margin-bottom: 4px; color: var(--muted); }
.pr-ref-knoepfe { display: flex; flex-direction: column; gap: 4px; }
.pr-ref-knoepfe button { justify-content: flex-start; border-color: var(--line); background: var(--panel); }
.pr-ref-notizen { min-height: 4em; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 16px; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.pr-ref-notizen.pr-leer { color: var(--muted); }
.pr-ref-uebersicht { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pr-ref-kachel { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 2px solid transparent; border-radius: var(--r); background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pr-ref-kachel .pr-bild svg { max-height: 18vh; }
.pr-ref-kachel[aria-current="true"] { border-color: var(--accent); }
.pr-ref-kachel span { font-size: 12px; color: var(--muted); }
.sheet-choices { display: flex; flex-wrap: wrap; gap: calc(5px * var(--sheet-scale)); }
.sheet-check { font-weight: 600; }
.sheet-feedback { min-height: 1.3em; margin-top: calc(4px * var(--sheet-scale)); font-size: calc(10px * var(--sheet-scale)); color: var(--field-muted); }
.sheet-feedback.correct { color: var(--sheet-correct); font-weight: 600; }
.sheet-feedback.wrong { color: var(--sheet-wrong); font-weight: 600; }
.sheet-gap-text { line-height: 1.7; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 calc(2px * var(--sheet-scale)); }
.sheet-gap-text .sheet-words { margin: 0 0 0 calc(10px * var(--sheet-scale)); }
.sheet-gap {
  font: inherit; font-size: calc(11px * var(--sheet-scale)); color: var(--field-ink); background: var(--field-paper);
  border: 0; border-bottom: 1.5px solid var(--field-ink); border-radius: 0; padding: 0 calc(3px * var(--sheet-scale));
  margin: 0 calc(2px * var(--sheet-scale)); width: auto; min-width: 3em; text-align: center;
}
.sheet-gap:focus { outline: 2px solid var(--sheet-accent); outline-offset: 1px; }
.sheet-gap[data-state="richtig"] { background: var(--sheet-correct-light); border-bottom-color: var(--sheet-correct); }
.sheet-gap[data-state="falsch"] { background: var(--sheet-wrong-light); border-bottom-color: var(--sheet-wrong); }
.sheet-words { display: inline-flex; flex-wrap: wrap; gap: calc(4px * var(--sheet-scale)); align-items: center; }
.sheet-words .sheet-word { min-height: calc(17px * var(--sheet-scale)); padding: calc(1px * var(--sheet-scale)) calc(7px * var(--sheet-scale)); }
.sheet-columns { display: grid; grid-template-columns: 1fr 1fr; gap: calc(5px * var(--sheet-scale)) calc(18px * var(--sheet-scale)); }
.sheet-column { display: flex; flex-direction: column; gap: calc(4px * var(--sheet-scale)); }
.sheet-card, :is(.sheet-element, .exploration-task) button.sheet-card { text-align: left; touch-action: none; user-select: none; -webkit-user-select: none; }
.sheet-card[data-side="right"] { text-align: right; }
.sheet-card[data-done] { cursor: default; }
.sheet-card.sheet-ghost {
  position: fixed; z-index: 3000; transform: translate(-50%, -50%); pointer-events: none;
  background: var(--field-paper); color: var(--field-ink); border: 1px solid var(--sheet-accent); border-radius: var(--r); padding: 4px 10px;
  box-shadow: var(--shadow); font: inherit;
}
.sheet-listen-row { display: flex; align-items: center; gap: calc(8px * var(--sheet-scale)); }
.sheet-listen { min-width: calc(30px * var(--sheet-scale)); font-size: calc(12px * var(--sheet-scale)) !important; }
.sheet-listen[data-on="1"] { background: var(--sheet-accent); color: var(--sheet-accent-ink); border-color: var(--sheet-accent); }
.sheet-listen-text { flex: 1; }
.sheet-listen-corner { position: absolute; top: calc(2px * var(--sheet-scale)); right: calc(2px * var(--sheet-scale)); display: flex; align-items: center; gap: calc(6px * var(--sheet-scale)); pointer-events: auto; }
.sheet-listen-corner .sheet-listen:not([data-on="1"]) { background: var(--field-paper); }
.sheet-note {
  display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: calc(11px * var(--sheet-scale));
  line-height: 1.6; color: #111; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.6em - 1px), #bbb calc(1.6em - 1px), #bbb 1.6em);
  border: 1px solid #999; border-radius: var(--r-small); padding: 0 calc(4px * var(--sheet-scale)); resize: vertical;
}
.sheet-element[data-locked="1"] { opacity: .62; }
.sheet-element[data-locked="1"] button, .sheet-element[data-locked="1"] input, .sheet-element[data-locked="1"] textarea { cursor: not-allowed; }
.sheet-feedback.sheet-locked-hint { color: var(--field-warn); font-weight: 600; }
.sheet-svg .sheet-sounding { fill: var(--sheet-accent); stroke: var(--sheet-accent); }
.sheet-element:hover, .sheet-element:focus-within { z-index: 1; }
.sheet-order-row { display: flex; align-items: flex-start; gap: calc(10px * var(--sheet-scale)); }
.sheet-order-side { display: flex; flex-direction: column; align-items: flex-start; gap: calc(3px * var(--sheet-scale)); max-width: 45%; }
.sheet-order-side .sheet-hint { margin: 0; }
.sheet-cards { display: flex; flex-direction: column; gap: calc(3px * var(--sheet-scale)); flex: 1; min-width: 0; }
.sheet-card.sheet-order-card {
  display: flex; align-items: center; gap: calc(6px * var(--sheet-scale)); touch-action: none;
  background: var(--field-paper); border: 1px solid var(--field-line); border-radius: calc(6px * var(--sheet-scale));
  padding: calc(1px * var(--sheet-scale)) calc(2px * var(--sheet-scale)) calc(1px * var(--sheet-scale)) calc(8px * var(--sheet-scale));
}
.sheet-order-card .sheet-order-text { flex: 1; border: 0; background: transparent; text-align: left; touch-action: none; }
.sheet-order-card .sheet-up, .sheet-order-card .sheet-down { display: inline-flex; align-items: center; justify-content: center; min-width: calc(22px * var(--sheet-scale)); min-height: calc(17px * var(--sheet-scale)); padding: 0 calc(4px * var(--sheet-scale)); }
.sheet-order-card :is(.sheet-up, .sheet-down) .ic { width: calc(11px * var(--sheet-scale)); height: calc(11px * var(--sheet-scale)); flex: none; }
.sheet-order-card[data-state="richtig"] { background: var(--sheet-correct-light); border-color: var(--sheet-correct); }
.sheet-order-card[data-state="falsch"] { background: var(--sheet-wrong-light); border-color: var(--sheet-wrong); }
.sheet-order-card[data-dragging] { opacity: .6; }
.sheet-order-card[data-drop] { outline: 2px dashed var(--sheet-accent); outline-offset: 1px; }
.sheet-order-check { font-weight: 600; }
.sheet-solution-note {
  margin: 0 0 8px; padding: 8px 12px; border-radius: var(--r); font-size: 13px; line-height: 1.4;
  background: color-mix(in srgb, var(--sheet-correct) 14%, var(--paper)); border: 1px solid var(--sheet-correct); color: #111;
}
.sheet-solution-note ul { margin: 4px 0 0; padding-left: 18px; }
.sheet-element .sheet-solution, .sheet-element .sheet-solution:disabled, .exploration-task .sheet-solution, .exploration-task .sheet-solution:disabled { opacity: 1; background: var(--sheet-correct-light); border-color: var(--sheet-correct); color: var(--field-ink); }
.sheet-note.sheet-solution { background-color: var(--sheet-correct-light); }
.sheet-note.sheet-expectation { margin-top: calc(3px * var(--sheet-scale)); background: #fff8e0; border-style: dashed; }
:is(.sheet-view, .exploration-task) :focus-visible { outline: 2px solid var(--sheet-accent); outline-offset: 2px; }
.exploration-task {
  --sheet-scale: 1.35;
  --field-ink: var(--ink); --field-muted: var(--muted); --field-paper: var(--panel); --field-line: var(--line);
  --sheet-correct: var(--status-ok); --sheet-wrong: var(--ink);
  --sheet-correct-light: color-mix(in srgb, var(--sheet-correct) 22%, var(--field-paper));
  --sheet-wrong-light: var(--field-paper);
  --sheet-accent: var(--accent, #0b5c8d); --sheet-accent-ink: var(--accent-ink, #fff);
  max-width: 680px; color: var(--field-ink); touch-action: manipulation;
}
.exploration-task button:not(:where(.sheet-up, .sheet-down)) { min-height: 40px; }
.exploration-task .sheet-feedback:empty { display: none; }
.exploration-task .sheet-order-row { flex-direction: column; align-items: stretch; }
.exploration-task .sheet-order-side { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.exploration-task .sheet-order-text { min-width: 0; overflow-wrap: anywhere; }
.exploration [data-teil][data-state="verdeckt"] { visibility: hidden; }
.exploration .wk-diag-bild[data-state="verdeckt"] { outline: 1.5px dashed var(--edge); outline-offset: 4px; border-radius: var(--r-paper); }
.exploration .wk-diag-bild[data-state="verdeckt"] > * { visibility: hidden; }
.exploration .wk-diag-bild[data-state="verdeckt"] .wkd-facette > :is(button, label, select):not([data-state="verdeckt"]) { visibility: visible; }
.exploration :is(.wk-diag-bild, [data-teil])[data-state="verblasst"] { opacity: .3; }
.exploration :is(.wk-diag-bild, [data-teil])[data-state="hervorgehoben"] { box-shadow: 0 0 0 2.5px var(--accent); }
.exploration .wkd-stelle[data-bild][role="button"]:hover:not([data-state]:not([data-state="normal"])) { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.exploration .wkd-stelle { --place-correct: var(--status-ok); --place-wrong: var(--ink); }
.exploration .wkd-stelle[data-state="falsch"] { fill: none; stroke: var(--ink); stroke-width: 2px; stroke-dasharray: 5 4; }
@media (forced-colors: active) { .exploration .wkd-stelle[data-state="falsch"] { stroke: CanvasText; } }
.exploration-task :is(button, .sheet-gap, .sheet-order-card)[data-state="falsch"] { border-style: dashed; }
.exploration-task :is(.sheet-choice, .sheet-word, .sheet-card, .sheet-order-card):not(:where(.sheet-solution)) {
  border-color: transparent; border-radius: var(--r); background: var(--field); color: var(--ink);
}
.exploration-task :is(.sheet-choice, .sheet-word, .sheet-card):not([aria-pressed="true"], [data-state]):hover:not(:disabled) { background: var(--field-hover); }
.exploration-task :is(.sheet-choice, .sheet-word, .sheet-card):not([aria-pressed="true"], [data-state]):active:not(:disabled) { background: var(--field-pressed); }
.exploration-task :is(.sheet-check, .sheet-order-check, .sheet-up, .sheet-down) { border-color: transparent; border-radius: var(--r); background: transparent; color: var(--ink); }
.exploration-task :is(.sheet-check, .sheet-order-check, .sheet-up, .sheet-down):hover:not(:disabled) { background: var(--field-hover); }
.exploration-task :is(.sheet-check, .sheet-order-check, .sheet-up, .sheet-down):active:not(:disabled) { background: var(--field-pressed); }
.exploration-task :is(.sheet-choice, .sheet-word, .sheet-card, .sheet-order-card)[data-state="falsch"] { border-color: var(--ink); background: transparent; }
.exploration-task :is(.sheet-choice, .sheet-word, .sheet-card, .sheet-order-card)[data-state="richtig"] {
  position: relative; border-color: transparent; background: var(--field); color: var(--ink);
}
.exploration-task :is(.sheet-choice, .sheet-word, .sheet-card, .sheet-order-card)[data-state="richtig"]::after {
  content: ""; position: absolute; inset: -6px -8px; pointer-events: none; background: var(--status-ok);
  -webkit-mask: var(--mask-circle) 0 0 / 100% 100% no-repeat; mask: var(--mask-circle) 0 0 / 100% 100% no-repeat;
}
@media (forced-colors: active) {
  .exploration-task :is(.sheet-choice, .sheet-word, .sheet-card, .sheet-order-card)[data-state="richtig"]::after { forced-color-adjust: none; background: Highlight; }
}
@media (pointer: coarse) {
  .exploration-task :is(button, .sheet-gap) { min-height: 44px; }
  .exploration-task :is(.sheet-up, .sheet-down) { min-width: 44px; min-height: 44px; }
}
.exploration .wkd-stelle[data-bild][data-state="richtig"]:not([data-marked], :focus-visible, .an, .wkd-an) {
  fill: var(--status-ok); stroke: none;
  -webkit-mask: var(--mask-circle) 0 0 / 100% 100% no-repeat; mask: var(--mask-circle) 0 0 / 100% 100% no-repeat;
  -webkit-mask-origin: fill-box; mask-origin: fill-box;
}
@media (forced-colors: active) { .exploration .wkd-stelle[data-bild][data-state="richtig"]:not([data-marked], :focus-visible, .an, .wkd-an) { fill: Highlight; } }
.exploration .wkd-stelle[data-bild] { mix-blend-mode: multiply; }
@media not print {
  :where(:root[data-farbmodus="dunkel"]) .exploration:not(:where(#ton-shell, .asg-preview, .at-erkundung, .ae-vorschau-laeufer) *) .wkd-stelle[data-bild] { mix-blend-mode: screen; }
}
@media (forced-colors: active) { .exploration .wkd-stelle[data-bild] { mix-blend-mode: normal !important; } }
.at-erkundung .ae-pick-fig .wkd-stelle:is([data-state], .an, .wkd-an) { fill: transparent; stroke: none; }
.at-erkundung .ae-pick-fig .wkd-stelle.ae-pick-an { fill: var(--accent); fill-opacity: .35; stroke: var(--accent); stroke-width: 1.5; }
.at-erkundung .ae-pick-fig .wkd-stelle:focus-visible { stroke: var(--accent); stroke-width: 2.5px; }
.exploration-task-place .exploration-place-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.exploration-task-place .wk-diag { margin-top: 8px; }
.exploration-feedback { margin: 10px 0 0; font-size: 14.5px; font-weight: 600; }
.exploration-task .sheet-feedback, .exploration-task .sheet-feedback:is(.correct, .wrong) { font-size: 16px; line-height: 1.5; font-weight: 400; max-width: 66ch; }
.exploration-task .sheet-feedback.correct { color: var(--ink); }
.exploration-task .sheet-feedback.correct:not(:empty)::before {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; background: var(--status-ok);
  -webkit-mask: var(--mask-check) 0 0 / 100% 100% no-repeat; mask: var(--mask-check) 0 0 / 100% 100% no-repeat;
}
@media (forced-colors: active) { .exploration-task .sheet-feedback.correct:not(:empty)::before { forced-color-adjust: none; background: CanvasText; } }
.exploration-feedback:empty { display: none; }
.exploration-covered .exploration-covered-text { flex: 1; font-weight: 600; }
.at-raum.az-aktiv .at-blatt { touch-action: none; }
.at-raum.az-aktiv figure[data-arbeit] .wk-diag-bild { touch-action: none; }
.at-raum.az-aktiv:is([data-at-werkzeug="diagramm-neu"], [data-at-werkzeug="kreis-neu"]) .at-erkundung .exploration-card { touch-action: none; }
.ae-bezug-leiste { position: absolute; right: 0; bottom: 100%; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); font-size: 13px; }
.ae-bezug-knopf { min-width: 32px; min-height: 32px; padding: 2px 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); color: inherit; font: inherit; cursor: pointer; }
.ae-bezug-knopf:hover { border-color: var(--accent); }
.ae-bezug-knopf > svg { display: block; margin: 0 auto; }
.ae-bezug-schalter { display: inline-flex; }
.ae-bezug-schalter .ae-bezug-lage { border-radius: 0; }
.ae-bezug-schalter .ae-bezug-lage:first-child { border-radius: var(--r) 0 0 var(--r); }
.ae-bezug-schalter .ae-bezug-lage:last-child { border-radius: 0 var(--r) var(--r) 0; margin-left: -1.5px; }
.ae-bezug-lage[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 700; position: relative; }
.az-bindung h3, .az-bindung [data-binden] { grid-column: 1 / -1; }
:is(.at-overlay, .ae-ueber) .az-zelle { fill: none; stroke: rgba(43,108,216,.28); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-wahl { fill: rgba(43,108,216,.08); stroke: #2b6cd8; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-astwahl { fill: none; stroke: #2b6cd8; stroke-width: 7; stroke-opacity: .28; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-griff, :is(.at-overlay, .ae-ueber) .az-knick { fill: #fff; stroke: #2b6cd8; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-kontrollweg { fill: none; stroke: #2b6cd8; stroke-width: 1; stroke-dasharray: 3 3; stroke-opacity: .6; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-plus circle { fill: #fff; stroke: #2b6cd8; stroke-width: 1; vector-effect: non-scaling-stroke; }
:is(.at-overlay, .ae-ueber) .az-plus path { fill: none; stroke: #2b6cd8; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
:is(.at-overlay, .ae-ueber) .az-ziel { fill: rgba(43,108,216,.14); stroke: #2b6cd8; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-ziel.az-belegt { fill: rgba(216,48,43,.14); stroke: #d8302b; }
:is(.at-overlay, .ae-ueber) .az-ziel.az-geist { fill: rgba(43,108,216,.1); stroke-dasharray: 4 3; }
:is(.at-overlay, .ae-ueber) .az-ziel.az-wahlrechteck { fill: rgba(43,108,216,.06); stroke-dasharray: 4 3; }
:is(.at-overlay, .ae-ueber) .az-spur { fill: none; stroke: rgba(30,38,52,.35); stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-vorschau { fill: none; stroke: #2b6cd8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-vorschau.az-unsicher { stroke: #e0308a; stroke-dasharray: 5 3; }
:is(.at-overlay, .ae-ueber) .az-bahn { fill: none; stroke: rgba(43,108,216,.32); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-marke { fill: #2b6cd8; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-ziel.az-wandert { fill: rgba(224,48,138,.12); stroke: #e0308a; stroke-dasharray: 3 2; }
:is(.at-overlay, .ae-ueber) .az-bereich { fill: none; stroke: #2b6cd8; stroke-width: 1.2; stroke-dasharray: 6 3; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-bereich-leise { fill: none; stroke: color-mix(in srgb, var(--accent) 35%, transparent); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-bereich-leer { fill: var(--muted); text-anchor: middle; font-family: var(--font); pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-ahne { fill: none; stroke: rgba(43,108,216,.38); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-bereich-name { font: 700 11px var(--font); fill: #2b6cd8; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
:is(.at-overlay, .ae-ueber) .az-loesen { fill: rgba(224,48,138,.10); stroke: #e0308a; stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.at-raum.az-radiert .at-buehne, .at-raum.az-radiert .at-buehne * { cursor: cell; }
.az-editor { position: absolute; z-index: 3; box-sizing: border-box; padding: 2px 4px; background: rgba(255,255,255,.96); border: 1px solid #2b6cd8; border-radius: var(--r-small); outline: none; font-family: "Atkinson Hyperlegible", system-ui, sans-serif; line-height: 1.25; color: var(--ink); white-space: pre-wrap; overflow: visible; box-shadow: var(--shadow); }
.at-raum.az-aktiv svg.az-noten { touch-action: none; user-select: none; -webkit-user-select: none; }
.nm-editor { min-height: 1.6em; }
.ipt-feld { position: absolute; z-index: 3; width: 1px; height: 1.2em; margin: 0; padding: 0; border: 0; resize: none; overflow: hidden; white-space: pre; font-size: 16px; line-height: 1; opacity: 0; color: transparent; caret-color: transparent; background: transparent; outline: none; pointer-events: none; }
.ipt-leiste { position: absolute; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; width: max-content; gap: 2px; padding: 3px; transform: translateY(calc(-100% - 6px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); white-space: nowrap; }
.ipt-leiste.ipt-unten { transform: translateY(6px); }
.ipt-leiste button { font: inherit; font-size: 12px; padding: 2px 10px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
.ipt-leiste button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.ipt-leiste button:disabled { color: var(--muted); opacity: .55; cursor: default; }
.ipt-leiste button:focus-visible { outline-offset: 1px; }
.ipt-leiste[hidden] { display: none; }
.ipt-leiste select { font: inherit; font-size: 12px; max-width: 11em; padding: 1px 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); }
.ipt-leiste select:focus-visible { outline-offset: 1px; }
.ipt-leiste button[data-ipt="fett"] { font-weight: 700; }
.ipt-leiste button[data-ipt="kursiv"] { font-style: italic; }
.ipt-leiste button[aria-pressed="mixed"] { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); color: var(--accent); }
.ipt-hinweis { align-self: center; padding: 0 6px; font-size: 11px; color: var(--muted); }
.ipt-abgelehnt { align-self: center; max-width: 28em; padding: 0 8px; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--status-fehler) 70%, var(--ink)); white-space: normal; }
.at-blatt .ipt-zeichen { --accent: var(--rc-atelier); }
.ipt-zeichen .ipt-griff { fill: var(--accent); stroke: var(--panel); stroke-width: 1; }
.ipt-zeichen .ipt-cursor { fill: var(--accent); animation: ipt-blinken 1.06s steps(1) infinite; }
.ipt-zeichen .ipt-auswahl { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.ipt-zeichen .ipt-marke { fill: none; stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: visiblePainted; }
.ipt-zeichen .ipt-marke-verborgen { fill: color-mix(in srgb, var(--accent) 35%, transparent); }
@keyframes ipt-blinken { 50% { opacity: 0; } }
.nm-knoepfe { flex-wrap: wrap; }
.nm-knoepfe .az-knopf { white-space: nowrap; }
.nm-liste { display: grid; gap: 2px; margin-top: 8px; }
.nm-zeile { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 2px 6px; width: 100%; padding: 5px 6px; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.nm-zeile > span { overflow-wrap: anywhere; }
.nm-zeile:hover { border-color: var(--line); }
.nm-zeile:focus-visible { outline-offset: 1px; }
.nm-zeile[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); }
.nm-zeile .nm-fort { grid-column: 2; color: var(--muted); font-size: 11px; }
.nm-raster { display: inline-flex; margin: 4px 0 8px; }
.nm-rasterknopf { min-height: 32px; padding: 2px 10px; border: 1.5px solid var(--line); border-radius: 0; background: var(--panel); color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.nm-rasterknopf + .nm-rasterknopf { margin-left: -1.5px; }
.nm-rasterknopf:first-child { border-radius: var(--r) 0 0 var(--r); }
.nm-rasterknopf:last-child { border-radius: 0 var(--r) var(--r) 0; }
.nm-rasterknopf:hover { border-color: var(--accent); position: relative; }
.nm-rasterknopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; position: relative; }
.nm-rasterknopf[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 700; position: relative; }
.at-layoutbild { flex: none; display: block; }
.ks-menu > button > svg.at-layoutbild { width: 64px; height: 48px; }
.at-layoutbild .at-lb-seite { fill: var(--paper); stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.at-layoutbild .at-lb-fest { fill: #d8dbe2; }
.at-layoutbild .at-lb-platz { fill: none; stroke: #9aa3b5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.at-layoutbild .at-lb-text { fill: #6e6a62; }
.at-layoutbild .at-lb-karte { fill: none; stroke: #6e6a62; stroke-width: 1; vector-effect: non-scaling-stroke; }
.at-layoutwahl { margin-top: 10px; max-height: 52vh; overflow: auto; }
.at-layoutgruppe { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.at-layoutgruppe legend { padding: 0; margin: 0 0 6px; font-weight: 700; font-size: 12px; color: var(--muted); }
.at-layoutgitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.at-dialog label.at-layoutkarte { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; margin: 0; padding: 8px 6px; min-height: 108px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); font-weight: 600; font-size: 12px; text-align: center; cursor: pointer; }
.at-dialog label.at-layoutkarte:hover { border-color: var(--accent-line); }
.at-dialog label.at-layoutkarte:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.at-dialog label.at-layoutkarte:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.at-dialog .at-layoutkarte input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.as-design-hinweise { margin: 4px 0 8px; padding-left: 18px; font-size: 13px; }
.as-design-uebersatz { margin: 4px 0 8px; font-size: 13px; font-weight: 600; color: var(--status-warnung); }
.az-pool { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.az-pool button { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.az-pool button:hover { border-color: var(--muted); }
.az-pool button[aria-pressed="true"] { background: color-mix(in srgb, var(--lza, var(--muted)) 14%, var(--panel)); border-color: var(--lza, var(--muted)); color: var(--ink); }
.az-pool button svg { width: 22px; height: 22px; }
.az-belegung { margin: 0 0 8px; padding: 6px 8px; background: var(--field); border-radius: var(--r); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; line-height: 1.5; overflow-x: auto; }
.az-hinweis { margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.az-knopf { padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.az-knopf:hover { border-color: var(--accent); color: var(--accent); }
.az-knopf:is([data-tu="loeschen"], [data-tu="weg"]):hover { border-color: var(--status-fehler); color: var(--status-fehler); }
.at-feld .az-marken { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; }
.at-feld .az-markenzeile { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.at-feld .az-markenzeile select, .at-feld .az-markenzeile input { width: auto; flex: 1 1 5em; min-width: 0; }
.at-feld .az-markenzeile .az-knopf { flex: 0 0 auto; }
.at-feld .az-markenzeile .as-haken { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.at-feld .az-markenzeile .as-haken input { flex: none; width: auto; }
.at-feld span { font-size: 12px; color: var(--ink); word-break: break-word; }
.sheet-element:has(> .sheet-exercise-host:not([hidden])) { z-index: 6; }
.sheet-exercise-host:not([hidden]) {
  position: fixed; inset: 6vh 4vw; z-index: 1100; overflow: auto;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  font-size: 16px; text-align: left;
}
.sheet-element .sheet-practise { align-self: flex-start; min-height: 44px; }
@media (prefers-reduced-motion: reduce) {
  .se-tool:enabled:is(:hover, :active) { transform: none; }
}
.at-eigenschaften :is(label, h4), .at-palette :is(label, h4) { overflow-wrap: anywhere; }
.at-palette[data-palette-inhalt="bibliothek"] { min-width: 0; }
.at-palette[data-palette-inhalt="bibliothek"] button { max-width: 100%; height: auto; white-space: normal; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.35; }
.at-palette[data-palette-inhalt="bibliothek"] h4 { margin: 14px 0 6px; font-size: 12px; color: var(--muted); }
.as-dateiwahl { position: relative; display: block; margin: 8px 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; color: var(--ink); cursor: pointer; }
.as-dateiwahl:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.as-dateiwahl:hover { border-color: var(--accent); }
.as-dateiwahl input { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; opacity: 0; cursor: pointer; }
.as-dateinamen { margin: 0; padding-left: 16px; overflow-wrap: anywhere; font-size: 12px; color: var(--muted); }
.as-bibliothek li, .as-bibliothek button { min-width: 0; width: 100%; }
.as-bibliothek button { border-radius: var(--r); text-align: left; }
.at-musterkopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 7px 16px; background: var(--accent-soft); color: var(--ink); font-size: 13px; border-bottom: 1px solid var(--line); }
.at-musterkopf[hidden] { display: none; }
.at-musterkopf > span { flex: 1 1 auto; min-width: 0; }
.at-musterkopf svg { flex: none; color: var(--accent); }
.at-musterspeichern { flex: none; border: 1.5px solid var(--accent); color: var(--accent); border-radius: var(--r); padding: 4px 12px; background: var(--panel); font: inherit; }
.at-musteransicht { flex: none; border: 1px solid var(--line); border-radius: var(--r); padding: 3px 8px; background: var(--panel); color: var(--ink); font: inherit; }
.at-musterlayout { flex: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r); padding: 4px 10px; background: var(--panel); font: inherit; }
.at-musterverlust { margin: 0 0 12px; padding-left: 18px; max-height: 40vh; overflow: auto; }
.as-designs li { cursor: default; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 4px; }
.as-designs li + li { border-top: 1px solid var(--line); }
.as-design-name { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.as-design-knoepfe { display: flex; gap: 6px; }
.as-design-knoepfe [data-design-anwenden] { flex: 1 1 auto; }
.as-design-kopf { display: flex; align-items: center; gap: 4px; min-width: 0; }
.as-design-kopf .as-design-name { flex: 1 1 auto; }
.at-palette[data-palette-inhalt="gestaltung"] .as-design-kopf button { flex: none; width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-color: transparent; background: none; color: var(--muted); }
.at-palette[data-palette-inhalt="gestaltung"] .as-design-kopf button:hover { border-color: var(--line); color: var(--ink); }
.at-palette[data-palette-inhalt="gestaltung"] .as-design-kopf [data-design-vorgabe][aria-pressed="true"] { color: var(--accent); }
.as-design-kopf [data-design-vorgabe][aria-pressed="true"] svg { fill: currentColor; }
.as-bibliothek-konto li { display: flex; gap: 6px; }
.as-bibliothek-konto [data-bib-konto] { flex: 1 1 auto; }
.as-bibliothek-konto [data-bib-konto-menue] { flex: none; width: auto; }
.at-palette[data-palette-inhalt="gestaltung"] button { height: auto; white-space: normal; font-size: 13px; line-height: 1.35; }
.as-design-vergleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 10px; }
.as-design-seite { margin: 0; }
.as-design-seite figcaption { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.as-design-seite svg { display: block; width: 100%; height: auto; max-height: 46vh; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-small); }
.as-design-ersetzt { margin: 4px 0 8px; padding-left: 18px; font-size: 13px; overflow-wrap: anywhere; max-height: 22vh; overflow: auto; }
.at-dateiaktionen { display: flex; align-items: center; gap: 4px; }
.at-dateiaktionen > .primary { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-left: 8px; padding: 0 12px 0 10px; white-space: nowrap; }
.at-dateiaktionen > .primary svg { width: 18px; height: 18px; flex: none; }
.at-ungespeichert { flex: none; color: var(--muted); }
.se-secbody.pal-feld button.pal-system,
body.lz-on .se-col .se-secbody.pal-feld button.pal-system {
  width: 94px; height: 60px; padding: 3px;
}
.pal-system .nz-system { width: 88px; height: 51px; pointer-events: none; }
.pal-mehr { width: 100%; }
.pal-mehr > summary { cursor: pointer; padding: 7px 4px; color: var(--muted); font-size: 12px; }
.pal-mehr[open] { display: flex; flex-wrap: wrap; }
.pal-mehr > button { display: inline-flex !important; vertical-align: top; }
.tempo-local { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.tempo-local label { display: grid; gap: 6px; min-width: 0; margin-block: 10px; }
.tempo-local input, .tempo-local select { width: 100%; min-width: 0; min-height: 40px; }
.tempo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tempo-local menu { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 0; }
.tempo-error { color: var(--ink); }
.tempo-local::backdrop { background: color-mix(in srgb, var(--ink) 35%, transparent); }
#score-scroll [data-tempo] { pointer-events: auto; cursor: pointer; }
.pal-tempo-bild { max-width: 100%; }
.asg-muted { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.asg-error { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--status-fehler); }
.asg-view { min-height: 100%; }
.asg-page { max-width: 860px; width: 100%; margin: 0 auto; padding: 26px 34px 40px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.asg-page .asg-back { align-self: flex-start; margin-left: -10px; }
.asg-h1 { margin: 0; font-size: 27px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.asg-view .asg-page { max-width: 800px; padding-top: 16px; }
:is(.asg-view, .asg-preview) .asg-h1 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
:is(.asg-view, .asg-preview) .asg-instruction { max-width: 62ch; padding: 0; border: 0; border-radius: 0; background: none; font-size: 18px; line-height: 1.5; }
.asg-note { margin: 0; font-size: 14px; color: var(--muted); }
.asg-reportbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.asg-view .asg-state { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 400; color: var(--muted); }
.asg-view .asg-state.done { color: var(--ink); font-weight: 600; }
.asg-view .asg-state.asg-earlier { flex-basis: 100%; font-size: 14px; }
.asg-view .asg-state .ks-check-hand { flex: none; width: 30px; height: 25px; }
button.primary.asg-report { min-height: 48px; padding: 0 20px; font-size: 16px; }
.asg-view .ks-secondary.asg-report { margin-left: -10px; }
@media (max-width: 700px) { .asg-reportbar button.primary.asg-report { flex: 1 1 100%; } }
.asg-instruction { font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; overflow-wrap: anywhere; }
.asg-state { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.asg-state.done { color: var(--blau, var(--accent)); }
.asg-reader { margin-top: 4px; }
.asg-flex { flex: 1; }
.asg-new, .asg-actions button { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r); padding: 7px 15px; }
.asg-editor, .asg-detail { max-width: 860px; }
.asg-editor > .lzr-back, .asg-detail > .lzr-back { align-self: flex-start; }
.asg-h2 { margin: 0; font-size: 21px; font-weight: 800; color: var(--ink); }
.asg-field { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.asg-field .asg-input { box-sizing: border-box; width: 100%; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; }
.asg-field textarea.asg-input { resize: vertical; min-height: 96px; line-height: 1.5; }
.asg-field .asg-input:disabled { opacity: .7; cursor: default; }
.asg-set { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: var(--r); }
.asg-set legend { padding: 0 6px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.asg-radio, .asg-kid { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
.asg-radio input, .asg-kid input { accent-color: var(--accent); }
.asg-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; padding-left: 4px; }
.asg-hits { display: flex; flex-direction: column; gap: 6px; }
.asg-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 12px; border-radius: var(--r); }
.asg-hit small { font-size: 12.5px; color: var(--muted); }
.asg-picked { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; color: var(--ink); }
.asg-targets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.asg-variant { font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 8px; }
.asg-kinds { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.asg-set > [data-asg-add] { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.asg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.asg-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.asg-tabs button.on { border-color: var(--accent); font-weight: 800; }
.exam-announce h2 { margin: 0 0 4px; font-size: 20px; }
.exam-state { margin: 12px 0 6px; font-size: 15px; font-weight: 700; }
.exam-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.exam-bar {
  position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 8px 10px; margin-bottom: 10px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
}
.exam-clock { font-weight: 800; font-variant-numeric: tabular-nums; }
.exam-bar button { border-radius: var(--r); padding: 6px 16px; font-weight: 800; }
.exam-clock.knapp { color: var(--status-warnung); }
.exam-save { flex: 1; min-width: 160px; font-size: 13px; color: var(--muted); }
.exam-save[data-state="examUnsaved"], .exam-save[data-state="examOffline"], .exam-save[data-state="examSaveFailed"] { color: var(--status-warnung); }
.exam-results { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.exam-res { padding: 6px 10px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.exam-res.ok { border-color: var(--gruen); }
.exam-res.no { border-color: var(--status-warnung); }
.exam-choice { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.exam-choice input { width: 20px; height: 20px; accent-color: var(--accent); }
.exam-return, .exam-solution { margin-top: 14px; }
.exam-return h3, .exam-solution h3 { margin: 0 0 6px; font-size: 16px; }
.exam-total, .exam-grade { margin: 4px 0; font-size: 15px; font-weight: 800; }
.exam-comment { margin: 4px 0 0; font-size: 14px; font-style: italic; }
.exam-results li:not(.exam-res) { padding: 6px 10px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.exam-rule-group { display: flex; flex-direction: column; gap: 6px; }
.asg-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.exam-points-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.exam-points-list .asg-field { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.asg-field .asg-input.exam-points { width: 90px; flex: 0 0 auto; }
.exam-table { display: grid; gap: 6px; }
.exam-row { display: flex; gap: 10px; flex-wrap: wrap; }
.exam-row label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.exam-row .asg-input { width: 110px; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; }
.exam-work { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.exam-work h3 { margin: 0; font-size: 16px; }
.exam-late, .exam-reopen { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); }
.exam-late h4 { margin: 0 0 4px; font-size: 14px; }
.exam-late-list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.exam-reopen summary { cursor: pointer; font-weight: 600; }
.exam-paper fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
#ks-print { position: fixed; left: -10000px; top: 0; width: 180mm; pointer-events: none; }
@media print {
  :root:has(> body.ks-printing) { color-scheme: light; background: #fff; }
  body.ks-printing > *:not(#ks-print) { display: none !important; }
  body.ks-printing #ks-print { position: static; width: auto; color-scheme: light; --field: #fff; --panel: #fff; --chrome: #fff; --ink: #000; --muted: #444; --line: #bbb;
    background: #fff; color: #000; font: 11pt/1.4 Arial, Helvetica, sans-serif; }
  .exam-print h1 { font-size: 18pt; margin: 0 0 4pt; }
  .exam-print h2 { font-size: 13pt; margin: 14pt 0 4pt; }
  .exam-print h3 { font-size: 11pt; margin: 0 0 2pt; }
  .exam-print p, .exam-print div { overflow-wrap: anywhere; }
  .exam-print-meta, .exam-print-made { color: #444; }
  .exam-print-note { font-weight: 700; }
  .exam-print-tasks { padding-left: 0; list-style: none; }
  .exam-print-tasks > li { break-inside: avoid; border-top: 1px solid #bbb; padding: 6pt 0; }
  .exam-print-label { font-weight: 700; }
  .exam-print .exam-cx-view { max-width: 100%; }
}
.exam-tasks { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.exam-cx { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink); }
.exam-cx-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 12px; align-items: end; margin-top: 4px; }
.exam-cx-in textarea.asg-input { min-height: 38px; }
.exam-cx-in select.asg-input { font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 8px; }
.exam-sum p { margin: 2px 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.asg-field .asg-input.exam-grade { max-width: 160px; }
.asg-warn { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--status-warnung); }
.asg-field[hidden] { display: none; }
.exam-bytask { align-items: center; }
.exam-split { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.exam-split-kid { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14.5px; color: var(--ink); }
.exam-split-kid select.asg-input { width: 64px; font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 6px; }
.exam-variant-title { margin: 14px 0 4px; font-size: 15px; }
.sheet-card[data-pair] { border-color: var(--sheet-accent); position: relative; }
.sheet-card[data-pair]::after {
  content: attr(data-pair); position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; border-radius: var(--r);
  background: var(--sheet-accent); color: var(--sheet-accent-ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.asg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.asg-danger { color: var(--status-fehler); border-color: color-mix(in srgb, var(--status-fehler) 45%, var(--line)); }
.asg-danger:hover { border-color: var(--status-fehler); }
.asg-status { min-height: 1.4em; margin: 0; font-size: 14px; color: var(--ink); }
.asg-preview { padding-top: 14px; border-top: 1px dashed var(--line); }
.asg-preview .asg-page {
  color-scheme: light; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px 22px;
  font-family: var(--font); }
.asg-reports { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.asg-reports li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.asg-who { font-weight: 700; color: var(--ink); }
.lzr-sec .asg-state { color: var(--muted); }
.lzr-sec .asg-state.done { color: color-mix(in srgb, var(--accent) 55%, var(--ink)); }
.lzr-sec .asg-muted { color: var(--muted); }
@media (max-width: 620px) {
  .asg-page { padding: 18px 16px 30px; }
  .asg-h1 { font-size: 23px; }
}
.cs-dlg { width: 640px; max-width: calc(100vw - 32px); border-radius: var(--r);
  font-family: var(--font);
  color: var(--ink); background: var(--panel); border-color: var(--line); }
.cs-dlg h2 { font-size: 17px; font-weight: 800; margin: 0 0 4px; overflow-wrap: anywhere; }
.cs-sec { padding: 12px 0 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.cs-sec:last-child { border-bottom: 0; }
.cs-sec h3 { margin: 0; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.cs-sec h4 { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; }
.cs-field { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.cs-field select, .cs-from input, .cs-lesson select, .cs-lesson input { min-height: 36px; font: inherit; font-size: 14px;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 8px; }
.cs-field select { width: 100%; }
.cs-fixed { font-size: 14px; color: var(--ink); min-height: 36px; display: flex; align-items: center; }
.cs-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cs-grid .cs-wide { grid-column: 1 / -1; }   
.cs-wege span { display: block; }             
.cs-wege span + span { margin-top: 3px; }
.cs-wege b { color: var(--ink); }
.cs-hint.err { color: var(--status-fehler); }
.cs-count { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cs-unsaved { color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); font-weight: 600; }
.cs-empty { margin: 0; font-size: 13px; color: var(--muted); }
.cs-lesson { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cs-lesson input { width: 4.5em; }
.cs-min { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.cs-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.cs-from { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.cs-btn { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: var(--r);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink); background: var(--panel);
  border: 1.5px solid var(--line); }
.cs-btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cs-btn.prim { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cs-btn.warn { color: var(--status-fehler); }
.cs-btn.warn:hover { border-color: var(--status-fehler); }
.cs-x { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r);
  border: 0; background: none; color: var(--muted); cursor: pointer; }
.cs-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.cs-chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; min-height: 36px; }
.cs-chip { min-height: 36px; padding: 5px 13px; border-radius: var(--r); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--ink); background: var(--panel); border: 1.5px solid var(--line); }
.cs-chip.on { color: color-mix(in srgb, var(--accent) 55%, var(--ink));
  background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cs-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; flex-wrap: wrap; }
.cs-err { margin: 0; font-size: 13.5px; color: var(--status-fehler); }
.cs-dlg menu { background: var(--panel); border-top-color: var(--line); align-items: center; }
.cs-status { margin: 0; font-size: 13px; color: var(--muted); }
.cs-status.err { color: var(--status-fehler); }
.pk-tkapwrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pk-tkap { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-left: -8px; padding: 0 8px; border: 0;
  border-radius: var(--r); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pk-tkap .ic { color: var(--muted); }
.pk-tkap.leer { color: var(--muted); }
.pk-tkap.ro { font-weight: 400; }
.pk-twarn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); }
.pk-twlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); column-gap: 16px; }
.pk-twslot { display: block; width: 100%; min-height: 36px; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.pk-twslot:hover { background: var(--field); }
.pk-twslot:active { background: var(--field-pressed); }
.pk-twanders { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pk-twanders input { font: inherit; font-size: 13.5px; padding: 5px 8px; border: 1px solid var(--edge); border-radius: var(--r);
  background: var(--panel); color: var(--ink); }
.pk-twanders input:hover:not(:disabled, :focus) { border-color: var(--ink); }
.pk-twanders select { font-size: 13.5px; }
@media (max-width: 860px) {
  .pk-twanders input, .pk-twanders select { font-size: 16px; }
}
.pk-gitter .lesson-cell-open { min-height: 24px; }
@media (pointer: coarse) {
  .pk-rgriff, .pk-gneu, .pk-ana, .pk-angabe.pk-text .ks-in-place, .le-ltitel { min-height: 40px; }
  .pk-lzx { min-width: 40px; min-height: 40px; }
  .pk-spalte :is(.ks-secondary, .ks-tool), .pk-bkopf :is(.ks-onward, .ks-secondary, .ks-tool, .pk-tkap) { min-height: 40px; }
  .pk-plan :is(.pl-marke, .pk-mtitel, .pk-vsoz, .ks-tool, .ks-secondary, .ks-in-place), .pk-plan input.pk-vmin, .pk-plan textarea.pk-verw, .pk-vfuss .ks-secondary { min-height: 40px; }
  .pk-vx { min-width: 40px; }
  .lesson-cell-main, .lesson-cell-main.primary, .lesson-cell-more > button, .class-grid-more, .ur-laterbtn, .ur-ohnebtn,
  .ur-zustandsseite :is(.ks-onward, .ks-secondary), .ur-hinweis .ks-secondary, .ur-wahlseite .ks-secondary, .ur-wahlbuch .ks-onward,
  .ur-ohnedialog :is(input, select, menu > button) { min-height: 44px; }
}
.ks-hilfe { display: inline-flex; flex: none; vertical-align: middle; }
.ks-hilfe > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: var(--round); color: var(--muted); cursor: pointer; }
.ks-hilfe > summary::-webkit-details-marker { display: none; }
.ks-hilfe > summary:hover, .ks-hilfe[open] > summary { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.ks-hilfe > summary:focus-visible { outline-offset: 1px; }
.ks-hilfe-blase { position: fixed; z-index: 60; box-sizing: border-box; width: max-content; padding: 9px 11px; border-radius: var(--r-speech);
  background: color-mix(in srgb, var(--ink) 5%, var(--panel)); color: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--ink) 30%, var(--line));
  box-shadow: var(--shadow); font-size: 12.5px; font-weight: 500;
  line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; overflow-wrap: anywhere; }
@media (pointer: coarse) { .ks-hilfe > summary { width: 40px; height: 40px; margin: -7px; } }
.lw-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.lw-side { display: flex; flex-direction: column; gap: 10px; max-width: 640px; min-width: 0; }
.lw-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lw-h { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.lw-side .lw-h { font-size: 15px; }   
.lw-vorlage { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.lw-link { display: inline-flex; align-items: center; min-height: 40px; font: inherit; font-size: 13px; font-weight: 600;
  color: color-mix(in srgb, var(--accent) 45%, var(--ink)); background: none; border: 0; padding: 0 4px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.lw-link:disabled { opacity: .5; cursor: default; }
.lw-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.lw-legende span { display: inline-flex; align-items: center; gap: 6px; }
.lw-legende i { display: inline-block; width: 16px; height: 8px; border-radius: var(--r-small); flex: none; }
.lw-bereiche, .lw-komps, .lw-goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lw-komps { gap: 2px; padding: 0 0 6px; }
.lw-goals { padding: 2px 0 8px 10px; }
.lw-brow, .lw-krow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; width: 100%;
  box-sizing: border-box; text-align: left; font: inherit; color: var(--ink); background: none; border: 1.5px solid transparent;
  border-radius: var(--r); padding: 6px 8px; cursor: pointer; min-height: 36px; }
.lw-brow { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 4px 2px; min-height: 32px; }
.lw-krow .lw-fill { grid-column: 1 / -1; }
.lw-arm { grid-template-columns: minmax(0, 1fr) auto auto; }
.lw-plus { display: inline-flex; color: color-mix(in srgb, var(--kb, var(--accent)) 70%, var(--ink)); }
.lw-brow:hover, .lw-krow:hover { background: color-mix(in srgb, var(--ink) 3%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.lw-pfeil { display: inline-flex; color: var(--muted); }
.lw-btitel { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); min-width: 0;
  overflow-wrap: anywhere; }
.lw-ktitel { font-size: 13.5px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.lw-zahl { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lw-fill { display: flex; gap: 3px; align-items: center; min-height: 10px; }
.lw-fill i { flex: 1 1 0; height: 7px; border-radius: var(--r-small); box-sizing: border-box; min-width: 4px; }
.lw-s-erreicht { background: color-mix(in srgb, var(--gruen) 70%, var(--ink)); }
:root[data-farbmodus="dunkel"] .lw-s-erreicht { background: color-mix(in srgb, var(--gruen) 55%, var(--ink)); }
:root[data-farbmodus="dunkel"] .lw-s-unterwegs { background: color-mix(in srgb, var(--bernstein) 72%, var(--panel)); }
.lw-s-unterwegs { background: color-mix(in srgb, var(--bernstein) 78%, var(--ink)); }
.lw-s-geplant { background: transparent; border: 1.5px dashed color-mix(in srgb, var(--muted) 75%, var(--line)); }
.lw-fill i.lw-s-offen, .lw-legende i.lw-s-offen { height: 0; border-radius: 0; border-top: 2px dotted color-mix(in srgb, var(--muted) 85%, var(--line)); }
.lw-grow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; width: 100%; box-sizing: border-box; text-align: left;
  font: inherit; color: var(--ink); background: none; border: 1.5px solid transparent; border-radius: var(--r); padding: 9px 10px; cursor: pointer;
  min-height: 44px; }
.lw-grow:hover { background: color-mix(in srgb, var(--ink) 3%, var(--panel)); border-color: var(--line); }
.lw-gtext { font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.lw-gstand { align-self: start; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--r); white-space: nowrap;
  background: var(--field); color: var(--muted); }
.lw-st-erreicht { background: color-mix(in srgb, var(--gruen) 14%, var(--panel)); color: color-mix(in srgb, var(--gruen) 55%, var(--ink)); }
.lw-st-unterwegs { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); color: var(--ink); }
.lw-gher { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.lw-ausserhalb { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.lw-ausserhalb h3, .lw-dh4 { margin: 6px 0 0; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.lw-hinweis { margin: 0; font-size: 12.5px; color: var(--muted); }
.lw-laedt { color: var(--muted); font-size: 14px; }
.lw-leer { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border: 1.5px dashed var(--line);
  border-radius: var(--r); color: var(--muted); font-size: 14px; }
.lw-leer b { color: var(--ink); font-size: 15px; }
.lw-knopf { font: inherit; font-size: 13.5px; font-weight: 700; padding: 9px 16px; min-height: 40px; border-radius: var(--r);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--panel); color: var(--ink); cursor: pointer; }
.lw-detail { display: flex; flex-direction: column; gap: 12px; }
.lw-zurueck { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink); background: none; border: 0; padding: 8px 6px 8px 0; min-height: 40px; cursor: pointer; }
.lw-dbereich { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.lw-dtitel { margin: -6px 0 0; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.lw-dtitel:focus { outline: none; }
.lw-dtitel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-small); }
.lw-kref { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: var(--ink); background: var(--panel);
  border: 1.5px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: pointer; }
.lw-kref:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.lw-kref.lw-kref-ruhig { cursor: default; }
.lw-kref.lw-kref-ruhig:hover { border-color: var(--line); }
.lw-kref small { font-size: 11.5px; color: var(--muted); }
.lw-kref b { font-size: 14px; }
.lw-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.lw-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r); background: var(--field); color: var(--muted);
  border: 1px solid var(--line); }
.lw-pill-ok { background: color-mix(in srgb, var(--gruen) 12%, var(--panel)); color: color-mix(in srgb, var(--gruen) 55%, var(--ink));
  border-color: color-mix(in srgb, var(--gruen) 35%, var(--line)); }
.lw-hrow { display: flex; align-items: center; gap: 2px; min-width: 0; }
.lw-hrow > h2, .lw-hrow > h3, .lw-hrow > h4 { min-width: 0; }
.lw-hrow > .lw-dh4 { margin-top: 0; }
.lw-pick { display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); }
.lw-pick .lw-pbtn { flex: 1 1 auto; padding: 6px 3px; font-size: 12px; white-space: nowrap; border-color: transparent; }
.lw-pbtn { font: inherit; font-size: 13.5px; font-weight: 700; padding: 8px 14px; min-height: 40px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.lw-pbtn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink); }
.lw-pbtn.on { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border-color: var(--accent);
  color: color-mix(in srgb, var(--accent) 45%, var(--ink)); }
.lw-pbtn:disabled { cursor: progress; opacity: .6; }
.lw-herkunft { margin: -4px 0 0; font-size: 12.5px; color: var(--muted); }
.lw-vorschlag { margin: 0; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); }
.lw-detail > .lw-link { align-self: flex-start; padding-left: 0; }
.lw-beleg { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
.lw-beleg dt { color: var(--muted); font-weight: 600; }
.lw-beleg dd { margin: 0; overflow-wrap: anywhere; }
.lw-leise { color: var(--muted); }
.lw-zitat { margin: 0; padding: 2px 0 2px 11px; border-left: 3px solid color-mix(in srgb, var(--accent) 40%, var(--line)); font-size: 13px; line-height: 1.45; }
.lw-zitat p { margin: 0; }
.lw-zitat small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 520px) {
  .lw-komps { padding-left: 10px; }
  .lw-goals { padding-left: 0; }
  .lw-beleg { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lw-beleg dd { margin-bottom: 6px; }
}
:root {
  --kb-hoer: #1f6fb5; --kb-sing: #c0562f; --kb-not: #c2477f; --kb-theo: #8a6a12; --kb-prax: #6f5cc4;
  --kb-tech: #4f7d1f; --kb-gest: #1f817c; --kb-kont: #8b5a3c; --kb-refl: #6b6760;
}
:root[data-farbmodus="dunkel"] {
  --kb-hoer: #6aa8e8; --kb-sing: #e8895f; --kb-not: #e58ab4; --kb-theo: #cfae4c; --kb-prax: #a993e6;
  --kb-tech: #93c25c; --kb-gest: #5cc3bc; --kb-kont: #c99a7a; --kb-refl: #aaa59c;
}
[data-kb] { --kb: var(--muted); }
[data-kb="hoer"] { --kb: var(--kb-hoer); } [data-kb="sing"] { --kb: var(--kb-sing); } [data-kb="not"] { --kb: var(--kb-not); }
[data-kb="theo"] { --kb: var(--kb-theo); } [data-kb="prax"] { --kb: var(--kb-prax); } [data-kb="tech"] { --kb: var(--kb-tech); }
[data-kb="gest"] { --kb: var(--kb-gest); } [data-kb="kont"] { --kb: var(--kb-kont); } [data-kb="refl"] { --kb: var(--kb-refl); }
.lw-kbpunkt { display: inline-block; width: 9px; height: 9px; border-radius: var(--round); background: var(--kb, var(--muted)); margin-right: 7px;
  vertical-align: 1px; flex: none; }
.lw-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lw { display: flex; flex-direction: column; gap: 16px; }
.lw-main.lw-mit-stunden { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .lw-main.lw-mit-stunden { grid-template-columns: minmax(0, 1fr) 280px; }
  .lw-main.lw-mit-stunden .lw-side { position: sticky; top: 8px; max-height: calc(100vh - 24px); overflow-y: auto; }
}
@media (min-width: 1000px) and (max-width: 1239px) { .lw-main.lw-mit-stunden .lw-side { padding-left: 12px; padding-right: 12px; } }
@media (min-width: 1240px) { .lw-main.lw-mit-stunden { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); } }
@media (max-width: 999px) { .lw-main.lw-mit-stunden.lw-auswahl .lw-side { order: -1; } }
.lw-mit-stunden .lw-side, .lw-stunden, .lw-head { background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.lw-stunden { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lw-zuletzt { display: none; }
.lw-hl > .lw-krow { border-color: var(--kb, var(--accent)); background: color-mix(in srgb, var(--kb, var(--accent)) 6%, var(--panel)); }
.lw-dbereich { display: inline-flex; align-items: center; }
.lw-kref { border-left: 4px solid var(--kb, var(--line)); }
.lw-zielwahl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.lw-zielwahl select { min-height: 40px; font: inherit; font-size: 13.5px; padding: 6px 14px; border-radius: var(--r); border: 1.5px solid var(--line);
  background: var(--panel); color: var(--ink); }
.lw-beleglp { margin: 0; flex-basis: 100%; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.lw-rel { display: flex; flex-wrap: wrap; gap: 6px; }
.lw-relz, .lw-relk { display: inline-flex; align-items: center; min-height: 36px; font: inherit; font-size: 12.5px; text-align: left; padding: 6px 11px;
  border-radius: var(--r); border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.lw-relz:hover, .lw-relk:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lw-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 28px; }
@media (min-width: 900px) { .lw-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.lwl-h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.lwl-faellig .lwl-h3 + .lwl-todo { margin-top: 0; }
.lwl-faellig .lwl-budget { margin-top: 2px; }
.lwl-faellig > .lwl-h3:not(:first-child) { margin-top: 12px; }
.lwl-ntitel { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; overflow-wrap: anywhere; }
.lwl-ntitel span { color: color-mix(in srgb, var(--accent) 45%, var(--ink)); }
.lwl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.lwl-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lwl-zettel { margin: 8px 0 0 2px; }
.lwl-knopf, .lwl-ja { font: inherit; font-size: 13.5px; font-weight: 700; min-height: 40px; padding: 8px 15px; border-radius: var(--r);
  border: 1.5px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--panel); color: var(--ink); cursor: pointer; }
.lwl-ja { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lwl-ja:hover:not(:disabled) { background: var(--accent-hover); }
.lwl-knopf:hover:not(:disabled) { border-color: var(--accent); }
.lwl-knopf[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.lwl-knopf:disabled, .lwl-ja:disabled { cursor: progress; opacity: .6; }
.lwl-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.lwl-todo li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.lwl-todo .lw-link { min-height: 32px; }
.lwl-dot { width: 9px; height: 9px; border-radius: var(--round); background: color-mix(in srgb, var(--muted) 55%, var(--line)); transform: translateY(1px); }
.lwl-dot.warn { background: var(--status-warnung); }
.lwl-dot.ok { background: var(--gruen); }
.lwl-budget { display: flex; flex-direction: column; gap: 6px; }
.lwl-brow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.lwl-bname { min-width: 0; overflow-wrap: anywhere; }
.lwl-bbar { position: relative; height: 8px; border-radius: var(--r-small); background: color-mix(in srgb, var(--ink) 8%, var(--panel)); }
.lwl-bbar i { position: absolute; inset: 0 auto 0 0; border-radius: var(--r-small); background: var(--accent); }
.lwl-bbar b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: var(--r-small); }
.lwl-bzahl { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.lwl-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.lwl-kopfl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.lwl-legende { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.lwl-lgteile { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.lwl-lgk { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 5px; border: 1px solid var(--line); border-radius: var(--r);
  font-weight: 700; color: var(--ink); background: var(--panel); }
.lwl-lgk-ok { color: color-mix(in srgb, var(--gruen) 55%, var(--ink)); background: color-mix(in srgb, var(--gruen) 10%, var(--panel));
  border-color: color-mix(in srgb, var(--gruen) 35%, var(--line)); }
.lwl-lgk .lwl-mark { width: 13px; height: 13px; }
.lwl-lgb { display: inline-block; width: 18px; height: 11px; border-radius: var(--r-small); box-sizing: border-box; }
.lwl-lgb-held { background: color-mix(in srgb, var(--muted) 18%, var(--panel)); border: 1.5px solid color-mix(in srgb, var(--muted) 35%, var(--line)); }
.lwl-lgb-planned { border: 2px solid var(--muted); }
.lwl-lgb-suggested { border: 2px dotted var(--muted); }
.lwl-mehr { align-self: flex-start; gap: 4px; }
.lwl-grid { display: grid; column-gap: 10px; align-items: stretch; }
.lwl-grid.lwl-sehen { column-gap: 0; --lwl-datum: 96px; }
.lwl-sehen .lwl-when { padding-right: 8px; }
.lwl-sehen .lwl-cells { padding-right: 10px; }
.lwl-bg { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.lwl-bg-frei { background: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--ink) 3%, transparent) 9px 10px); }
.lwl-bg.on { background: var(--accent-soft); }
.lwl-when { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 0; min-width: 0; }
.lwl-datum { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font: inherit; text-align: left; color: var(--ink);
  background: none; border: 0; padding: 3px 6px 2px 0; min-height: 26px; cursor: default; }
button.lwl-datum { cursor: pointer; border-radius: var(--r); }
button.lwl-datum:hover .lwl-tag { text-decoration: underline; text-underline-offset: 3px; }
.lwl-tag { font-size: 13px; font-weight: 800; }
.lwl-std, .lwl-unter { font-size: 11.5px; color: var(--muted); }
.lwl-unter { overflow-wrap: anywhere; line-height: 1.3; }
.lwl-warn { font-size: 11.5px; color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); display: inline-flex; align-items: center; gap: 4px; }
.lwl-cells { grid-column: 2; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0; min-width: 0; }
.lwl-leer { font-size: 13px; color: var(--muted); }
.lwl-leer .lwl-planlink { min-height: 28px; }
.lwl-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; padding: 3px 6px 3px 8px; border-left: 3px solid var(--kb, var(--line));
  border-radius: 0 var(--r) var(--r) 0; background: color-mix(in srgb, var(--kb, var(--line)) 4%, var(--panel)); }
.lwl-grp.on { background: color-mix(in srgb, var(--kb, var(--accent)) 10%, var(--panel)); }
.lwl-glab { font: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: none; border: 0;
  padding: 2px 4px 2px 0; min-height: 24px; cursor: pointer; color: color-mix(in srgb, var(--kb, var(--muted)) 75%, var(--ink)); text-align: left; }
.lwl-glab:hover { text-decoration: underline; text-underline-offset: 3px; }
.lwl-fremd .lwl-glab { cursor: default; text-decoration: none; }
.lwl-grp.lwl-dim { border-left-color: var(--line); background: var(--panel); }
.lwl-grp.lwl-dim .lwl-z { background: var(--panel); border-color: var(--line); }
.lwl-grp.lwl-dim .lwl-glab { color: var(--muted); }
.lwl-z { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.3;
  text-align: left; min-height: 26px; padding: 2px 9px 2px 6px; border-radius: var(--r); border: 1.5px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer; }
.lwl-z:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lwl-z.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lwl-z-held { background: color-mix(in srgb, var(--ink) 3%, var(--panel)); }
.lwl-z-lesson, .lwl-z-plan { border-style: dashed; border-color: color-mix(in srgb, var(--muted) 55%, var(--line)); }
.lwl-z-suggested { border-style: dotted; border-width: 2px; border-color: color-mix(in srgb, var(--muted) 70%, var(--line)); }
.lwl-z-rest { border-color: color-mix(in srgb, var(--muted) 70%, var(--line)); }
.lwl-z small { font-size: 11px; font-weight: 700; color: var(--muted); }
.lwl-ztext { min-width: 0; overflow-wrap: anywhere; }
.lwl-regel { font-style: normal; font-size: 11px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.lwl-mark { --mk: color-mix(in srgb, var(--accent) 70%, var(--ink)); flex: none; display: inline-flex; align-items: center;
  justify-content: center; width: 15px; height: 15px; border-radius: var(--round); box-sizing: border-box; border: 2px solid var(--mk); color: var(--panel); }
.lwl-m-eingefuehrt { background: conic-gradient(var(--mk) 0 33%, transparent 33% 100%); }
.lwl-m-geuebt { background: conic-gradient(var(--mk) 0 67%, transparent 67% 100%); }
.lwl-m-sicher, .lwl-m-ok { background: var(--mk); }
.lwl-mark.lwl-m-ok { --mk: color-mix(in srgb, var(--gruen) 85%, var(--ink)); }
.lwl-mark svg { width: 10px; height: 10px; }
.lwl-grund { margin: 0; font-size: 12px; color: var(--muted); }
.lwl-vknoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.lwl-heute { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 11.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 45%, var(--ink)); }
.lwl-heute::before, .lwl-heute::after { content: ''; flex: 1; height: 2px; background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lwl-bar { position: relative; align-self: stretch; width: 100%; min-height: 20px; margin: 5px 0; padding: 0; border: 0; background: none; cursor: pointer; }
.lwl-bar::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px; border-radius: var(--r-small); box-sizing: border-box; }
@media (pointer: coarse) { .lwl-sehen { --lwl-spurb: 24px; } }
.lwl-bar-held::before { background: var(--kb, var(--muted)); }
.lwl-bar-planned::before { border: 1.5px dashed var(--kb, var(--muted)); }
.lwl-bar.on::before { width: 8px; margin-left: -4px; box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px var(--kb, var(--accent)); }
.lwl-bar.lwl-dim { --kb: color-mix(in srgb, var(--muted) 55%, var(--line)); }
.lwl-planliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lwl-planliste li { display: flex; align-items: center; gap: 6px; }
.lwl-weg { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--round);
  border: 1.5px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.lwl-weg:hover:not(:disabled) { color: var(--status-fehler); border-color: color-mix(in srgb, var(--status-fehler) 45%, var(--line)); }
.lwl-weg:disabled { cursor: progress; opacity: .5; }
.lwl-fremdid { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.lwl-stunde { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); }
.lwl-stunde small { color: var(--muted); font-size: 12px; }
.lwl-verlauf { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.lwl-verlauf li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px; }
.lwl-verlauf li span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.lwl-verlauf li.lwl-vfehlt { color: var(--muted); font-style: italic; }
.lwl-abw { color: var(--muted); }
.lwl-abw.warn { color: var(--ink); font-weight: 700; }
.lwl-rfh { margin: 6px 0 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lwl-rftext { margin-top: 4px; font-size: 13px; line-height: 1.45; }
.lwl-rftext small { display: block; font-size: 11.5px; font-weight: 600; }
.lwl-rftext p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.lwl-export { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.lwl-export > span, .lwl-export .lw-hinweis { flex-basis: 100%; }
.lw-hilfe { display: flex; flex-direction: column; gap: 4px; }
.lw-hilfenamen { margin: 0; font-size: 13.5px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 6px; }
.lw-kind { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--panel); border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; }
.lw-kind:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lw-alle { margin-top: 16px; }
.lwl-alle { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lwl-allez { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px; padding: 8px 12px;
  font: inherit; font-size: 13px; text-align: left; color: var(--ink); background: var(--panel); border: 1.5px solid var(--line);
  border-radius: var(--r); cursor: pointer; }
.lwl-allez:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.lwl-allez small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.lwl-z.lwl-z-ruhig { cursor: default; }
.lw-status { margin: 0; }
.lwl-modus { display: inline-flex; padding: 2px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); }
.lwl-mbtn { font: inherit; font-size: 13px; font-weight: 700; min-height: 32px; padding: 4px 14px; border: 0; border-radius: var(--r);
  background: none; color: var(--muted); cursor: pointer; }
.lwl-mbtn[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, var(--line)); }
.lwl-armbar, .lwl-rueckleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; font-size: 13px;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--panel); }
.lwl-armbar { border: 2px solid var(--kb, var(--accent)); background: color-mix(in srgb, var(--kb, var(--accent)) 6%, var(--panel)); }
.lwl-rueckleiste.lwl-fehler { border-color: color-mix(in srgb, var(--status-fehler) 55%, var(--line)); }
.lwl-rueckleiste.lwl-fehler svg { flex: none; color: var(--status-fehler); }
.lwl-planwrap { min-width: 0; max-width: 100%; overflow-x: auto; padding: 14px 0; }
.lwl-grid.lwl-plan { grid-auto-rows: minmax(64px, auto); column-gap: 8px; --lwl-datum: 96px; --lwl-spur: 112px; }
.lwl-pc { margin: 5px 0; border-radius: var(--r); }
.lwl-pc-ziel { display: grid; place-items: center; padding: 0; font: inherit; cursor: copy; color: color-mix(in srgb, var(--accent) 55%, var(--ink));
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--panel)); }
.lwl-bg.lwl-ziel { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.lwl-bg.lwl-drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); border-radius: var(--r); }
.lwl-blk { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; margin: 5px 0;
  padding: 8px 10px; font: inherit; text-align: left; color: var(--ink); background: var(--panel); border: 2px solid var(--kb, var(--muted));
  border-radius: var(--r); }
.lwl-blk b { font-size: 13px; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; color: color-mix(in srgb, var(--kb, var(--muted)) 70%, var(--ink)); }
.lwl-blk small { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.lwl-blk-held { cursor: pointer; border-width: 1.5px; border-color: color-mix(in srgb, var(--kb, var(--muted)) 30%, var(--line));
  background: color-mix(in srgb, var(--kb, var(--muted)) 12%, var(--panel)); }
.lwl-blk-fest { cursor: pointer; border-width: 1.5px; border-color: color-mix(in srgb, var(--kb, var(--muted)) 55%, var(--line)); }
.lwl-blk-held.on, .lwl-blk-fest.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--kb, var(--accent)) 30%, transparent); }
.lwl-blk.lwl-dim { border-color: var(--line); background: var(--panel); }
.lwl-blk.lwl-dim b { color: var(--muted); }
.lwl-blk-vor { border-style: dotted; background: color-mix(in srgb, var(--kb, var(--muted)) 5%, var(--panel)); }
.lwl-blk-vor .lwl-vknoepfe { margin-top: 4px; }
.lwl-blk-vor .lwl-ja, .lwl-blk-vor .lwl-knopf { max-width: 100%; min-height: 28px; padding: 3px 8px; font-size: 12px; }
.lwl-blk-vor .lwl-ja { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.lwl-blk-vor .lwl-ja:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
.lwl-blk-vor .lwl-regel { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--kb, var(--muted)) 70%, var(--ink)); }
.lwl-blk-plan { padding: 0; cursor: grab; box-shadow: var(--shadow); }
.lwl-blk-plan.on { box-shadow: 0 0 0 4px color-mix(in srgb, var(--kb, var(--accent)) 25%, transparent); touch-action: none; }
.lwl-blk-plan.lwl-zieht { z-index: 5; cursor: grabbing; box-shadow: var(--shadow); }
.lwl-blk-wahl { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 2px; width: 100%; min-height: 40px; padding: 8px 10px;
  font: inherit; text-align: left; color: inherit; background: none; border: 0; border-radius: inherit; cursor: inherit; }
.lwl-blk-plan .lwl-blk-wahl { padding: 14px 10px; }
.lwl-zumeditor { display: none; align-self: flex-start; margin: 0 10px 12px; }
@media (max-width: 999px) { .lwl-blk-plan.on .lwl-zumeditor { display: inline-flex; align-items: center; } }
.lwl-griff { display: none; position: absolute; left: 0; right: 0; z-index: 2; height: 24px; padding: 0; border: 0; background: none;
  cursor: ns-resize; touch-action: none; }
.lwl-griff-ende { top: -12px; }
.lwl-griff-anfang { bottom: -12px; }
.lwl-griff::after { content: ''; position: absolute; left: 50%; top: 50%; width: 38px; height: 10px; margin: -5px 0 0 -19px; box-sizing: border-box;
  border: 2px solid var(--kb, var(--muted)); border-radius: var(--r); background: var(--panel); }
.lwl-blk-plan.on .lwl-griff { display: block; }
@media (hover: hover) and (pointer: fine) { .lwl-blk-plan:hover .lwl-griff, .lwl-blk-plan:focus-within .lwl-griff { display: block; } }
.lwl-weiter { display: inline-flex; align-items: center; gap: 2px; padding: 6px 10px 0; font-size: 11px; color: var(--muted); }
.lw-ziehen, .lw-ziehen * { cursor: grabbing !important; }
.lwl-plan.lwl-busy { cursor: progress; }
.lwl-spaninfo { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13.5px; }
.lwl-spaninfo span { display: inline-flex; align-items: center; gap: 6px; }
.lwl-lage { display: flex; flex-direction: column; gap: 6px; }
.lwl-sslots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lwl-sslots > li { display: flex; flex-direction: column; gap: 4px; padding-left: 9px;
  border-left: 3px solid color-mix(in srgb, var(--kb, var(--line)) 45%, var(--line)); }
.lwl-modliste { margin: 0; padding-left: 18px; font-size: 13px; }
.lw-arm[aria-pressed="true"] { border-color: var(--kb, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--kb, var(--accent)) 30%, transparent); }
@media (pointer: coarse) {
  .lwl-grid.lwl-plan { grid-auto-rows: minmax(100px, auto); }
  .lwl-griff { height: 40px; }
  .lwl-griff-ende { top: -20px; }
  .lwl-griff-anfang { bottom: -20px; }
  .lwl-blk-plan .lwl-blk-wahl { padding: 22px 10px; }
  .lwl-zumeditor { margin-bottom: 22px; }
  .lwl-planwrap { padding: 22px 0; }
  .lwl-mbtn { min-height: 40px; }
}
@media (pointer: coarse) and (max-height: 520px) { .lwl-modus, [data-lwl-planen] { display: none !important; } }
@media (max-width: 760px) {
  .lw-stunden, .lw-breit { display: none !important; }
  .lw-zuletzt { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1.5px solid var(--line);
    border-radius: var(--r); padding: 14px 16px; }
  .lwl-zrow { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
  .lw-mit-stunden .lw-side, .lw-head { padding: 12px; }
  .lwl-z, .lwl-glab, .lwl-todo .lw-link { min-height: 40px; }
}
@media (pointer: coarse) {
  .lwl-z, .lwl-datum, .lwl-glab, .lwl-todo .lw-link, .lw-relz, .lw-relk, .lw-krow, .lw-brow, .lwl-leer .lwl-planlink,
  .lwl-blk-vor .lwl-ja, .lwl-blk-vor .lwl-knopf { min-height: 40px; }
  .lwl-weg { width: 40px; height: 40px; }
}
.ld-fenster { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); }
.ld-fenster.ld-serie { width: min(1060px, calc(100vw - 32px)); }
.ld-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: start; }
.ld-kopf .ks-dialog-title { margin: 0; line-height: 1.25; overflow-wrap: anywhere; }   
.ld-kopf > .ld-satz { grid-column: 1 / -1; margin-top: 4px; }
.ld-satz { margin: 8px 0 0; max-width: 80ch; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ld-leerkopf { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.ld-leerkopf + .ld-satz { margin-top: 2px; }
.ld-teil { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.ld-body > .ld-teil:first-child { margin-top: 16px; }
.ld-teil > :is(h2, h3) { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.ld-teil > :is(h2, h3) .ic { color: var(--muted); }
.ld-ziele { margin-top: 4px; max-width: 840px; }
.ld-grp { margin-top: 10px; }
.ld-komp { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.ld-kb { display: block; flex: none; width: 9px; height: 9px; border-radius: var(--round); background: var(--kb, var(--muted)); }
.ld-grp ul { list-style: none; margin: 0; padding: 0 0 0 17px; }
.ld-ziel { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; min-height: 32px; }
.ld-ziele.ohne-marken .ld-ziel { grid-template-columns: minmax(0, 1fr) auto; }
.ld-zieltext { padding: 5px 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.ld-ziel .ld-weg { min-width: 28px; height: 28px; padding: 0; color: var(--muted); }
.ld-regel { justify-self: start; display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-small);
  background: var(--field); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.ld-regel:empty { visibility: hidden; }
.ld-ziele .ld-her { margin-left: 17px; }
.ld-zeile { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0 9px; }
.ld-dazu-h { position: relative; display: inline-flex; align-items: center; border-radius: var(--r); }
.ld-dazu-h > .ic { position: absolute; left: 8px; width: 16px; height: 16px; color: var(--accent); pointer-events: none; }
select.ld-dazu { width: 110px; min-height: 28px; padding: 0 8px 0 30px; font-size: 13px; font-weight: 400; text-overflow: ellipsis; }
select.ld-dazu::picker-icon { display: none; }
.ld-dazu-h:has(select:disabled) > .ic { color: var(--muted); }
.ld-warum { flex: 1 1 0; min-width: 0; }
.ld-warum > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px; border-radius: var(--r);
  font-size: 13px; color: var(--muted); cursor: pointer; list-style: none; }
.ld-warum > summary::-webkit-details-marker { display: none; }
.ld-warum > summary:hover { background: var(--field); }
.ld-warum > summary .ic { width: 16px; height: 16px; transition: transform .15s; }
.ld-warum[open] > summary .ic { transform: rotate(180deg); }
.ld-dazu-h + .ld-warum > .ld-gruende, .ld-dazu-h + .ld-warum > .ld-satz { margin-left: -125px; }
.ld-gruende { list-style: none; margin: 4px 0 0; padding: 0 0 0 17px; max-width: 920px; font-size: 13px; line-height: 1.45; }
.ld-gruende li { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 8px; padding: 3px 0; }
.ld-gruende li.ld-leise { color: var(--muted); }
.ld-rest { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 0 11px; padding: 6px; border-radius: var(--r); font-size: 14px; line-height: 1.4; cursor: pointer; }
.ld-rest:hover:not(:has(input:disabled)) { background: var(--field); }
.ld-rest input { margin-top: 1px; }
.ld-zettel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 -4px; font-size: 14px; }
.ld-zettel .sticky-note { display: inline-flex; padding: 5px 10px 6px 8px; font-size: 13px; font-weight: 700; line-height: 1.2; transform: rotate(-1.2deg); }
.ld-gitter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.ld-gitter.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.ld-gitter.n1 { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.ld-vl { min-width: 0; display: flex; flex-direction: column; padding: 2px 22px 6px; border-left: 1px solid var(--line); }
.ld-vl:first-child { padding-left: 0; border-left: 0; }
.ld-vl:last-child { padding-right: 0; }
.ld-vkopf { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; min-height: 40px; }
.ld-vname { position: relative; min-width: 0; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ld-vzusatz { padding-left: 4px; font-size: 14px; font-weight: 400; color: var(--muted); }
.ld-vwahl { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-left: -6px; padding: 0 6px; border-radius: var(--r); cursor: pointer; }
.ld-vwahl:hover:not(:has(input:disabled)) { background: var(--field); }
.ld-vwahl:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
.ld-vwahl .ld-vname { font-weight: 400; }
.ld-vwahl input:checked + .ld-vname { font-weight: 600; }
.ld-vwahl .ld-vname::after {
  content: ""; position: absolute; left: -2px; right: -3px; bottom: -5px; height: 5px; pointer-events: none; opacity: 0;
  background: var(--accent); -webkit-mask: var(--mask-underline) 0 0 / 100% 100% no-repeat; mask: var(--mask-underline) 0 0 / 100% 100% no-repeat;
}
.ld-vwahl input:checked + .ld-vname::after { opacity: 1; }
.ld-vmin { margin-left: auto; min-width: 0; font-size: 13px; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.ld-vmin > span { display: inline-block; white-space: nowrap; }
.ld-vmin.voll { color: var(--ink); font-weight: 600; }
.ld-vmin .ld-plus { font-weight: 400; color: var(--muted); }
.ld-zeit { display: flex; gap: 2px; height: 10px; margin: 6px 0 12px; }
.ld-z { display: block; min-width: 3px; border-radius: var(--r-small); }
.ld-z-modul { background: var(--kb, var(--muted)); }
.ld-z-rest { background: repeating-linear-gradient(135deg, var(--muted) 0 2.5px, transparent 2.5px 5px); box-shadow: inset 0 0 0 1px var(--muted); }
.ld-z-eigen { box-shadow: inset 0 0 0 1.5px var(--kb, var(--muted)); }
.ld-z-eigen[data-kb=""] { box-shadow: inset 0 0 0 1.5px var(--muted); }
.ld-z-modul[data-kb=""] { background: var(--muted); }
.ld-z-umbau { background: radial-gradient(circle, var(--edge) 1.3px, transparent 1.7px) 0 50% / 6px 100% repeat-x; border-radius: 0; }
.ld-z-frei { border: 1px dashed var(--edge); }
.ld-teile { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ld-teile li { display: grid; grid-template-columns: 48px 14px minmax(0, 1fr); column-gap: 6px; align-items: baseline; padding: 7px 0 8px; border-bottom: 1px solid var(--line); }
.ld-tmin { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ld-tz { align-self: start; padding-top: 6px; }
.ld-tz .ld-z { width: 10px; height: 10px; min-width: 0; }
.ld-ttitel { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.ld-tart { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.ld-tumbau .ld-tz { padding-top: 2px; color: var(--muted); }
.ld-tumbau .ld-tz .ic { width: 14px; height: 14px; }
.ld-tumbau .ld-ttext { font-size: 13px; color: var(--muted); }
.ld-hinweis { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 6px; margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.ld-offen { display: inline-flex; color: var(--edge); }
.ld-offen .ic { width: 14px; height: 14px; margin-top: 2px; }
.ld-punkt { display: block; width: 9px; height: 9px; margin: 6px 0 0 2.5px; border-radius: var(--round); background: var(--ink); }
.ld-rub { margin: 12px 0 0; font-size: 13px; font-weight: 600; }
.ld-zl { list-style: none; margin: 2px 0 0; padding: 0; font-size: 13px; line-height: 1.4; }
.ld-zl li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 6px; padding: 2px 0; }
.ld-zl.ohne { color: var(--muted); }
.ld-neben { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.ld-neben b { color: var(--ink); font-weight: 600; }
.ld-neben-i { color: var(--muted); }
.ld-voptionen { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 12px; }
.ld-voptionen .ld-vwahl { align-items: flex-start; padding: 6px; }
.ld-voptionen .ld-vname { font-size: 14px; line-height: 1.35; }
.ld-voptionen .ld-vname::after { display: none; }
.ld-anschluss p { margin: 8px 0 0; max-width: 86ch; font-size: 14px; line-height: 1.5; }
.ld-passt { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); }
.ld-passt > .ks-onward { margin-left: 4px; }
.ld-fenster menu { flex-wrap: wrap; align-items: center; }
.ld-fenster menu { border-top: 1px solid var(--line); }
.ld-fenster menu > button.primary { min-height: 36px; padding: 0 16px; }
.ld-wo { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.ld-wo label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ld-wo select { min-height: 32px; max-width: 100%; font-size: 13px; }
.ld-speichert { font-size: 13px; color: var(--muted); }
.ld-fehler { display: flex; align-items: flex-start; gap: 6px; flex-basis: 100%; margin: 0 0 2px; font-size: 13px; line-height: 1.45; color: var(--status-fehler); }
.ld-fehler .ic { flex: none; margin-top: 1px; }
.ld-szeilen { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ld-szeile { display: grid; grid-template-columns: 196px minmax(0, 1fr) minmax(0, 1.35fr) auto; column-gap: 20px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line); }
.ld-swann { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; }
.ld-swann span { font-size: 13px; color: var(--muted); }
.ld-sziel { margin-top: 0; font-size: 14px; }
.ld-sziel .ld-hinweis { margin-top: 0; }
.ld-skurz { min-width: 0; }
.ld-stitel { margin: 0; font-size: 14px; line-height: 1.35; }
.ld-stitel .ld-neben-i { padding-left: 4px; font-size: 13px; white-space: nowrap; }
.ld-skurz .ld-zeit { margin: 6px 0; }
.ld-steile { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.ld-skurz .ld-neben { margin-top: 4px; }
.ld-skurz .ld-hinweis { margin-top: 0; font-size: 14px; color: var(--ink); }
.ld-skurz .ld-hinweis + .ld-satz { margin: 2px 0 0 22px; }
.ld-skurz .ld-hinweis.ld-sluecke { margin-top: 8px; font-size: 13px; color: var(--muted); }
.ld-swahl { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0 -6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ld-smit { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; margin-top: -4px; padding: 0 6px; border-radius: var(--r);
  font-size: 14px; white-space: nowrap; cursor: pointer; }
.ld-smit:hover:not(:has(input:disabled)) { background: var(--field); }
.ld-smit:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
@media (max-width: 1179px) {
  .ld-vl { padding: 2px 14px 6px; }
  .ld-szeile { grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.3fr) auto; column-gap: 14px; }
}
@media (max-width: 759px) {
  .ld-fenster, .ld-fenster.ld-serie { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .ld-fenster menu { gap: 6px 8px; }
  .ld-wo { flex-basis: 100%; }
  .ld-fenster menu .spacer { display: none; }
  .ld-ziel { grid-template-columns: minmax(0, 1fr) auto; padding: 2px 0; }
  .ld-ziel .ld-regel { grid-column: 1 / -1; margin-top: 4px; }
  .ld-ziel .ld-regel:empty { display: none; }
  .ld-gruende li { grid-template-columns: minmax(0, 1fr); }
  .ld-gitter, .ld-gitter.n2 { grid-template-columns: minmax(0, 1fr); }
  .ld-vl, .ld-vl:first-child, .ld-vl:last-child { padding: 12px 0 14px; border-left: 0; border-top: 1px solid var(--line); }
  .ld-vl:first-child { padding-top: 2px; border-top: 0; }
  .ld-voptionen { margin-top: 0; }
  .ld-szeile { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .ld-swann { grid-column: 1; }
  .ld-smit { grid-column: 2; grid-row: 1; }
  .ld-sziel, .ld-skurz { grid-column: 1 / -1; }
}
@media (pointer: coarse) {
  .ld-fenster :is(button.primary, .ks-secondary, .ks-onward, select), .vz-blatt :is(button.primary, .ks-secondary, select),
  .ld-fenster menu > button.primary { min-height: 44px; }
  .ld-ziel .ld-weg, .ld-swahl .ks-tool { min-width: 44px; height: 44px; }
  select.ld-dazu, .ld-warum > summary { min-height: 44px; }
  .ld-vwahl, .ld-rest, .ld-smit { min-height: 44px; }
  .vz-angabe input[type="number"] { height: 44px; }
}
.lwl-planwarn { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600;
  color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); }
.lwl-pw-zeichen { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: var(--round); flex: none;
  font-style: normal; font-weight: 800; font-size: 11px; background: var(--status-warnung); color: var(--panel); }
.lwl-planwarn.rot { color: color-mix(in srgb, var(--status-fehler) 72%, var(--ink)); }
.lwl-planwarn.rot .lwl-pw-zeichen, .lwl-planbox.rot .lwl-pw-zeichen { background: var(--status-fehler); }
.lwl-planbox { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 8px 0; padding: 10px 12px;
  border: 1px solid var(--status-warnung); border-radius: var(--r); background: color-mix(in srgb, var(--status-warnung) 7%, var(--panel)); }
.lwl-planbox b { display: inline-flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--status-warnung) 70%, var(--ink)); }
.lwl-planbox small { font-size: 12.5px; color: color-mix(in srgb, var(--muted) 55%, var(--ink)); }
.lwl-planbox.rot { border-color: var(--status-fehler); background: color-mix(in srgb, var(--status-fehler) 6%, var(--panel)); }
.lwl-planbox.rot b { color: color-mix(in srgb, var(--status-fehler) 72%, var(--ink)); }
.lwl-z.lwl-z-luecke { border: 1.5px dashed var(--status-warnung); }
.lwl-z.lwl-z-ueber { border: 1.5px dotted var(--status-warnung); }
.lwl-dot.rot { background: var(--status-fehler); }
@media (forced-colors: active) { .ld-vwahl .ld-vname::after { forced-color-adjust: none; background: CanvasText; } }
