/* App-Shell: Rail links, Räume in der Mitte, Bohrkern rechts. Auf dem Phone Tab-Leiste unten. */
[hidden] {
  display: none !important;
}
:root {
  --rail: 224px;
  --corew: 96px;
  --depth: 0;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
html {
  scroll-padding-top: 20px;
  background: var(--bg);
}
body {
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(224, 178, 90, calc(0.05 + var(--depth) * 0.06)), transparent 60%),
    linear-gradient(180deg, var(--bg), color-mix(in oklab, var(--bg), #2a1c10 calc(var(--depth) * 45%)));
  background-attachment: fixed;
  transition: background 0.6s;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}
:is(.rail, .tabbar, .top-tools, .pal-in, .slot-head) svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
kbd {
  font: 10.5px var(--mono);
  color: var(--faint);
  border: 1px solid var(--line2);
  border-radius: 5px;
  padding: 0 5px;
  line-height: 17px;
}

.app {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--corew);
  min-height: 100dvh;
}

/* ---------------------------------------------------------------- Rail */
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 16px 20px 20px;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 0 6px;
}
.brand-mark {
  width: 14px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    #e0b25a 0 22%,
    #c8643b 22% 34%,
    #6f8f6a 34% 52%,
    #8e6fae 52% 63%,
    #4f7fa6 63% 80%,
    #5d564b 80%
  );
  box-shadow:
    inset -3px 0 4px rgba(0, 0, 0, 0.4),
    inset 2px 0 2px rgba(255, 240, 215, 0.15);
}
.brand-word {
  font: 400 25px / 1 var(--serif);
  letter-spacing: -0.01em;
}
.rooms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.room {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  transition:
    color 0.15s,
    background 0.15s;
}
.room:hover {
  color: var(--ink);
  background: rgba(255, 240, 215, 0.03);
}
.room[aria-current] {
  color: var(--ink);
  background: var(--panel);
}
.room[aria-current]::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.room[aria-current] svg {
  color: var(--accent);
}
.rail-tools {
  margin-top: auto;
  display: grid;
  gap: 6px;
}
.tool {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--ink2);
  font-size: 13.5px;
  text-align: left;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.tool span {
  flex: 1;
}
.tool svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.tool:hover {
  border-color: var(--muted);
  background: var(--panel);
}
#dig:hover svg {
  color: var(--accent);
  animation: dig 0.7s var(--ease);
}
@keyframes dig {
  40% {
    transform: translateY(3px);
  }
}

