@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-1: #0c0d10;
  --bg-2: #111317;
  --bg-3: #171a1f;
  --bg-4: #1d2027;
  --line: #191b21;
  --line-2: #242731;
  --tx: #e8eaf0;
  --tx-2: #8e93a1;
  --tx-3: #5b6070;
  --blue: #5468ff;
  --green: #1fcf8a;
  --red: #f2495c;
  --yellow: #f4b740;
  /* Abgeleitet - folgen jedem Theme von selbst */
  --blue-h: color-mix(in srgb, var(--blue) 86%, #fff);
  --blue-dim: color-mix(in srgb, var(--blue) 15%, transparent);
  --blue-tx: color-mix(in srgb, var(--blue) 58%, var(--tx));
  --green-dim: color-mix(in srgb, var(--green) 13%, transparent);
  --red-dim: color-mix(in srgb, var(--red) 13%, transparent);
  --yellow-dim: color-mix(in srgb, var(--yellow) 13%, transparent);
  --on-blue: #fff;
  --on-green: #03140c;
  --on-red: #fff;
  --focus: color-mix(in srgb, var(--line-2) 55%, var(--tx-3));
  --img-bg: var(--bg-2);
  --gold: #d6ad74;
  --purple: #c28bff;
  --sol: #9b8cff;
  --sh: rgba(0, 0, 0, .6);
  --backdrop: rgba(0, 0, 0, .66);
  --rf: 1;
  --nav-h: 48px;
  --mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, Consolas, monospace;
}

:root[data-hell] {
  color-scheme: light;
  --sh: rgba(20, 26, 40, .16);
  --backdrop: rgba(20, 26, 40, .38);
  --blue-tx: color-mix(in srgb, var(--blue) 82%, var(--tx));
  --gold: #a8742a;
  --purple: #8b4fd6;
  --sol: #6b5cf0;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 500 13px/1.4 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
input:focus, select:focus, textarea:focus, button:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--blue); outline-offset: 1px; }
::selection { background: var(--blue-dim); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: calc(6px * var(--rf)); }
::-webkit-scrollbar-thumb:hover { background: var(--focus); }
::-webkit-scrollbar-track { background: transparent; }
.ic { flex-shrink: 0; display: block; }
[hidden] { display: none !important; }

.up { color: var(--green); }
.down { color: var(--red); }
.warn { color: var(--yellow); }
.t2 { color: var(--tx-2); }
.t3 { color: var(--tx-3); }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: -.01em; }
.empty { color: var(--tx-3); padding: 28px 14px; text-align: center; font-size: 12px; }

/* ------------------------------------------------------------- Nav */
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 30;
}
.logo { display: flex; align-items: center; gap: 8px; margin-right: 14px; font-weight: 700; font-size: 15px; letter-spacing: -.03em; }
.logo svg { width: 22px; height: 22px; }
.logo span { color: var(--tx); }
.logo i { font-style: normal; color: var(--tx-3); font-weight: 600; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: calc(6px * var(--rf));
  color: var(--tx-2);
  font-weight: 600;
  font-size: 13px;
}
.nav-links a:hover { color: var(--tx); }
.nav-links a.on { color: var(--tx); background: var(--bg-3); }
.nav-search { position: relative; flex: 0 1 380px; margin: 0 auto; }
.nav-search .ic { position: absolute; left: 10px; top: 9px; color: var(--tx-3); }
.nav-search input {
  width: 100%;
  height: 32px;
  padding: 0 34px 0 32px;
  border-radius: calc(8px * var(--rf));
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  font-size: 12.5px;
}
.nav-search input::placeholder { color: var(--tx-3); }
.nav-search input:focus { border-color: var(--focus); background: var(--bg-2); }
.nav-search kbd {
  position: absolute; right: 8px; top: 7px;
  font: 600 10.5px var(--mono);
  color: var(--tx-3);
  border: 1px solid var(--line-2);
  border-radius: calc(4px * var(--rf));
  padding: 1px 5px;
}
.results {
  position: absolute; top: 38px; left: 0; right: 0;
  max-height: 440px; overflow: auto;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: calc(10px * var(--rf));
  box-shadow: 0 16px 48px var(--sh);
  padding: 4px;
}
.results a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: calc(7px * var(--rf)); }
.results a:hover, .results a.on { background: var(--bg-3); }
.results .img { width: 26px; height: 26px; border-radius: calc(6px * var(--rf)); object-fit: cover; flex: none; background: var(--bg-3); }
.results .empty { padding: 10px 8px; color: var(--tx-3); }
.results .r-t { font-weight: 700; }
.results .r-n { color: var(--tx-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.results .r-m { margin-left: auto; color: var(--tx-2); font-size: 12px; }
.nav-right { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.nav-btn {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: calc(8px * var(--rf));
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  color: var(--tx);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--bg-3); }
.nav-btn .ic { color: var(--tx-2); }
.nav-btn.square { width: 32px; padding: 0; justify-content: center; }
.nav-btn.locked .ic { color: var(--yellow); }
.nav-btn.open .ic { color: var(--green); }
.sol-price { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-2); font-weight: 600; font-size: 12.5px; padding: 0 6px; }
.sol-price .ic { color: var(--sol); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.dot.half { background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-dim); }

.view { height: calc(100% - var(--nav-h)); overflow: auto; }

/* --------------------------------------------------------- Controls */
.btn {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: calc(7px * var(--rf));
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-4); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; border-radius: calc(6px * var(--rf)); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn.primary:hover { background: var(--blue-h); }
.btn.buy { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn.buy:hover { filter: brightness(1.08); }
.btn.sell { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn.sell:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--tx-2); }
.btn.ghost:hover { color: var(--tx); background: var(--bg-3); }
.btn.danger { color: var(--red); }
.input {
  height: 32px;
  padding: 0 10px;
  border-radius: calc(7px * var(--rf));
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  font-size: 12.5px;
  min-width: 0;
}
.input:focus { border-color: var(--focus); background: var(--bg-2); }
textarea.input { height: auto; padding: 8px 10px; font-family: var(--mono); font-size: 11.5px; resize: vertical; }
select.input { padding-right: 6px; }
.check { accent-color: var(--blue); width: 14px; height: 14px; margin: 0; }
.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: calc(7px * var(--rf)); }
.seg button { height: 24px; padding: 0 8px; border-radius: calc(5px * var(--rf)); color: var(--tx-3); font-weight: 600; font-size: 11.5px; }
.seg button:hover { color: var(--tx); }
.seg button.on { background: var(--bg-4); color: var(--tx); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 5px;
  border-radius: calc(5px * var(--rf));
  border: 1px solid var(--line-2);
  color: var(--tx-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.chip .ic { width: 11px; height: 11px; }
.chip.good { color: var(--green); border-color: color-mix(in srgb, var(--green) 24%, transparent); }
.chip.mid { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 26%, transparent); }
.chip.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 28%, transparent); }
.label { font-size: 10.5px; font-weight: 600; color: var(--tx-3); text-transform: uppercase; letter-spacing: .04em; }