/* ---------------------------------------------------------------- Kopf */
main {
  min-width: 0;
  padding: 34px 40px 60px;
}
/* Fokus landet nach Schleuse und Sprunglink programmatisch hier, ein Rahmen ums Ganze wäre nur Lärm */
main:focus,
main:focus-visible {
  outline: 0;
}
.top {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}
.top-title {
  flex: 1;
  min-width: 0;
}
.kicker {
  margin: 0 0 6px;
  font: 500 10.5px / 1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.top h1 {
  margin: 0;
  font: 400 clamp(44px, 5.6vw, 76px) / 0.92 var(--serif);
  letter-spacing: -0.02em;
}
.sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.top-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.stand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s;
}
.stand:hover {
  border-color: var(--muted);
}
.stand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(143, 191, 122, 0.14);
}
html[data-past] .stand-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 178, 90, 0.16);
}
.stand-l {
  display: grid;
  line-height: 1.25;
}
.stand-l small {
  font: 10.5px var(--mono);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.stand-l b {
  font-weight: 500;
  font-size: 14px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  color: var(--ink2);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.only-phone {
  display: none;
}

.travel {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -8px 0 22px;
  padding: 10px 12px 10px 16px;
  border: 1px solid #4d3f25;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(224, 178, 90, 0.12), rgba(224, 178, 90, 0.03));
  color: var(--ink2);
  font-size: 14px;
  animation: drop 0.35s var(--ease);
}
.travel span {
  flex: 1;
}
.travel b {
  color: var(--accent2);
  font-weight: 500;
}
.travel button {
  border: 0;
  border-radius: 9px;
  padding: 7px 12px;
  background: var(--accent);
  color: #1f1b16;
  font: 500 13px var(--sans);
  cursor: pointer;
  white-space: nowrap;
}
.travel button:hover {
  background: var(--accent2);
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Ausgabe-Leiste */
.issuebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 -40px 22px;
  padding: 10px 40px;
  background: color-mix(in oklab, var(--bg), transparent 12%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.seg {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--panel);
}
.seg button {
  border: 0;
  background: none;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13.5px;
  transition:
    background 0.2s,
    color 0.2s;
}
.seg button:hover {
  color: var(--ink);
}
.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.issue-step {
  display: flex;
  align-items: center;
  gap: 4px;
}
.issue-step button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  background: var(--panel);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: var(--ink2);
}
.issue-step button:hover:not(:disabled) {
  border-color: var(--muted);
}
.issue-step button:disabled {
  opacity: 0.35;
  cursor: default;
}
#issue-label {
  min-width: 132px;
  text-align: center;
  font: 400 24px / 1 var(--serif);
}
.issue-note {
  font: 11px var(--mono);
  color: var(--muted);
  padding: 3px 9px;
  border: 1px solid var(--line2);
  border-radius: 999px;
}

/* ---------------------------------------------------------------- Plätze */
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 34px 20px;
  align-items: stretch;
}
.slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: in 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms);
}
.slot.w {
  grid-column: span 2;
}
.slot.x {
  grid-column: 1 / -1;
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.slot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
}
.slot-head h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font: 400 26px / 1.05 var(--serif);
  letter-spacing: -0.005em;
}
.views {
  align-self: flex-start;
  max-width: 100%;
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}
.views::-webkit-scrollbar {
  display: none;
}
.views button {
  border: 0;
  background: none;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font: 11.5px var(--mono);
  color: var(--faint);
  transition:
    color 0.15s,
    background 0.15s;
}
.views button:hover:not(:disabled) {
  color: var(--ink2);
}
.views button:disabled {
  cursor: default;
}
.views:has(button:only-child) {
  border-color: transparent;
  padding-left: 0;
}
.views button:only-child {
  background: none;
  box-shadow: none;
  color: var(--faint);
  padding-left: 2px;
}
.views button[aria-selected="true"] {
  background: var(--panel2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line2);
}
.grow-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: transparent;
  border-color: transparent;
  color: var(--faint);
}
.grow-btn:hover {
  color: var(--ink);
  border-color: var(--line2);
}
.grow-btn svg {
  width: 15px;
  height: 15px;
}
.stage {
  position: relative;
  flex: 1;
  min-height: var(--h, 260px);
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  contain: layout paint;
}
.view {
  position: absolute;
  inset: 0;
  container-type: inline-size;
}
.view.rise {
  animation: rise 0.45s var(--ease);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(3px);
  }
}
.broken {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font: 12px var(--mono);
  color: var(--muted);
}
.foot {
  margin: 56px 0 0;
  font: 12px var(--mono);
  color: var(--faint);
}
.foot a {
  color: var(--muted);
}