/* ------------------------------------------------------------ Pulse */
.pulse { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.col:last-child { border-right: 0; }
.col-head {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.col-head h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.col-head .paused { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--yellow); font-weight: 600; }
.col-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.qb {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 8px;
  border-radius: calc(7px * var(--rf));
  border: 1px solid var(--line-2);
  background: var(--bg-1);
}
.qb .ic { color: var(--tx-2); }
.qb input { width: 40px; border: 0; background: none; font-weight: 700; font-size: 12px; text-align: right; }
.qb .sol { width: 11px; height: 11px; color: var(--tx-3); margin-right: 2px; }
.ptabs { display: inline-flex; gap: 1px; }
.ptabs button { height: 20px; min-width: 24px; padding: 0 4px; border-radius: calc(4px * var(--rf)); color: var(--tx-3); font-size: 10.5px; font-weight: 700; }
.ptabs button.on { background: var(--blue-dim); color: var(--blue-tx); }
.icon-btn {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border-radius: calc(7px * var(--rf));
  color: var(--tx-2);
  border: 1px solid transparent;
}
.icon-btn:hover { background: var(--bg-3); color: var(--tx); }
.icon-btn.on { color: var(--blue-tx); background: var(--blue-dim); }
.col-body { overflow-y: auto; flex: 1; }

.row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 12px 11px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.row:hover { background: var(--bg-1); }
.row.fresh { animation: fresh .6s ease-out; }
@keyframes fresh { from { background: color-mix(in srgb, var(--blue) 10%, transparent); } to { background: transparent; } }
.ava-col { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ava {
  width: 74px; height: 74px;
  border-radius: calc(9px * var(--rf));
  padding: 2px;
  position: relative;
  background: var(--line-2);
}
.ava .img {
  width: 100%; height: 100%;
  border-radius: calc(7px * var(--rf));
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--img-bg);
  color: var(--tx-3);
  font-weight: 800;
  font-size: 18px;
  border: 2px solid var(--bg);
}
.ava .src {
  position: absolute; right: -4px; bottom: -4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--green);
}
.ava .src.amm { color: var(--blue-tx); }
.ava .src .ic { width: 10px; height: 10px; }
.ca { font: 500 10.5px var(--mono); color: var(--tx-3); white-space: nowrap; cursor: copy; }
.ca:hover { color: var(--tx-2); }
.main { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 1px; }
.l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.tk { font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.nm { color: var(--tx-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cp { color: var(--tx-3); align-self: center; }
.cp:hover { color: var(--tx); }
.l2 { display: flex; align-items: center; gap: 8px; color: var(--tx-2); font-size: 12px; min-width: 0; }
.age { color: var(--green); font-weight: 700; font-size: 12px; min-width: 24px; }
.age.old { color: var(--tx-2); }
.soc { display: inline-flex; align-items: center; gap: 7px; }
.soc a { color: var(--tx-2); display: inline-grid; place-items: center; }
.soc a:hover { color: var(--tx); }
.meta { display: inline-flex; align-items: center; gap: 3px; color: var(--tx-2); font-weight: 600; }
.meta .ic { color: var(--tx-3); }
.l3 { display: flex; gap: 4px; flex-wrap: wrap; }
.right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; min-width: 96px; }
.kv { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.kv .k { font-size: 11px; color: var(--tx-3); font-weight: 600; }
.kv .v { font-size: 13px; font-weight: 700; }
.kv.big .v { font-size: 15px; }
.txbar { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tx-3); font-weight: 600; }
.txbar .bar { width: 38px; height: 3px; border-radius: calc(3px * var(--rf)); background: var(--red); overflow: hidden; }
.txbar .bar i { display: block; height: 100%; background: var(--green); }
.qbtn {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 0 8px;
  border-radius: calc(13px * var(--rf));
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.qbtn:hover { background: var(--blue-h); }
.qbtn:disabled { opacity: .5; }
.qbtn .ic { width: 12px; height: 12px; }
.risk { display: inline-grid; place-items: center; }
.risk.ok { color: var(--green); }
.risk.vorsicht { color: var(--yellow); }
.risk.meiden { color: var(--red); }
.risk.ungeprueft { color: var(--tx-3); }

.pop {
  position: fixed;
  z-index: 60;
  width: 300px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: calc(10px * var(--rf));
  box-shadow: 0 18px 50px var(--sh);
  padding: 12px;
  display: grid;
  gap: 10px;
}
.pop h4 { margin: 0; font-size: 12.5px; }
.pop .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pop label.f { display: grid; gap: 4px; }
.pop .input { height: 30px; }
.tg { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx-2); cursor: pointer; }

/* ------------------------------------------------------------ Token */
.tok { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr); }
.thead {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-x: auto;
}
.tid { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 0; }
.tid .img { width: 40px; height: 40px; border-radius: calc(8px * var(--rf)); object-fit: cover; background: var(--img-bg); display: grid; place-items: center; color: var(--tx-3); font-weight: 800; }
.tid .n1 { display: flex; align-items: center; gap: 7px; }
.tid .n1 b { font-size: 16px; letter-spacing: -.01em; }
.tid .n1 .nm { max-width: 180px; }
.tid .n2 { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12px; color: var(--tx-2); }
.stats { display: flex; gap: 22px; align-items: center; flex-shrink: 0; }
.stat { display: grid; gap: 2px; }
.stat .s-k { font-size: 11px; color: var(--tx-3); font-weight: 600; white-space: nowrap; }
.stat .s-v { font-size: 13px; font-weight: 700; white-space: nowrap; }
.stat.mc .s-v { font-size: 18px; letter-spacing: -.02em; }
.bc { width: 110px; height: 4px; border-radius: calc(4px * var(--rf)); background: var(--bg-4); overflow: hidden; margin-top: 3px; }
.bc i { display: block; height: 100%; background: var(--green); border-radius: calc(4px * var(--rf)); }
.tleft { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--line); }
.chart-wrap { flex: 1 1 62%; min-height: 300px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.cbar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cbar .tfs { display: flex; gap: 1px; }
.cbar .tfs button { height: 26px; padding: 0 7px; border-radius: calc(5px * var(--rf)); color: var(--tx-3); font-weight: 600; font-size: 12px; }
.cbar .tfs button:hover { color: var(--tx); }
.cbar .tfs button.on { color: var(--tx); background: var(--bg-3); }
.cbar .sep { width: 1px; height: 16px; background: var(--line-2); }
.cbar .src { margin-left: auto; font-size: 11.5px; color: var(--tx-3); }
.chart { flex: 1; min-height: 0; position: relative; }
.legend {
  position: absolute; left: 12px; top: 8px; z-index: 3;
  display: flex; gap: 10px; align-items: baseline;
  font-size: 12px; font-weight: 600; pointer-events: none;
  color: var(--tx-2);
}
.legend b { color: var(--tx); font-weight: 700; }
.legend .o { display: flex; gap: 8px; }
.legend .o span i { font-style: normal; color: var(--tx-3); margin-right: 3px; }
.legend .hist { color: var(--tx-3); font-weight: 500; }
.legend > span { white-space: nowrap; }
.tabs { height: 38px; display: flex; align-items: center; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.tabs button { height: 38px; padding: 0 10px; color: var(--tx-3); font-weight: 600; font-size: 12.5px; border-bottom: 2px solid transparent; }
.tabs button:hover { color: var(--tx); }
.tabs button.on { color: var(--tx); border-bottom-color: var(--tx); }
.tabs .n { color: var(--tx-3); font-size: 11px; margin-left: 4px; }
.lower { flex: 1 1 38%; min-height: 200px; display: flex; flex-direction: column; }
.lower .body { flex: 1; overflow: auto; min-height: 0; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--tx-3);
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 6px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; height: 30px; }
.tbl tr:hover td { background: var(--bg-1); }
.tbl .r { text-align: right; }
.tbl tr.new td { animation: fresh .9s ease-out; }
.tbl .addr { font: 500 11.5px var(--mono); color: var(--tx-2); }
.tbl .addr:hover { color: var(--tx); }
.tbl .ext { color: var(--tx-3); display: inline-grid; }
.tbl .ext:hover { color: var(--tx); }
.lbl {
  display: inline-block;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: calc(3px * var(--rf));
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  vertical-align: 1px;
  background: var(--bg-4);
  color: var(--tx-2);
}
.lbl.dev { background: var(--yellow-dim); color: var(--yellow); }
.lbl.you { background: var(--blue-dim); color: var(--blue-tx); }
.lbl.trk { background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); }
.lbl.bundle { background: var(--red-dim); color: var(--red); }
.lbl.sniper { background: color-mix(in srgb, var(--purple) 15%, transparent); color: var(--purple); }
.hbar { width: 90px; height: 3px; border-radius: calc(3px * var(--rf)); background: var(--bg-4); overflow: hidden; display: inline-block; vertical-align: middle; }
.hbar i { display: block; height: 100%; background: var(--tx-2); }