/* ---------------------------------------------------------------- Bohrkern */
.core-rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 14px 10px 14px 0;
  border-left: 1px solid var(--line);
}
.core {
  position: relative;
  height: 100%;
}
.core-box {
  position: absolute;
  inset: 0;
  cursor: ns-resize;
  touch-action: none;
  border-radius: 10px;
  outline-offset: -2px;
}
.core-box canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Sonde: Linie über dem Kern, alles oberhalb ist "noch nicht passiert" */
.probe {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease);
}
.core-box:active .probe {
  transition: none;
}
.probe::before {
  content: "";
  position: absolute;
  right: 8px;
  width: var(--cw, 26px);
  height: var(--above, 0px);
  bottom: 0;
  background: rgba(13, 11, 9, 0.62);
  border-top: 1px solid transparent;
}
.probe::after {
  content: "";
  position: absolute;
  right: 3px;
  width: calc(var(--cw, 26px) + 10px);
  top: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(224, 178, 90, 0.7);
}
.probe-l {
  position: absolute;
  right: calc(var(--cw, 26px) + 16px);
  top: -10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #1f1b16;
  font: 500 10px / 16px var(--mono);
  white-space: nowrap;
}
.core-tip {
  position: absolute;
  right: 48px;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 1px;
  padding: 6px 9px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.core-tip b {
  font: 500 10.5px var(--mono);
}
.core-tip[hidden] {
  display: none;
}
.core-rail.pulse .probe::after {
  animation: glow 1s var(--ease) 2;
}
@keyframes glow {
  50% {
    box-shadow:
      0 0 0 6px rgba(224, 178, 90, 0.25),
      0 0 22px rgba(224, 178, 90, 0.9);
  }
}

.hint {
  position: fixed;
  right: calc(var(--corew) + 14px);
  top: 40%;
  z-index: 20;
  width: 280px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: drop 0.4s var(--ease);
}
.hint::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 22px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  transform: rotate(45deg);
  border-radius: 2px;
}
.hint b {
  font: 400 20px / 1.1 var(--serif);
}
.hint button {
  justify-self: start;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  background: #1f1b16;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}
.hint[hidden] {
  display: none;
}

/* ---------------------------------------------------------------- Dialoge */
dialog {
  padding: 0;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(6, 5, 4, 0.72);
  backdrop-filter: blur(3px);
}
.close {
  border: 1px solid var(--line2);
  background: var(--bg);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  font: 12px var(--mono);
  color: var(--ink2);
}
.close:hover {
  border-color: var(--muted);
}

#pal {
  width: min(620px, 94vw);
  margin: 12vh auto auto;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.pal-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.pal-in input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: 0;
  font: 17px var(--sans);
  color: var(--ink);
}
.pal-in input::-webkit-search-cancel-button {
  display: none;
}
#pal-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: min(420px, 60dvh);
  overflow-y: auto;
}
.pal-g {
  padding: 10px 10px 4px;
  font: 500 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.pal-i {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
}
.pal-i[aria-selected="true"] {
  background: var(--panel2);
}
.pal-i .l {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pal-i .m {
  font: 11.5px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.pal-none {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 14px;
}

.pal-filter {
  border: 1px solid var(--line2);
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  font: 12px var(--mono);
  color: var(--ink2);
}
.pal-filter:hover {
  border-color: var(--muted);
  color: var(--ink);
}

/* ---------------------------------------------------------------- Suche mit Filtern (finder.js) */
.find {
  width: min(1180px, 96vw);
  height: min(880px, 94dvh);
  max-width: none;
  max-height: none;
  border-radius: 18px;
}
.find[open] {
  display: flex;
  flex-direction: column;
}
.find-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.find-head h2 {
  flex: 1;
  margin: 0;
  font: 400 28px / 1 var(--serif);
}
.find-toggle {
  display: none;
}
.find-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}
.find-f {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 20px;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.find-fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.find-lb {
  font: 500 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.find-f input:not([type="checkbox"]),
.find-f select,
.find-sort select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 7px 9px;
  font: 14px var(--sans);
  color-scheme: dark;
}
.find-f input:focus-visible,
.find-f select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.find-f input::placeholder {
  color: var(--faint);
}
.find-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}
.find-pair > span {
  flex: none;
  font: 11px var(--mono);
  color: var(--muted);
}
.find-pair input[type="date"] {
  padding: 7px 6px;
  font-size: 13px;
}
.find-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.find-seg {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--bg);
}
.find-seg button {
  flex: 1;
  border: 0;
  background: none;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-size: 13.5px;
}
.find-seg button:hover {
  color: var(--ink);
}
.find-seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}
.find-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.find-chips button,
.find-more button,
.find-reset,
.find-dir {
  border: 1px solid var(--line2);
  background: var(--bg);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font: 12px var(--mono);
  color: var(--ink2);
}
.find-chips button:hover,
.find-more button:hover,
.find-reset:hover,
.find-dir:hover {
  border-color: var(--muted);
  color: var(--ink);
}
.find-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink2);
  cursor: pointer;
}
.find-check input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.find-acts {
  display: flex;
  gap: 8px;
  align-items: center;
}
.find-show {
  display: none;
}
.find-r {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.find-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.find-sum {
  flex: 1;
  margin: 0;
  min-width: 0;
  font-size: 14px;
  color: var(--ink2);
}
.find-sum b {
  font-weight: 500;
  color: var(--ink);
}
.find-act {
  color: var(--accent2);
}
.find-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.find-sort select {
  width: auto;
  padding: 5px 8px;
  font-size: 13px;
}
.find-dir {
  white-space: nowrap;
}
.find-prov {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.find-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 10px 16px;
}
.find-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.find-hit,
.find-cols {
  display: grid;
  grid-template-columns: 40px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.find-cols {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  padding: 6px 8px 4px;
  border: 0;
  font: 500 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.find-cols .find-name {
  padding-left: 52px;
}
.find-hit {
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.find-hit:hover {
  background: var(--panel2);
}
.find-n {
  font: 11.5px var(--mono);
  color: var(--faint);
  text-align: right;
}
.find-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.find-name b,
.find-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.find-name b {
  font-weight: 500;
  font-size: 14.5px;
}
.find-name small {
  font-size: 12.5px;
  color: var(--muted);
}
.find-ms {
  display: grid;
  grid-template-columns: 60px 60px 48px 68px 68px;
  gap: 8px;
  font: 12px var(--mono);
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}
.find-m.on {
  color: var(--accent2);
}
.find-none {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 12px;
  color: var(--muted);
  font-size: 14px;
}
.find-none b {
  color: var(--ink);
  font-weight: 500;
}
.find-more {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}
.find-more:empty {
  display: none;
}
@media (max-width: 900px) {
  .find {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: 0;
  }
  .find-head {
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  }
  .find-toggle {
    display: inline-block;
  }
  .find-toggle,
  .find-show {
    border: 1px solid var(--accent);
    background: var(--accent);
    border-radius: 999px;
    padding: 6px 13px;
    cursor: pointer;
    font: 500 13px var(--sans);
    color: #1f1b16;
  }
  .find-body {
    display: block;
    position: relative;
    overflow: hidden;
  }
  .find-r {
    height: 100%;
  }
  .find-f {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    background: var(--panel);
    padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .find.f-open .find-f {
    display: flex;
  }
  .find-show {
    display: inline-block;
    flex: 1;
    padding: 10px 14px;
  }
  .find-acts {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding-top: 10px;
    background: var(--panel);
  }
  .find-bar {
    padding: 10px 16px;
  }
  .find-sum {
    flex-basis: 100%;
  }
  .find-scroll {
    padding: 4px 6px calc(16px + env(safe-area-inset-bottom));
  }
  .find-cols {
    display: none;
  }
  .find-hit {
    grid-template-columns: 28px 40px minmax(0, 1fr);
    grid-template-areas: "n c t" ". . m";
    row-gap: 4px;
  }
  .find-hit .find-n {
    grid-area: n;
  }
  .find-hit .cv {
    grid-area: c;
  }
  .find-hit .find-name {
    grid-area: t;
  }
  .find-hit .find-ms {
    grid-area: m;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    text-align: left;
    font-size: 11px;
  }
  .find-hit .find-m::before {
    content: attr(data-k) " ";
    color: var(--faint);
  }
}

.obj {
  width: min(860px, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  border-radius: 18px 0 0 18px;
  border-right: 0;
}
.obj[open] {
  animation: slide 0.35s var(--ease);
}
@keyframes slide {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.obj-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 28px 30px 50px;
}
.obj-head {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.obj-t {
  flex: 1;
  min-width: 0;
}
.obj-t h2 {
  margin: 0;
  font: 400 46px / 0.98 var(--serif);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.obj-by {
  margin: 6px 0 0;
  color: var(--muted);
}
.link {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}
.link:hover {
  text-decoration-color: var(--accent);
}
.obj-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 16px 0 0;
}
.obj-facts dt {
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.obj-facts dd {
  margin: 2px 0 0;
  font-size: 15px;
}
.obj-genres[hidden] {
  display: none;
}
.obj-enr {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid #4d3f25;
  border-radius: 999px;
  color: var(--accent2);
  font: 10px / 1.6 var(--mono);
  vertical-align: 2px;
  white-space: nowrap;
}
.obj-embed {
  margin-bottom: 22px;
}
.obj-empty p {
  margin: 0 0 14px;
}
.obj-empty button {
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  background: var(--accent);
  color: #1f1b16;
  font: 500 13px var(--sans);
  cursor: pointer;
}
.obj-empty {
  padding: 30px;
  border: 1px dashed var(--line2);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}
.obj-stats,
.obj-list,
.obj-view {
  margin-bottom: 26px;
}
.obj-stats dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
}
.obj-stats dl > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.obj-stats dt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font: 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
@media (max-width: 600px) {
  .obj-stats dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .obj-stats dl > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
.obj-stats dt span {
  white-space: nowrap;
}
.obj-stats dt .prov {
  letter-spacing: 0.02em;
  text-transform: none;
}
.obj-stats dd {
  margin: 6px 0 2px;
  font: 400 22px / 1.2 var(--serif);
}
.obj-stats small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.obj-stats h3,
.obj-list h3,
.obj-view h3 {
  margin: 0 0 10px;
  font: 400 22px / 1 var(--serif);
}
.obj-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 14px;
}
.obj-list button {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-align: left;
}
.obj-list button:hover {
  background: var(--panel2);
}
.obj-list .n {
  font: 11px var(--mono);
  color: var(--faint);
  width: 14px;
}
.obj-list .t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.obj-list .c {
  font: 11px var(--mono);
  color: var(--muted);
}

.big {
  width: min(1320px, 96vw);
  height: min(880px, 94dvh);
  max-width: none;
  max-height: none;
  border-radius: 18px;
}
.big[open] {
  display: flex;
  flex-direction: column;
}
.big-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.big-head h2 {
  flex: 1;
  margin: 0;
  font: 400 28px / 1 var(--serif);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.big-stage {
  position: relative;
  flex: 1;
  margin: 14px;
  border-radius: 12px;
  background: var(--bg);
  overflow: auto;
}

.sheet {
  width: 100vw;
  max-width: none;
  margin: auto 0 0;
  border-radius: 20px 20px 0 0;
  border-bottom: 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
}
.sheet[open] {
  display: flex;
  flex-direction: column;
  height: 86dvh;
  max-height: none;
  animation: up 0.35s var(--ease);
}
@keyframes up {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-head h2 {
  margin: 0;
  font: 400 30px / 1 var(--serif);
}
.sheet-sub {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.sheet-quick {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.sheet-quick button {
  flex: none;
  border: 1px solid var(--line2);
  background: var(--bg);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink2);
}
.core-big {
  flex: 1;
  min-height: 0;
  width: 220px;
  margin: 0 auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  transition:
    opacity 0.25s,
    transform 0.3s var(--ease);
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tabbar {
  display: none;
}

/* ---------------------------------------------------------------- Mittlere Breiten */
@media (max-width: 1280px) {
  :root {
    --rail: 76px;
  }
  .rail {
    padding: 22px 10px;
    align-items: center;
  }
  .brand-word,
  .room span,
  .tool span,
  .tool kbd {
    display: none;
  }
  .brand {
    padding: 0;
  }
  .room {
    padding: 11px;
  }
  .room[aria-current]::before {
    left: -10px;
  }
  .tool {
    justify-content: center;
    padding: 10px;
  }
  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slot.w {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------- Phone */
@media (max-width: 900px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail,
  .core-rail,
  .hint {
    display: none;
  }
  .only-phone {
    display: inline-grid;
  }
  main {
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
  }
  .top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
  }
  .top h1 {
    font-size: 52px;
  }
  .top-tools {
    order: -1;
    justify-content: space-between;
  }
  .stand {
    flex: 1;
  }
  .travel {
    flex-wrap: wrap;
    font-size: 13.5px;
    margin-top: 0;
  }
  .issuebar {
    margin: 0 -16px 18px;
    padding: 10px 16px;
    gap: 10px;
  }
  .issue-step {
    flex: 1;
    justify-content: flex-end;
  }
  #issue-label {
    min-width: 0;
    font-size: 21px;
  }
  .issue-note {
    display: none;
  }
  .slots {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .slot.w,
  .slot.x {
    grid-column: auto;
  }
  .slot-head h2 {
    font-size: 24px;
  }
  .grow-btn {
    display: none;
  }
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--bg), transparent 8%);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tab {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 7px 0 5px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
    font-size: 11px;
  }
  .tab svg {
    width: 22px;
    height: 22px;
  }
  .tab[aria-current] {
    color: var(--ink);
  }
  .tab[aria-current] svg {
    color: var(--accent);
  }
  .obj {
    width: 100vw;
    border-radius: 0;
    border: 0;
  }
  .obj-scroll {
    padding: calc(18px + env(safe-area-inset-top)) 16px 40px;
  }
  .obj-head {
    flex-wrap: wrap;
    gap: 14px;
  }
  .obj-head .cv {
    width: 76px !important;
    height: 76px !important;
  }
  .obj-head .close {
    position: absolute;
    right: 16px;
    top: calc(16px + env(safe-area-inset-top));
  }
  .obj-t {
    flex-basis: 100%;
  }
  .obj-t h2 {
    font-size: 36px;
  }
  .obj-list ol {
    grid-template-columns: 1fr;
  }
  #pal {
    margin-top: calc(10px + env(safe-area-inset-top));
  }
  .big {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

/* ---------------------------------------------------------------- Cover als Link */
.view .cv[data-label]:not(button .cv, a .cv, label .cv, [role="button"] .cv) {
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.view .cv[data-label]:not(button .cv, a .cv, label .cv, [role="button"] .cv):hover {
  box-shadow: 0 0 0 2px var(--accent);
}

/* ---------------------------------------------------------------- Datenleiste und Import */
.databar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -6px 0 26px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--panel);
  font-size: 13.5px;
  color: var(--ink2);
}
.databar-l {
  flex: 1;
  min-width: 220px;
  display: grid;
  gap: 2px;
}
.databar-l small {
  font: 12px var(--mono);
  color: var(--muted);
}
.databar-l small:empty {
  display: none;
}
.databar-r {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.databar button {
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--bg);
  font: 500 13px var(--sans);
  cursor: pointer;
}
.databar button.ghost {
  background: transparent;
  color: var(--muted);
}
.databar button.ghost:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.databar-sync {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed var(--line2);
}
.databar-sync[hidden] {
  display: none;
}
.databar-sync .databar-l {
  min-width: min(100%, 320px);
}
.databar-sync b {
  font-weight: 500;
  color: var(--ink);
}
.databar-link {
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--bg);
  font: 500 13px var(--sans);
  text-decoration: none;
}
.databar-link:focus-visible,
.databar-link:hover {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.databar-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  padding: 0 4px 0 12px;
  color: var(--muted);
  font: 500 13px var(--sans);
}
.databar-play:hover,
.databar-play:focus-within {
  color: var(--ink);
  border-color: var(--muted);
}
.databar-play select {
  border: 0;
  padding: 6px 4px;
  background: transparent;
  color: var(--ink);
  font: 500 13px var(--sans);
  cursor: pointer;
}
.imp {
  width: min(620px, 96vw);
  border-radius: 18px;
}
.imp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
}
.imp-head h2 {
  margin: 0;
  font: 400 32px / 1 var(--serif);
}
.imp-body {
  padding: 18px 22px 22px;
}
.imp-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  counter-reset: s;
}
.imp-steps li {
  counter-increment: s;
  display: grid;
  gap: 3px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.imp-steps li b {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
}
.imp-steps li b::before {
  content: counter(s) " ";
  font: 500 11px var(--mono);
  color: var(--accent);
}
.imp-drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 20px 26px;
  border: 1.5px dashed var(--line2);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.imp-drop:hover,
.imp-drop.over,
.imp-drop:focus-visible {
  border-color: var(--accent);
  background: rgba(224, 178, 90, 0.05);
}
.imp-drop b {
  font: 400 24px / 1.1 var(--serif);
  margin-top: 8px;
}
.imp-drop span:not(.imp-core) {
  font-size: 13px;
  color: var(--muted);
}
.imp-core {
  display: grid;
  width: 34px;
  height: 46px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset -4px 0 6px rgba(0, 0, 0, 0.45);
}
.imp-core i {
  display: block;
}
.imp-core i:nth-child(1) {
  background: #e0b25a;
}
.imp-core i:nth-child(2) {
  background: #c8643b;
}
.imp-core i:nth-child(3) {
  background: #6f8f6a;
}
.imp-core i:nth-child(4) {
  background: #8e6fae;
}
.imp-core i:nth-child(5) {
  background: #4f7fa6;
}
.imp-drop.over .imp-core {
  transform: translateY(4px);
  transition: transform 0.2s;
}
.imp-core.busy i {
  animation: layer 1.4s var(--ease) infinite;
  transform-origin: top;
}
.imp-core.busy i:nth-child(2) {
  animation-delay: 0.12s;
}
.imp-core.busy i:nth-child(3) {
  animation-delay: 0.24s;
}
.imp-core.busy i:nth-child(4) {
  animation-delay: 0.36s;
}
.imp-core.busy i:nth-child(5) {
  animation-delay: 0.48s;
}
@keyframes layer {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}
.imp-priv {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.imp-run {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 8px 0;
}
.imp-run b {
  font: 400 22px / 1.1 var(--serif);
}
.imp-log {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font: 12px var(--mono);
  color: var(--ink2);
}
.imp-log li::before {
  content: "◌ ";
  color: var(--accent);
}
.imp-log li.ok {
  color: var(--muted);
}
.imp-log li.ok::before {
  content: "✓ ";
  color: var(--good);
}
.imp-bon {
  width: min(300px, 100%);
  margin: 0 auto;
  background: #f4eee2;
  color: #27221b;
  font: 12px / 1.5 var(--mono);
  padding: 18px 18px 20px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  animation: up 0.5s var(--ease);
}
.imp-bon h4 {
  margin: 0;
  text-align: center;
  font: 400 24px var(--serif);
}
.imp-bon .c {
  text-align: center;
  color: #6d6455;
  margin-bottom: 10px;
}
.imp-bon .r {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.imp-bon .neg span:last-child {
  color: #a3402c;
}
.imp-bon .sum {
  font-weight: 500;
}
.imp-bon hr {
  border: 0;
  border-top: 1px dashed #b8ad9a;
  margin: 8px 0;
}
.imp-go {
  display: block;
  margin: 18px auto 0;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--accent);
  color: #1f1b16;
  font: 500 14px var(--sans);
  cursor: pointer;
}
.imp-err b {
  font: 400 24px var(--serif);
}
.imp-err p {
  color: var(--muted);
}
@media (max-width: 900px) {
  .imp-steps {
    grid-template-columns: 1fr;
  }
  .imp {
    width: 100vw;
    max-width: none;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* In der Karteikarte geht es um genau diesen Gegenstand: keine Auswahl anderer */
.obj .hx-st,
.obj select[aria-label="Song wählen"] {
  display: none !important;
}
.obj-play {
  width: 100%;
  height: 80px;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  text-align: left;
  padding: 0 16px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: 500 14px var(--sans);
}
.obj-play span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  padding-left: 3px;
}
.obj-play small {
  font: 11.5px var(--mono);
  color: var(--muted);
}
.obj-play:hover {
  border-color: var(--muted);
}

/* ---------------------------------------------------------------- Cover-Schleuse (gate.js) */
.gated :is(.app, .tabbar, .hint, .skip) {
  display: none !important;
}
.gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}
.gate-in {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  animation: up 0.5s var(--ease);
}
.gate-core {
  width: 40px;
  height: 54px;
  margin-bottom: 26px;
}
.gate h1 {
  margin: 0;
  font: 400 clamp(36px, 7vw, 52px) / 1 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
  outline: 0;
}
.gate-why {
  margin: 16px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  text-wrap: pretty;
}
.gate-prog {
  width: 100%;
  margin-top: 34px;
}
.gate-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.gate-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s linear;
}
.stalled .gate-bar i {
  background: var(--muted);
}
.gate-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font: 12.5px / 1.4 var(--mono);
  color: var(--ink2);
  font-variant-numeric: tabular-nums;
}
.gate-pct {
  color: var(--muted);
}
.gate-rate {
  min-height: 1.4em;
  margin: 4px 0 0;
  text-align: left;
  font: 12.5px / 1.4 var(--mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.gate-err {
  width: 100%;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #4a2c24;
  border-radius: 12px;
  background: color-mix(in oklab, var(--panel), var(--bad) 8%);
  text-align: left;
}
.gate-err b {
  display: block;
  font: 400 21px / 1.2 var(--serif);
  color: var(--ink);
}
.gate-err p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink2);
}
.gate-act {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.gate-act button {
  border-radius: 10px;
  padding: 10px 18px;
  font: 500 14px var(--sans);
  cursor: pointer;
}
@media (max-width: 480px) {
  .gate-act {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
  }
}
.gate-go {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #1f1b16;
}
.gate-skip {
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--ink2);
}
.gate-skip:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--muted);
}
.gate-skip:disabled {
  cursor: default;
  color: var(--muted);
}
.gate-foot {
  margin: 12px 0 0;
  max-width: 40ch;
  font-size: 12.5px;
  color: var(--muted);
  text-wrap: pretty;
}
@media (prefers-reduced-motion: reduce) {
  .gate-in,
  .gate-core i {
    animation: none !important;
  }
}

/* ---------------------------------------------------------------- Notizen und Lebenskapitel */
.note {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.note-l {
  font: 500 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-ta {
  width: 100%;
  min-height: 40px;
  resize: none;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  padding: 9px 11px;
  font: 14px / 1.45 var(--sans);
}
.note-ta::placeholder {
  color: var(--faint);
}
.note-ta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.note-st {
  font: 10.5px var(--mono);
  color: var(--faint);
}
.obj-notes {
  margin-bottom: 26px;
}
.obj-notes h3 {
  margin: 0 0 10px;
  font: 400 22px / 1 var(--serif);
}
.obj-notes-f {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.obj-empty + .obj-notes {
  margin-top: 26px;
}
/* Markierungen: Favorit, Bewertung, Tags */
.obj-marks {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.obj-empty + .obj-marks {
  margin-top: 22px;
}
.mk-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.mk-fav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink2);
  padding: 6px 14px 6px 11px;
  font: 500 13px var(--sans);
  cursor: pointer;
}
.mk-fav span {
  font-size: 15px;
  line-height: 1;
  color: var(--faint);
}
.mk-fav:hover {
  border-color: var(--muted);
  color: var(--ink);
}
.mk-fav[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--ink);
}
.mk-fav[aria-pressed="true"] span {
  color: var(--accent);
}
.mk-rate {
  display: flex;
  align-items: center;
  gap: 2px;
}
.mk-rate .note-l {
  margin-right: 8px;
}
.mk-r {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--faint);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.mk-r.on {
  color: var(--accent);
}
.mk-r:hover {
  background: var(--panel2);
  color: var(--accent2);
}
.mk-fav:focus-visible,
.mk-r:focus-visible,
.mk-tag button:focus-visible,
.mk-in:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.mk-tagbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.mk-tags {
  display: contents;
  list-style: none;
}
.mk-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--panel);
  padding: 2px 3px 2px 11px;
  font-size: 13px;
  color: var(--ink2);
}
.mk-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-tag button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.mk-tag button:hover {
  background: var(--panel2);
  color: var(--ink);
}
.mk-in {
  flex: 1 1 140px;
  min-width: 0;
  max-width: 240px;
  border: 1px dashed var(--line2);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  padding: 5px 12px;
  font: 13px var(--sans);
}
.mk-in::placeholder {
  color: var(--faint);
}
.find-marks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.find-marks legend {
  padding: 0;
  margin-bottom: 6px;
}
.find-fav {
  color: var(--accent);
}
.find-rate {
  letter-spacing: 0.06em;
  color: var(--accent);
}
.issue-memo {
  max-width: 720px;
  margin: -8px 0 22px;
}
.chap-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.chap-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.chap-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
  font: 14px var(--sans);
}
.chap-list button:hover,
.chap-list button[aria-current="true"] {
  border-color: var(--muted);
}
.chap-list small {
  flex: none;
  font: 11px var(--mono);
  color: var(--muted);
}
.chap h3 {
  margin: 0 0 12px;
  font: 400 22px / 1 var(--serif);
}
.chap-form {
  display: grid;
  gap: 12px;
}
.chap-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.chap-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 10px;
  font: 14px var(--sans);
  color-scheme: dark;
}
.chap-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.chap-err {
  margin: 0;
  color: var(--bad);
  font-size: 13px;
}
.chap-err:empty {
  display: none;
}
.chap-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.chap-act .imp-go {
  margin: 0;
}
.chap-act .ghost {
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 9px 14px;
  background: transparent;
  color: var(--muted);
  font: 500 13px var(--sans);
  cursor: pointer;
}
.chap-act .ghost:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.chap-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* Ausschlüsse: Karteikarte eines Songs und Dialog „Ausschlüsse“ */
.obj-excl {
  margin-bottom: 26px;
}
.obj-excl h3 {
  margin: 0 0 10px;
  font: 400 22px / 1 var(--serif);
}
.ex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.obj-excl .ghost,
.excl .ghost {
  flex: none;
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font: 500 13px var(--sans);
  cursor: pointer;
}
.obj-excl .ghost:hover,
.excl .ghost:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.excl h3 {
  margin-top: 26px;
}
.ex-none {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}
.ex-list,
.ex-streams {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ex-rule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 9px 12px;
}
.ex-rule > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.ex-rule b {
  font: 500 14px var(--sans);
  overflow-wrap: anywhere;
}
.ex-rule small,
.ex-n small,
.ex-why,
.ex-day small {
  font: 11px var(--mono);
  color: var(--muted);
}
.ex-day {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}
.ex-day label {
  display: grid;
  gap: 5px;
}
.ex-day input {
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 10px;
  font: 14px var(--sans);
  color-scheme: dark;
}
.ex-day input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.ex-day small {
  padding-bottom: 10px;
}
.ex-streams {
  max-height: 340px;
  overflow-y: auto;
  gap: 0;
  border-top: 1px solid var(--line);
}
.ex-stream {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
}
.ex-t {
  font: 12px var(--mono);
  color: var(--muted);
}
.ex-n {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ex-n b {
  font: 500 14px var(--sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ex-stream.off .ex-n b {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: var(--faint);
}
.ex-why {
  padding: 0 6px;
}
.ex-rule .link {
  justify-self: start;
  text-align: left;
}