.side { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.sect { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sect-h { display: flex; align-items: center; gap: 8px; }
.sect-h h3 { margin: 0; font-size: 12.5px; font-weight: 700; }
.sect-h .act { margin-left: auto; }
.bs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; gap: 3px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: calc(9px * var(--rf)); }
.bs button { height: 32px; border-radius: calc(6px * var(--rf)); font-weight: 700; color: var(--tx-3); }
.bs button.on.b { background: var(--green-dim); color: var(--green); }
.bs button.on.s { background: var(--red-dim); color: var(--red); }
.pr { display: flex; align-items: center; gap: 6px; }
.pr .seg { flex: 1; }
.pr .seg button { flex: 1; }
.amt { position: relative; }
.amt .input { width: 100%; height: 40px; font-size: 15px; font-weight: 700; padding: 0 44px 0 12px; }
.amt .unit { position: absolute; right: 12px; top: 12px; color: var(--tx-3); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.qa button { height: 28px; border-radius: calc(6px * var(--rf)); border: 1px solid var(--line-2); background: var(--bg-1); font-weight: 700; font-size: 12px; color: var(--tx-2); }
.qa button:hover { color: var(--tx); border-color: var(--focus); }
.cfg { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--tx-2); font-weight: 600; }
.cfg span { display: inline-flex; align-items: center; gap: 4px; }
.cfg .ic { color: var(--tx-3); }
.cfg .pn { color: var(--tx); font-weight: 700; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.cfg .mev.on { color: var(--green); }
.cfg .mev.on .ic { color: var(--green); }
.go { height: 42px; width: 100%; border-radius: calc(9px * var(--rf)); font-weight: 800; font-size: 14px; }
.wl { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tx-3); }
.wl b { color: var(--tx-2); font-weight: 600; }
.pos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: calc(8px * var(--rf)); overflow: hidden; }
.pos > div { background: var(--bg); padding: 8px 6px; text-align: center; display: grid; gap: 3px; }
.pos .k { font-size: 10.5px; color: var(--tx-3); font-weight: 600; }
.pos .v { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile { border: 1px solid var(--line-2); border-radius: calc(8px * var(--rf)); padding: 8px 6px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.tile .v { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.tile .k { font-size: 10.5px; color: var(--tx-3); font-weight: 600; }
.tile.good .v { color: var(--green); }
.tile.mid .v { color: var(--yellow); }
.tile.bad .v { color: var(--red); }
.findings { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--tx-2); }
.findings li { display: flex; gap: 7px; align-items: flex-start; }
.findings li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--tx-3); }
.findings li.b::before { background: var(--red); }
.findings li.w::before { background: var(--yellow); }
.findings li.p::before { background: var(--green); }
.kvl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12px; }
.kvl .k { color: var(--tx-3); }
.kvl .v { text-align: right; font-weight: 600; }
.intel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.intel-grid > div { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.intel-grid h4 { margin: 0; font-size: 12px; color: var(--tx-2); display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------ Pages */
.page { max-width: 1320px; margin: 0 auto; padding: 22px 18px 40px; display: grid; gap: 16px; }
.page-h { display: flex; align-items: flex-end; gap: 12px; }
.page-h h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.page-h .act { margin-left: auto; display: flex; gap: 8px; }
.panel { border: 1px solid var(--line); border-radius: calc(10px * var(--rf)); background: var(--bg); overflow: hidden; }
.panel-h { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.panel-h h3 { margin: 0; font-size: 13px; }
.panel-h .act { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.panel-b { padding: 14px; display: grid; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: calc(10px * var(--rf)); overflow: hidden; }
.kpi { background: var(--bg); padding: 14px 16px; display: grid; gap: 5px; }
.kpi .k { font-size: 11.5px; color: var(--tx-3); font-weight: 600; }
.kpi .v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.kpi .s { font-size: 12px; color: var(--tx-2); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.form { display: grid; gap: 10px; }
.form .row2 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.field { display: grid; gap: 5px; }
.note { font-size: 12px; color: var(--tx-2); }
.coin { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.coin .img { width: 22px; height: 22px; border-radius: calc(6px * var(--rf)); object-fit: cover; background: var(--img-bg); display: inline-grid; place-items: center; color: var(--tx-3); font-size: 9px; }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ps { display: grid; grid-template-columns: 1fr 120px; gap: 7px 10px; align-items: center; font-size: 12px; }
.ps .k { color: var(--tx-2); }
.ps .input { height: 28px; width: 100%; }
.ps h5 { grid-column: 1 / -1; margin: 6px 0 0; font-size: 11px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .05em; }
.status { font-weight: 700; font-size: 11.5px; }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }
.status.run { color: var(--yellow); }

/* ------------------------------------------------------ Modal, Toast */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: var(--backdrop); display: grid; place-items: center; padding: 16px; }
.modal { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: calc(12px * var(--rf)); box-shadow: 0 30px 80px var(--sh); }
.modal.wide { width: min(760px, 100%); }
.modal-h { height: 48px; display: flex; align-items: center; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; font-size: 14px; }
.modal-h .icon-btn { margin-left: auto; }
.modal-b { padding: 16px; display: grid; gap: 12px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.modal canvas { width: 100%; height: auto; border-radius: calc(8px * var(--rf)); display: block; }
.toasts { position: fixed; right: 14px; bottom: 14px; z-index: 120; display: grid; gap: 8px; width: min(360px, calc(100vw - 28px)); }
.toast {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 2px 10px;
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: calc(10px * var(--rf));
  padding: 11px 12px;
  box-shadow: 0 14px 40px var(--sh);
  animation: tin .18s ease-out;
  font-size: 12.5px;
}
.toast .ti { grid-row: span 2; margin-top: 1px; color: var(--tx-2); }
.toast.ok .ti { color: var(--green); }
.toast.err .ti { color: var(--red); }
.toast.warn .ti { color: var(--yellow); }
.toast b { font-weight: 700; }
.toast .ts { color: var(--tx-2); font-size: 12px; }
.toast a { color: var(--blue-tx); font-size: 12px; }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------- Anmeldung */
body.auth-seite .nav { display: none; }
body.auth-seite { overflow: auto; }
body.auth-seite .view { height: auto; min-height: 100%; overflow: visible; }
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background:
    radial-gradient(900px 480px at 50% -10%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 70%),
    radial-gradient(600px 300px at 50% 110%, color-mix(in srgb, var(--blue) 7%, transparent), transparent 70%),
    var(--bg);
}
.auth-box { width: min(400px, 100%); display: grid; gap: 22px; justify-items: center; }
.auth-logo { margin: 0; font-size: 22px; gap: 10px; pointer-events: none; }
.auth-logo svg { width: 34px; height: 34px; }
.auth-karte {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 26px 24px 24px;
  background: color-mix(in srgb, var(--bg-1) 88%, transparent);
  border: 1px solid var(--line-2);
  border-radius: calc(14px * var(--rf));
  box-shadow: 0 30px 80px var(--sh), inset 0 1px 0 color-mix(in srgb, var(--tx) 5%, transparent);
  backdrop-filter: blur(8px);
}
.auth-karte h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.auth-sub { margin: -6px 0 2px; color: var(--tx-2); font-size: 13px; line-height: 1.5; }
.auth-form { display: grid; gap: 12px; }
.auth-karte .input { height: 40px; font-size: 13.5px; padding: 0 12px; width: 100%; }
.auth-karte .label, .auth-label { color: var(--tx-2); font-size: 12px; font-weight: 600; }
.auth-pw { position: relative; }
.auth-pw .input { padding-right: 40px; }
.auth-auge { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; color: var(--tx-3); border-radius: calc(6px * var(--rf)); }
.auth-auge:hover, .auth-auge.on { color: var(--tx); }
.auth-los { height: 42px; width: 100%; font-size: 14px; border-radius: calc(9px * var(--rf)); margin-top: 2px; }
.auth-los.laedt span { opacity: .6; }
.auth-los.laedt::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dreh .7s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.auth-fehler { color: var(--red); background: var(--red-dim); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); padding: 8px 10px; border-radius: calc(8px * var(--rf)); font-size: 12.5px; }
.auth-fuss { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--tx-3); font-size: 12px; }
.auth-link { color: var(--blue-tx); font-size: 12.5px; font-weight: 600; justify-self: start; }
.auth-link:hover { text-decoration: underline; }
.auth-zeile { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auth-hinweis { margin: 0; color: var(--tx-2); font-size: 12px; line-height: 1.5; background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(8px * var(--rf)); padding: 9px 11px; }
.auth-check { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.code-reihe { display: flex; align-items: center; justify-content: center; gap: 8px; }
.code-z {
  width: 46px; height: 54px; text-align: center; font: 700 22px/1 var(--mono);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: calc(9px * var(--rf)); caret-color: var(--blue);
}
.code-z:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.code-z:disabled { opacity: .5; }
.code-strich { width: 8px; height: 2px; background: var(--line-2); border-radius: 2px; }
.wackeln { animation: wackeln .32s ease; }
@keyframes wackeln { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.auth-schritte { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-schritt { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tx-3); font-weight: 600; }
.auth-schritt b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; background: var(--bg-3); border: 1px solid var(--line-2); }
.auth-schritt + .auth-schritt::before { content: ""; width: 14px; height: 1px; background: var(--line-2); margin-right: 2px; }
.auth-schritt.an { color: var(--tx); }
.auth-schritt.an b { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.auth-schritt.fertig b { background: var(--green-dim); border-color: transparent; color: var(--green); }
.auth-staerke { display: grid; gap: 5px; margin-top: -4px; }
.auth-staerke .b { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.auth-staerke i { height: 3px; border-radius: 2px; background: var(--bg-4); }
.auth-staerke i.s1 { background: var(--red); }
.auth-staerke i.s2 { background: var(--yellow); }
.auth-staerke i.s3, .auth-staerke i.s4 { background: var(--green); }
.auth-staerke span { font-size: 11.5px; color: var(--tx-3); }
.auth-qr-box { display: grid; place-items: center; }
.auth-qr { width: 196px; height: 196px; border-radius: calc(10px * var(--rf)); image-rendering: pixelated; display: block; }
.auth-qr.leer { display: grid; place-items: center; text-align: center; padding: 16px; color: var(--tx-3); background: var(--bg-2); font-size: 12px; }
.auth-key { display: grid; gap: 6px; }
.auth-key-z { display: flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(8px * var(--rf)); padding: 6px 6px 6px 10px; }
.auth-key-z code { flex: 1; font: 600 12.5px/1.5 var(--mono); letter-spacing: .02em; word-spacing: -.1em; }
.codes-box { display: grid; gap: 10px; }
.codes { margin: 0; padding: 12px 14px; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(9px * var(--rf)); counter-reset: c; }
.codes li { font: 600 13px/1.4 var(--mono); letter-spacing: .03em; counter-increment: c; }
.codes li::before { content: counter(c) "."; color: var(--tx-3); display: inline-block; width: 24px; font-size: 11px; }
.codes-akt { display: flex; gap: 6px; flex-wrap: wrap; }

/* Konto-Menue in der Kopfleiste */
.nav-btn.nutzer { padding: 0; border-radius: 50%; overflow: hidden; }
.avatar { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--on-blue); background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--blue) 55%, var(--purple))); }
.avatar.gross { width: 34px; height: 34px; border-radius: 50%; font-size: 15px; flex: none; }
.menue { position: fixed; z-index: 90; min-width: 220px; padding: 5px; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: calc(11px * var(--rf)); box-shadow: 0 18px 50px var(--sh); animation: tin .14s ease-out; }
.menue-kopf { display: flex; align-items: center; gap: 10px; padding: 8px 9px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menue-kopf div { display: grid; gap: 1px; }
.menue-kopf .t3 { font-size: 11.5px; }
.menue-e { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: calc(7px * var(--rf)); font-size: 12.5px; font-weight: 600; color: var(--tx); text-align: left; }
.menue-e .ic { color: var(--tx-2); }
.menue-e:hover { background: var(--bg-3); }
.menue-e.rot, .menue-e.rot .ic { color: var(--red); }
.menue-trenner { height: 1px; background: var(--line); margin: 4px 2px; }

/* Konto & Nutzer in den Einstellungen */
.kt-liste { display: grid; gap: 6px; }
.kt-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(9px * var(--rf)); }
.kt-zeile .w { display: grid; gap: 2px; min-width: 0; }
.kt-zeile .w b { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.kt-zeile .w span { color: var(--tx-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.kt-zeile .act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.kt-zeile.aus { opacity: .6; }
.badge { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; background: var(--bg-4); color: var(--tx-2); }
.badge.blau { background: var(--blue-dim); color: var(--blue-tx); }
.badge.gruen { background: var(--green-dim); color: var(--green); }
.badge.rot { background: var(--red-dim); color: var(--red); }
.badge.gelb { background: var(--yellow-dim); color: var(--yellow); }
.kt-link { display: flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: calc(8px * var(--rf)); padding: 6px 6px 6px 10px; }
.kt-link code { flex: 1; font: 600 12px/1.4 var(--mono); word-break: break-all; color: var(--blue-tx); }
.kt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kt-kopf h4 { margin: 0; font-size: 12px; color: var(--tx-3); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 760px) {
  .kt-zeile { grid-template-columns: 1fr; }
  .kt-zeile .act { justify-content: flex-start; }
  .code-z { width: 40px; height: 50px; }
  .auth-karte { padding: 22px 18px 20px; }
}
@media (max-width: 460px) {
  .auth-schritte { flex-wrap: nowrap; }
  .auth-schritt:not(.an) > span { display: none; }
}

/* ------------------------------------------------- Theme-Varianten */
.logo svg { color: var(--blue); }
.logo svg .fg { fill: var(--on-blue); }
.logo svg .fg-s { stroke: var(--on-blue); }
.pulse[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pulse[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
:root[data-dichte="kompakt"] .row { padding: 7px 10px 7px 12px; gap: 10px; grid-template-columns: 56px minmax(0, 1fr) auto; }
:root[data-dichte="kompakt"] .ava { width: 56px; height: 56px; }
:root[data-dichte="kompakt"] .main { gap: 4px; }
:root[data-dichte="kompakt"] .tk { font-size: 14px; }
:root[data-dichte="kompakt"] .tbl td { height: 26px; padding: 4px 10px; }
:root[data-dichte="kompakt"] .tbl th { padding: 5px 10px; }
:root[data-dichte="weit"] .row { padding: 16px 14px 15px 16px; }
:root[data-dichte="weit"] .ava { width: 84px; height: 84px; }
:root[data-dichte="weit"] .tbl td { height: 36px; padding: 8px 14px; }
:root[data-toast="oben-rechts"] .toasts { bottom: auto; top: calc(var(--nav-h) + 10px); }
:root[data-toast="unten-links"] .toasts { right: auto; left: 14px; }
:root[data-toast="oben-links"] .toasts { right: auto; left: 14px; bottom: auto; top: calc(var(--nav-h) + 10px); }

/* ------------------------------------------------------------ Paper */
.modus { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line-2); border-radius: calc(8px * var(--rf)); background: var(--bg-1); }
.modus button { height: 26px; padding: 0 10px; border-radius: calc(6px * var(--rf)); color: var(--tx-3); font-weight: 700; font-size: 12px; }
.modus button:hover { color: var(--tx); }
.modus button.on { background: var(--bg-4); color: var(--tx); }
.modus button.on.paper { background: var(--yellow-dim); color: var(--yellow); }
:root[data-paper] .nav { box-shadow: inset 0 -2px 0 var(--yellow); }
.nav-btn.paper { border-color: color-mix(in srgb, var(--yellow) 45%, transparent); }
.nav-btn.paper .ic { color: var(--yellow); }
.nav-btn .pp, .pbadge { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: var(--yellow); background: var(--yellow-dim); padding: 1px 5px; border-radius: 4px; }
.paperbar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: calc(8px * var(--rf)); background: var(--yellow-dim); border: 1px solid color-mix(in srgb, var(--yellow) 35%, transparent); font-size: 12px; color: var(--tx-2); }
.paperbar b { color: var(--yellow); letter-spacing: .06em; font-size: 11px; }
.paperbar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paperbar button { color: var(--tx-2); font-weight: 600; font-size: 11.5px; }
.paperbar button:hover { color: var(--tx); }
.btn.go.paper { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .13) 0 12px, transparent 12px 24px); }
:root[data-paper] .qbtn { background: var(--yellow); color: #1b1300; }
.seg button.paper.on { color: var(--yellow); background: var(--yellow-dim); }
/* Schachbrett zeigt, wo die Karte transparent ist */
.card-preview { width: 100%; height: auto; display: block; border-radius: calc(10px * var(--rf)); border: 1px solid var(--line); background: repeating-conic-gradient(#15171c 0 25%, #0b0c0f 0 50%) 0 0 / 22px 22px; }
.card-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.card-ctl { display: grid; gap: 4px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.fields label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx-2); cursor: pointer; }
.vorlagen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vorlagen button { height: 34px; border-radius: calc(7px * var(--rf)); border: 1px solid var(--line-2); background: var(--bg-1); font-weight: 600; font-size: 12px; color: var(--tx-2); }
.vorlagen button.on { border-color: var(--blue); color: var(--tx); box-shadow: 0 0 0 1px var(--blue); }
.mini-clr { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx-2); }
.mini-clr input[type="color"] { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-2); border-radius: calc(6px * var(--rf)); background: none; cursor: pointer; }

/* -------------------------------------------- Kartenlabor (karten.html) */
body.lab-seite { overflow: auto; }
.lab .panel-h { height: auto; min-height: 42px; flex-wrap: wrap; padding: 6px 14px; }
.lab .panel-h .act { flex-wrap: wrap; }
.lab-kopf { height: 54px; display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: var(--bg); }
.lab-kopf .logo { margin-right: 6px; }
.lab-kopf b { font-size: 14px; }
.lab-hinweis { font-size: 12px; }
.lab-zurueck { margin-left: auto; }
.lab { max-width: 1560px; margin: 0 auto; padding: 18px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.lab .form { gap: 18px; }
.lab-werte { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px 12px; }
.lab-werte .field .input { width: 100%; }
.lab-werte .input.bad { border-color: var(--red); }
.lab-design-knoepfe { margin-top: 14px; }

/* --------------------------------------------------------- Settings */
.set { max-width: 1220px; margin: 0 auto; padding: 22px 18px 70px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 26px; align-items: start; }
.set-nav { position: sticky; top: 18px; display: grid; gap: 2px; }
.set-nav h1 { margin: 0 0 12px 10px; font-size: 20px; letter-spacing: -.02em; }
.set-nav a { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px; border-radius: calc(7px * var(--rf)); color: var(--tx-2); font-weight: 600; }
.set-nav a .ic { color: var(--tx-3); }
.set-nav a:hover { color: var(--tx); background: var(--bg-2); }
.set-nav a.on { color: var(--tx); background: var(--bg-3); }
.set-nav a.on .ic { color: var(--blue-tx); }
.set-nav .dirty { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.set-main { display: grid; gap: 18px; min-width: 0; }
.sec { scroll-margin-top: 14px; }
.sec .panel-b { gap: 0; }
.sec-h { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 4px; }
.sec-h h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.sec-h p { margin: 3px 0 0; color: var(--tx-3); font-size: 12px; }
.sec-h .act { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sec-b { padding: 8px 18px 16px; display: grid; gap: 14px; }
.sub { font-size: 11px; font-weight: 700; color: var(--tx-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.opt:last-child { border-bottom: 0; }
.opt .t { font-weight: 600; }
.opt .d { color: var(--tx-3); font-size: 12px; margin-top: 2px; }
.opt .ctl { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.opt .ctl .input { width: 120px; }
.opt .ctl select.input { width: auto; max-width: 260px; }
.opts { display: grid; }
.sw { position: relative; width: 34px; height: 20px; flex: none; display: inline-block; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 10px; background: var(--bg-4); border: 1px solid var(--line-2); transition: background .15s, border-color .15s; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--tx-2); transition: transform .15s, background .15s; }
.sw input:checked + i { background: var(--blue); border-color: var(--blue); }
.sw input:checked + i::after { transform: translateX(14px); background: var(--on-blue); }
.sw input:focus-visible + i { outline: 1px solid var(--blue); outline-offset: 2px; }
input[type="range"] { accent-color: var(--blue); width: 140px; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.th { border: 1px solid var(--line-2); border-radius: calc(10px * var(--rf)); overflow: hidden; text-align: left; background: var(--bg-1); position: relative; }
.th:hover { border-color: var(--focus); }
.th.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.th .pv { height: 66px; display: grid; grid-template-columns: 32% 1fr; }
.th .pv .sb { display: grid; align-content: start; gap: 5px; padding: 8px 7px; }
.th .pv .sb i, .th .pv .mn i { display: block; height: 4px; border-radius: 2px; }
.th .pv .mn { display: grid; align-content: start; gap: 6px; padding: 9px 9px; }
.th .pv .mn .r { display: flex; gap: 5px; }
.th .pv .mn .r i { flex: 1; height: 9px; border-radius: 3px; }
.th .nm { padding: 7px 10px 8px; font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.th .nm .t3 { margin-left: auto; font-size: 10.5px; font-weight: 600; }
.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; }
.clr { display: grid; grid-template-columns: 28px minmax(0, 1fr) 86px; gap: 9px; align-items: center; font-size: 12.5px; color: var(--tx-2); }
.clr input[type="color"] { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-2); border-radius: calc(6px * var(--rf)); background: none; cursor: pointer; }
.clr input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.clr input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.clr .input { height: 28px; font-family: var(--mono); font-size: 11.5px; }
.clr .input.bad { border-color: var(--red); }
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 22px; }
.key { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12.5px; color: var(--tx-2); }
.kbd { min-width: 46px; height: 28px; padding: 0 10px; border-radius: calc(6px * var(--rf)); border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--bg-2); font: 700 11.5px var(--mono); color: var(--tx); text-transform: uppercase; }
.kbd:hover { border-color: var(--focus); }
.kbd.wait { border-color: var(--blue); color: var(--blue-tx); text-transform: none; font-family: inherit; font-weight: 600; }
.kbd.leer { color: var(--tx-3); text-transform: none; font-family: inherit; font-weight: 600; }
.pe { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pe .ps { grid-template-columns: 1fr 130px; }
.amts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.amts .input { text-align: center; font-weight: 700; }
.savebar { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; border: 1px solid var(--line-2); border-radius: calc(10px * var(--rf)); background: var(--bg-2); box-shadow: 0 14px 40px var(--sh); }
.savebar .t { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.savebar .t::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.savebar .act { margin-left: auto; display: flex; gap: 8px; }
.code { font-family: var(--mono); font-size: 11px; word-break: break-all; color: var(--tx-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(7px * var(--rf)); padding: 8px 10px; max-height: 110px; overflow: auto; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.checks { display: grid; gap: 8px; }

/* ----------------------------------------------------------- Tracker */
.tk-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tk-tools .input { height: 30px; }
.grp-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.grp-chips button { height: 24px; padding: 0 9px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--tx-2); font-size: 11.5px; font-weight: 600; }
.grp-chips button:hover { color: var(--tx); }
.grp-chips button.on { background: var(--blue-dim); color: var(--blue-tx); border-color: transparent; }
.grp { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; line-height: 16px; background: var(--bg-4); color: var(--tx-2); margin-left: 6px; }
.drop { border: 1px dashed var(--line-2); border-radius: calc(8px * var(--rf)); padding: 12px; text-align: center; color: var(--tx-3); font-size: 12px; cursor: pointer; }
.drop.over { border-color: var(--blue); color: var(--blue-tx); background: var(--blue-dim); }
.preview { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: calc(8px * var(--rf)); }
.counts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--tx-2); }
.counts b { color: var(--tx); }
.tbl .sel { width: 30px; }
.tbl input.inl { height: 26px; width: 100%; min-width: 90px; }
.wtag { display: inline-flex; align-items: center; gap: 4px; }
.tk-grid { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }

/* ----------------------------------------------------------- Mobile */
@media (max-width: 1200px) {
  .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse .col:nth-child(3) { display: none; }
}
@media (max-width: 1050px) {
  body { overflow: auto; }
  .view { height: auto; overflow: visible; }
  .tok { grid-template-columns: 1fr; height: auto; }
  .tleft { border-right: 0; }
  .chart-wrap { flex: none; height: 480px; min-height: 0; }
  .lower { min-height: 420px; }
  .side { border-top: 1px solid var(--line); }
  .ps-grid { grid-template-columns: 1fr; }
  .set { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
  .lab { grid-template-columns: minmax(0, 1fr); }
  .tk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .nav { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 6px; }
  .nav-search { order: 5; flex: 1 1 100%; margin: 0; }
  .nav-links { order: 4; }
  .nav-right { margin-left: auto; }
  .sol-price { display: none; }
  .modus button { padding: 0 7px; }
  .card-grid { grid-template-columns: 1fr; }
  .vorlagen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse { grid-template-columns: 1fr; height: auto; }
  .pulse .col:nth-child(3) { display: flex; }
  .col { border-right: 0; border-bottom: 1px solid var(--line); max-height: 75vh; }
  .row { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .ava { width: 58px; height: 58px; }
  .grid2 { grid-template-columns: 1fr; }
  .chart-wrap { height: 400px; }
  .cbar { overflow-x: auto; scrollbar-width: none; }
  .cbar::-webkit-scrollbar { display: none; }
  .cbar > * { flex-shrink: 0; }
  .cbar .src { display: none; }
  .legend { flex-wrap: wrap; right: 64px; row-gap: 2px; font-size: 11px; }
  .page-h { flex-wrap: wrap; }
  .lab-hinweis { display: none; }
  .lab { padding: 12px; }
  .page-h .act { flex-wrap: wrap; }
  .set { grid-template-columns: 1fr; padding: 14px 12px 60px; gap: 14px; }
  .set-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .set-nav h1 { display: none; }
  .set-nav a { flex-shrink: 0; }
  .pe { grid-template-columns: 1fr; }
  .opt { grid-template-columns: 1fr; gap: 8px; }
  .opt .ctl { justify-content: flex-start; }
}
