/* Eigenes Layout. Farben selbst gewählt, im gelben Ton typischer Lotterie-Seiten,
   ohne fremde Logos, Wortmarken, Icons, Bilder oder Code zu übernehmen. */
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-900-italic-wordmark.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+002E, U+0061, U+0065, U+0068, U+006C, U+006E-0070, U+0072, U+0074, U+007A;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-900-italic-wordmark-v2.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+004C, U+004F, U+0054, U+0069, U+006D;
}
/* Metric-matched fallback so font-display:swap does not shift the wordmark (CLS). */
@font-face {
  font-family: "Archivo Fallback";
  src: url("/fonts/source-sans-3-700-italic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
  size-adjust: 123.655%;
}


/* Eigenes Layout. Farben selbst gewählt, im gelben Ton typischer Lotterie-Seiten,
   ohne fremde Logos, Wortmarken, Icons, Bilder oder Code zu übernehmen. */
:root {
  --yellow: #f5da14;
  --yellow-deep: #c9b00c;
  --ink: #2a353c;
  --on-yellow: #2a353c; /* immer dunkel auf Gelb, auch im Dark Mode */
  --header-ink: #2a353c;
  --muted: #3e4a50;
  --red: #b10e0e;
  --green: #0b6b3c;
  --line: #c5c9cc;
  --ball-ring: #8e9498;
  --bg: #ffffff;
  --card: #fafafa;
  --soft: #f3f4f5;
  --focus: #2a353c;
  --inv-bg: #2a353c;
  --inv-fg: #ffffff;
  --space: 6px;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: 1.0625rem; /* 17px */
  --lh: 1.55;
  --prose: 65ch;
  --wrap: 72rem;
  --radius: 4px;
  --header-h: 56px;
  --shadow: 0 1px 0 rgba(42, 53, 60, 0.12);
}

html[data-theme="dark"] {
  --bg: #171d21;
  --card: #232c32;
  --ink: #e8ecee;
  --muted: #c5cbce;
  --line: #3c484e;
  --soft: #1c2429;
  --ball-ring: #9aa0a4;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  --focus: #e8ecee;
  --inv-bg: #e8ecee;
  --inv-fg: #171d21;
  --on-yellow: #2a353c;
  --header-ink: #2a353c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
html[data-theme="dark"] { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: var(--lh);
  font-size: var(--text);
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; }
.nums, .amount, .stat-value, .ball, td.num, .countdown, table {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}

/* Gelbe Flächen: immer dunkle Schrift (#2a353c), nie Weiß oder --ink aus dem Dark Mode */
.site-head,
.crumbs,
.foot,
.btn-primary,
input[type="submit"],
.preset-row a[aria-current="true"],
.year-nav a[aria-current="page"],
.year-nav a:hover,
.ball.bonus {
  color: var(--on-yellow);
}
.site-head a,
.site-head .wordmark a,
.site-head .nav a,
.crumbs a,
.crumbs span,
.foot a,
.foot p,
.legal-acc > summary {
  color: var(--on-yellow);
}

.site-head :focus-visible,
.crumbs :focus-visible,
.foot :focus-visible,
.legal-acc > summary:focus-visible,
.lang-menu > summary:focus-visible,
.notify-menu > summary:focus-visible,
.nav-menu-toggle:focus-visible {
  outline-color: var(--on-yellow);
  box-shadow: 0 0 0 6px #fff;
}

.skip {
  position: absolute;
  left: var(--space);
  top: -4rem;
  z-index: 100;
  background: #2a353c;
  color: #fff;
  padding: 8px 12px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip:focus, .skip:focus-visible {
  top: var(--space);
  color: #fff;
  background: #2a353c;
  outline: 3px solid #fff;
  box-shadow: 0 0 0 6px var(--yellow);
}

.wrap {
  width: min(100% - 24px, var(--wrap));
  margin-inline: auto;
  min-width: 0;
  max-width: 100%;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--yellow);
  color: var(--on-yellow);
  box-shadow: var(--shadow);
  overflow: visible;
}
.site-head a { text-decoration: none; }
.site-head .wordmark a:hover,
.site-head .nav a:hover,
.site-head .wordmark a:focus-visible,
.site-head .nav a:focus-visible { text-decoration: underline; }

.head-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px 8px;
  min-height: var(--header-h);
  padding-block: 0;
}
.wordmark {
  margin: 0;
  font-family: "Archivo", "Archivo Fallback", "Source Sans 3", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  flex: 0 0 auto;
}
.wordmark a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  white-space: nowrap;
}
/* Elastic Snap on the wordmark (CodePen NPREqWg). Transform/opacity only;
   the link box and typography stay unchanged so the header cannot jump (CLS 0).
   Plays once per browser session (html.lz-wm-play, set from sessionStorage). */
.wordmark .wm-text {
  display: inline-block;
  white-space: nowrap;
  font: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
  line-height: inherit;
  /* Italic glyph overhang is boxed per letter; pull back so the link width
     matches the un-split wordmark (header/nav must not shift vs prod). */
  margin-inline-end: -0.057em;
}
.wordmark .wm-ch {
  display: inline-block;
  color: inherit;
  transform-origin: 50% 80%;
}
@media (prefers-reduced-motion: no-preference) {
  html.lz-wm-play .wordmark .wm-ch {
    animation-name: lz-wm-elastic;
    animation-duration: 0.7s;
    animation-timing-function: ease;
    animation-fill-mode: both;
  }
  html.lz-wm-play .wordmark .wm-ch:nth-child(1) { animation-delay: 0ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(2) { animation-delay: 55ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(3) { animation-delay: 110ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(4) { animation-delay: 165ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(5) { animation-delay: 220ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(6) { animation-delay: 275ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(7) { animation-delay: 330ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(8) { animation-delay: 385ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(9) { animation-delay: 440ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(10) { animation-delay: 495ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(11) { animation-delay: 550ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(12) { animation-delay: 605ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(13) { animation-delay: 660ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(14) { animation-delay: 715ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(15) { animation-delay: 770ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(16) { animation-delay: 825ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(17) { animation-delay: 880ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(18) { animation-delay: 935ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(19) { animation-delay: 990ms; }
  html.lz-wm-play .wordmark .wm-ch:nth-child(20) { animation-delay: 1045ms; }
  html[data-lz-handoff="1"] .wordmark .wm-ch {
    animation-name: none;
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark .wm-ch {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
@keyframes lz-wm-elastic {
  0%   { transform: scale(0);    opacity: 0; }
  55%  { transform: scale(1.35); opacity: 1; }
  75%  { transform: scale(0.88); }
  90%  { transform: scale(1.08); }
  100% { transform: scale(1);    opacity: 1; }
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}
.nav-desktop {
  margin-inline-start: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}
.nav-desktop > a,
.nav-desktop > .nav-drop {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  color: var(--on-yellow);
  white-space: nowrap;
}
.nav a[aria-current="page"],
.nav a[aria-current="true"] {
  background: var(--on-yellow);
  color: var(--yellow);
  text-decoration: none;
}

/* Theme, Sprache, Mobilmenü: rechts, ohne Trennlinie */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0;
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
}

/* Account control sits immediately right of the bell. position:relative only on .user-menu, never on .header-tools. */
.user-slot {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.user-signin,
.user-drawer-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-yellow);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}
.user-signin:hover,
.user-signin:focus-visible,
.user-menu > summary:hover,
.user-menu > summary:focus-visible,
.user-menu[open] > summary,
.user-drawer-signin:hover,
.user-drawer-signin:focus-visible {
  background: rgba(42, 53, 60, 0.08);
}
.user-signin .icon-user,
.user-drawer-signin .icon-user {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.user-menu {
  margin: 0;
  padding: 0;
  line-height: 0;
  position: relative;
}
.user-menu:not([open]) > .user-panel { display: none; }
.user-menu > summary {
  display: list-item;
  list-style: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  line-height: 0;
  color: var(--on-yellow);
  cursor: pointer;
  border-radius: var(--radius);
  background: transparent;
  border: 0;
}
.user-menu > summary::-webkit-details-marker,
.user-menu > summary::marker {
  display: none;
  content: none;
  width: 0;
  height: 0;
  font-size: 0;
}
.user-menu > summary .summary-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(42, 53, 60, 0.12);
  color: var(--on-yellow);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.user-panel {
  --user-shift: 0px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  right: auto;
  z-index: 70;
  box-sizing: border-box;
  min-width: 13.75rem;
  width: max-content;
  max-width: min(18rem, calc(100vw - 24px));
  margin: 0;
  padding: 8px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(42, 53, 60, 0.18), 0 1px 3px rgba(42, 53, 60, 0.1);
  transform: translateX(calc(-50% + var(--user-shift)));
  overflow: visible;
  line-height: 1.4;
}
.user-panel::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-bottom-color: var(--card);
  border-top-width: 0;
  transform: translateX(calc(-50% - var(--user-shift)));
  pointer-events: none;
  filter: drop-shadow(0 -1px 0 var(--line));
}
.user-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--line);
  line-height: 1.3;
}
.user-panel-head .user-avatar {
  width: 32px;
  height: 32px;
  background: var(--yellow);
  color: var(--on-yellow);
  flex: 0 0 auto;
}
.user-panel-name {
  font-weight: 700; /* leicht hervorgehoben gegenüber den Einträgen (600) */
  font-size: 1em; /* gleiche Größe wie die übrigen Menüeinträge */
  line-height: inherit;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.user-panel a,
.user-panel button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  min-height: 44px;
}
.user-panel a:hover,
.user-panel a:focus-visible,
.user-panel button:hover,
.user-panel button:focus-visible {
  background: var(--soft);
}

.user-panel form { margin: 0; }
.user-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 12px;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-weight: 600;
  color: inherit;
  border-radius: 10px;
}
.user-panel .user-theme-row:hover,
.user-panel .user-theme-row:focus-within {
  background: var(--soft);
}
.user-theme-label {
  min-width: 0;
  line-height: 1.3;
}
.user-panel .theme-switch,
.user-drawer-in .theme-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--soft);
  color: inherit;
  cursor: pointer;
  display: inline-block;
}
.user-panel .theme-switch:hover,
.user-panel .theme-switch:focus-visible,
.user-drawer-in .theme-switch:hover,
.user-drawer-in .theme-switch:focus-visible {
  background: var(--soft);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.user-panel .theme-switch::after,
.user-drawer-in .theme-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.15s ease;
  pointer-events: none;
}
.user-panel .theme-switch[aria-checked="true"],
.user-drawer-in .theme-switch[aria-checked="true"] {
  background: var(--yellow);
  border-color: var(--on-yellow);
}
.user-panel .theme-switch[aria-checked="true"]::after,
.user-drawer-in .theme-switch[aria-checked="true"]::after {
  transform: translateX(20px);
  background: var(--on-yellow);
}
@media (prefers-reduced-motion: reduce) {
  .user-panel .theme-switch::after,
  .user-drawer-in .theme-switch::after { transition: none; }
}


.user-panel a.user-inbox-link,
.user-drawer-in a.user-inbox-link,
.user-panel a.user-tips-link,
.user-drawer-in a.user-tips-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.user-panel a.user-inbox-link,
.user-panel a.user-tips-link {
  padding: 8px 12px;
  min-height: 44px;
}
.user-inbox-label,
.user-tips-label {
  min-width: 0;
  line-height: 1.3;
}
.user-inbox-count {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
}
.user-inbox-count[hidden] { display: none; }
.user-drawer-in a.user-inbox-link,
.user-drawer-in a.user-tips-link {
  flex: 1 1 100%;
  padding: 0;
  color: var(--on-yellow);
}
.user-drawer-in .user-inbox-count {
  border-color: var(--on-yellow);
  background: rgba(42, 53, 60, 0.12);
  color: var(--on-yellow);
}

.user-panel .user-logout-form,
.user-drawer-in .user-logout-form {
  margin: 0;
  width: 100%;
  flex: 1 1 100%;
}
.user-panel .user-logout-btn,
.user-drawer-in .user-logout-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px;
  min-height: 44px;
  text-align: start;
}
.user-logout-label {
  min-width: 0;
  line-height: 1.3;
}
.user-logout-icon {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
}
.user-logout-icon .icon-logout {
  display: block;
  width: 16px;
  height: 16px;
  color: currentColor;
}
.user-panel .user-logout-btn:hover .user-logout-icon,
.user-panel .user-logout-btn:focus-visible .user-logout-icon {
  background: color-mix(in srgb, var(--red) 14%, var(--soft));
  border-color: color-mix(in srgb, var(--red) 65%, var(--ink));
  color: var(--red);
}
.user-drawer-in .user-logout-btn {
  padding: 0;
  color: var(--on-yellow);
}
.user-drawer-in .user-logout-icon {
  border-color: var(--on-yellow);
  background: rgba(42, 53, 60, 0.12);
  color: var(--on-yellow);
}
.user-drawer-in .user-logout-btn:hover .user-logout-icon,
.user-drawer-in .user-logout-btn:focus-visible .user-logout-icon {
  background: rgba(177, 14, 14, 0.16);
  border-color: var(--red);
  color: var(--red);
}
@media (prefers-reduced-motion: no-preference) {
  .user-logout-icon {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
}

.user-drawer-in .user-theme-row {
  flex: 1 1 100%;
  color: var(--on-yellow);
  padding: 0;
  border-radius: 10px;
}
.user-drawer-in .user-theme-row:hover,
.user-drawer-in .user-theme-row:focus-within {
  background: rgba(42, 53, 60, 0.08);
}
.user-drawer-in .theme-switch {
  border-color: var(--on-yellow);
  background: rgba(42, 53, 60, 0.12);
}
.user-drawer-in .theme-switch::after { background: var(--on-yellow); }
.user-drawer-in .theme-switch[aria-checked="true"] {
  background: #fff;
  border-color: var(--on-yellow);
}
.user-drawer-in .theme-switch[aria-checked="true"]::after {
  background: var(--on-yellow);
}

html[data-theme="dark"] .user-panel {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .user-panel::after {
  border-bottom-color: var(--card);
}
.user-drawer-slot {
  margin: 0 0 6px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(42, 53, 60, 0.18);
}
.user-drawer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 44px;
  color: var(--on-yellow);
}
.user-drawer-in a,
.user-drawer-in button {
  color: var(--on-yellow);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
}
.foot-legal { margin: 0 0 8px; }
.foot-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-legal a:hover,
.foot-legal a:focus-visible { text-decoration-thickness: 2px; }

.auth-page { max-width: 40rem; }
.auth-form, .account-panel { margin: 0 0 1.25rem; }
.auth-age {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}
.auth-age input { margin-top: 0.3em; flex: 0 0 auto; width: 1.1em; height: 1.1em; }
.auth-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin: 16px auto 0;
  width: 100%;
  max-width: 100%;
}
.auth-actions button.btn.btn-auth {
  flex: 1 1 13.75rem;
  width: 13.75rem;
  max-width: 13.75rem;
  align-self: stretch;
}
button.btn.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  height: auto;
  min-width: 0;
  padding: 8px 12px;
  flex-wrap: wrap;
  margin: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.btn-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}
.btn-auth-logo-img { display: block; width: 20px; height: 20px; }
.btn-auth-label { white-space: nowrap; }
button.btn.btn-auth .auth-soon {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}
button.btn.btn-auth-google {
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #747775;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}
button.btn.btn-auth-google:hover,
button.btn.btn-auth-google:focus-visible {
  background: #f8f9fa;
  border-color: #747775;
  color: #1f1f1f;
}
button.btn.btn-auth-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
button.btn.btn-auth-google .auth-soon {
  background: #e8eaed;
  color: #1f1f1f;
}
button.btn.btn-auth-apple {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  box-shadow: none;
}
button.btn.btn-auth-apple:hover,
button.btn.btn-auth-apple:focus-visible {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}
button.btn.btn-auth-apple:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}
button.btn.btn-auth-apple:disabled:hover,
button.btn.btn-auth-apple:disabled:focus-visible {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}
button.btn.btn-auth-apple .auth-soon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
html[data-theme="dark"] button.btn.btn-auth-google {
  background: #131314;
  color: #e3e3e3;
  border-color: #8e918f;
  box-shadow: none;
}
html[data-theme="dark"] button.btn.btn-auth-google:hover,
html[data-theme="dark"] button.btn.btn-auth-google:focus-visible {
  background: #1f1f1f;
  color: #e3e3e3;
  border-color: #8e918f;
}
html[data-theme="dark"] button.btn.btn-auth-google .auth-soon {
  background: #2b2c2d;
  color: #e3e3e3;
}
html[data-theme="dark"] button.btn.btn-auth-apple {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
html[data-theme="dark"] button.btn.btn-auth-apple:hover,
html[data-theme="dark"] button.btn.btn-auth-apple:focus-visible {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: #000000;
}
html[data-theme="dark"] button.btn.btn-auth-apple:disabled:hover,
html[data-theme="dark"] button.btn.btn-auth-apple:disabled:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}
html[data-theme="dark"] button.btn.btn-auth-apple .auth-soon {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}
@media (max-width: 419px) {
  .auth-actions {
    flex-direction: column;
    align-items: center;
  }
  .auth-actions button.btn.btn-auth {
    flex: 0 1 auto;
    width: 100%;
    max-width: 17.5rem; /* max 280px, zentriert */
  }
  button.btn.btn-auth { padding: 8px 12px; gap: 8px; font-size: 0.875rem; }
}

.username-status {
  margin: 6px 0 0;
  min-height: 1.3em;
  font-size: 0.875rem;
  padding: 0;
  background: none;
  border-radius: var(--radius);
}
.username-status.auth-ok,
.username-status.auth-error {
  margin: 8px 0 0;
  padding: 8px 10px;
}
.auth-error, .auth-ok { margin: 0 0 12px; padding: 8px 10px; border-radius: var(--radius); }
.auth-error { background: #fde8e8; color: #7a1f1f; }
.auth-ok { background: #e7f6e7; color: #1a4d1a; }
html[data-theme="dark"] .auth-error { background: #3a1c1c; color: #ffc9c9; }
html[data-theme="dark"] .auth-ok { background: #1c3a1c; color: #c9f0c9; }
.account-facts { display: grid; gap: 8px 16px; margin: 0 0 16px; }
.account-facts div { margin: 0; }
.account-facts dt { font-size: 0.8125rem; opacity: 0.75; }
.account-facts dd { margin: 0; font-weight: 600; }
.account-username label { display: block; font-weight: 700; }
.account-username input[type="text"] {
  display: block;
  width: 100%;
  max-width: 20rem;
  min-height: 44px;
  margin-top: 4px;
  padding: 4px 8px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.account-tabs { margin: 0; }
.account-tabs .tablist-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 29;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin: 0 0 16px;
}
.account-tab-panel[hidden] { display: none; }
.account-tab-panel { display: block; }
.account-consent { margin: 0.25rem 0 1.5rem; }
.account-consent[hidden] { display: none; }
.account-consent h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.account-consent-lead,
.account-consent-status {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.account-consent-status.is-error { color: #7a1f1f; }
html[data-theme="dark"] .account-consent-status.is-error { color: #ffc9c9; }
.account-delete { margin-top: 0.25rem; padding-top: 0; border-top: 0; }
.account-delete h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.account-delete-lead {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.account-delete-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.25rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.account-delete-link:hover,
.account-delete-link:focus-visible {
  color: var(--ink);
}
.account-delete-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}
.btn-danger { color: #7a1f1f; border-color: #c98989; }
.btn-danger:disabled { opacity: 0.55; cursor: not-allowed; }
html[data-theme="dark"] .btn-danger { color: #ffc9c9; border-color: #8a4a4a; }
.legal-draft {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(245, 218, 20, 0.28);
  border-radius: var(--radius);
  font-weight: 600;
}
.legal-page .prose { max-width: 42rem; }
.legal-page .prose h2 { margin: 1.25rem 0 0.5rem; font-size: 1.125rem; }
.legal-page .prose ul { margin: 0 0 1rem; padding-inline-start: 1.2rem; }

.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-yellow);
  cursor: pointer;
}

.notify-menu {
  margin: 0;
  padding: 0;
  line-height: 0;
  position: relative; /* tooltip containing block only — never set this on .header-tools */
}
.notify-menu:not([open]) > .notify-panel { display: none; }
.notify-menu > summary {
  display: list-item;
  list-style: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  line-height: 0;
  color: var(--on-yellow);
  cursor: pointer;
  border-radius: var(--radius);
  background: transparent;
  border: 0;
}
.notify-menu > summary::-webkit-details-marker,
.notify-menu > summary::marker {
  display: none;
  content: none;
  width: 0;
  height: 0;
  font-size: 0;
}
.notify-menu > summary .summary-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.notify-menu > summary .icon-bell {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.notify-menu > summary:hover,
.notify-menu > summary:focus-visible,
.notify-menu[open] > summary {
  background: rgba(42, 53, 60, 0.08);
}
.notify-panel {
  /* Positioned against .notify-menu (not .header-tools) so the mobile drawer
     still uses .site-head as its containing block and stays full width. */
  --notify-shift: 0px;
  position: absolute;
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  z-index: 70;
  box-sizing: border-box;
  width: max-content;
  max-width: min(260px, calc(100vw - 24px));
  margin: 0;
  padding: 10px 12px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(42, 53, 60, 0.18), 0 1px 3px rgba(42, 53, 60, 0.1);
  transform: translateX(var(--notify-shift));
  overflow: visible;
  line-height: 1.4;
}
.notify-panel::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: auto;
  right: 14px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-bottom-color: var(--card);
  border-top-width: 0;
  transform: none;
  pointer-events: none;
  filter: drop-shadow(0 -1px 0 var(--line));
}
.notify-panel .notify-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--ink);
}
.notify-panel p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink);
}
html[data-theme="dark"] .notify-panel {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .notify-panel .notify-title,
html[data-theme="dark"] .notify-panel p {
  color: var(--ink);
}
html[data-theme="dark"] .notify-panel::after {
  border-bottom-color: var(--card);
}
.nav-menu-toggle {
  appearance: none;
  display: list-item;
  list-style: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-yellow);
  cursor: pointer;
  box-sizing: border-box;
  line-height: 0;
}
.nav-menu-toggle .summary-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  line-height: 0;
}
.nav-menu-toggle::-webkit-details-marker,
.nav-menu-toggle::marker {
  display: none;
  content: none;
  width: 0;
  height: 0;
  font-size: 0;
}
.theme-toggle:hover,
.theme-toggle:focus-visible,
.notify-menu > summary:hover,
.notify-menu > summary:focus-visible,
.notify-menu[open] > summary,
.nav-menu-toggle:hover,
.nav-menu-toggle:focus-visible,
.nav-menu[open] > .nav-menu-toggle {
  background: rgba(42, 53, 60, 0.08);
}
.theme-toggle svg,
.nav-menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
html:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-menu-toggle .icon-close { display: none; }
.nav-menu[open] > .nav-menu-toggle .icon-hamburger { display: none; }
.nav-menu[open] > .nav-menu-toggle .icon-close { display: block; }

.lang {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
}
.lang-menu {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.lang-menu > summary {
  display: list-item;
  list-style: none;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 0;
  color: var(--on-yellow);
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.lang-menu > summary::-webkit-details-marker,
.lang-menu > summary::marker {
  display: none;
  content: none;
  width: 0;
  height: 0;
  font-size: 0;
}
/* Inner flex wrapper fills the 44px hit area; never display:flex on summary (Safari). */
.lang-menu > summary .summary-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 6px;
  line-height: 1;
}
.lang-menu > summary .summary-inner::after {
  content: "";
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}
.lang-menu[open] > summary .summary-inner::after {
  transform: rotate(225deg);
  margin: 0;
}
.lang-menu[open] > summary {
  background: rgba(42, 53, 60, 0.08);
  border-color: var(--on-yellow);
}
.lang-code { font-weight: 700; letter-spacing: 0.02em; line-height: 1; }
.flag-svg {
  width: 1.15rem;
  height: 0.75rem;
  max-width: none;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgba(42, 53, 60, 0.45);
  border-radius: 1px;
  background: #fff;
}
.foot-lang .flag-svg,
.foot-lang-menu .flag-svg {
  display: block;
  width: 1.15rem;
  height: 0.75rem;
  max-width: none;
  flex-shrink: 0;
}
.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 70;
  margin: 0;
  padding: 4px;
  list-style: none;
  min-width: 11.5rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(42, 53, 60, 0.2);
}
.lang-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 600;
}
.lang-panel a:hover,
.lang-panel a:focus-visible { background: var(--soft); text-decoration: none; }
.lang-panel a[aria-current="true"] {
  background: var(--yellow);
  color: var(--on-yellow) !important;
}
.lang-panel a:focus-visible {
  outline-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow);
}

/* Lotterien-Dropdown: Hover Desktop; Mobilgruppen standardmäßig zu, außer aktuelle Sektion */
.nav-drop { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; min-width: max-content; white-space: nowrap; }
.nav-drop-link { position: relative; }
.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 44px;
  white-space: nowrap;
  border-radius: var(--radius);
}
.nav-drop-trigger > a.nav-drop-link,
.nav-drop-trigger > button.nav-drop-link {
  padding-inline-end: 2px;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.nav-drop-label { white-space: nowrap; }
.nav-drop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-tips-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--on-yellow);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.nav-tips-count[hidden] { display: none !important; }
.nav-drop-toggle {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0 8px 0 2px;
  font: inherit;
  color: var(--on-yellow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  border-radius: 0 var(--radius) var(--radius) 0;
  flex: 0 0 auto;
}
.nav-drop-toggle:focus { outline: none; }
.nav-desktop .nav-drop-trigger:focus-within {
  outline: 3px solid var(--on-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff;
}
.nav-desktop .nav-drop-trigger:focus-within > .nav-drop-link:focus-visible,
.nav-desktop .nav-drop-trigger:focus-within > .nav-drop-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}
.nav-chevron {
  width: 0.7em;
  height: 0.7em;
  display: block;
  flex: 0 0 auto;
  margin-inline-start: 0.15em;
  transform-origin: center center;
  transition: transform 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .nav-chevron { transition: none; }
}
.nav-desktop .nav-drop:hover .nav-chevron,
.nav-desktop .nav-drop:focus-within .nav-chevron,
.nav-drop.is-open .nav-chevron {
  transform: rotate(180deg);
}
.nav-desktop .nav-drop-trigger:hover {
  background: var(--yellow-soft);
  color: var(--ink);
}
.nav-desktop .nav-drop-trigger:hover > .nav-drop-link,
.nav-desktop .nav-drop-trigger:hover > .nav-drop-toggle {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.nav-desktop .nav-drop-trigger:has(> [aria-current="page"]),
.nav-desktop .nav-drop-trigger:has(> [aria-current="true"]) {
  background: var(--on-yellow);
  color: var(--yellow);
}
.nav-desktop .nav-drop-trigger:has(> [aria-current="page"]) > .nav-drop-link,
.nav-desktop .nav-drop-trigger:has(> [aria-current="true"]) > .nav-drop-link,
.nav-desktop .nav-drop-trigger:has(> [aria-current="page"]) > .nav-drop-toggle,
.nav-desktop .nav-drop-trigger:has(> [aria-current="true"]) > .nav-drop-toggle {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.nav button.nav-drop-link {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  margin: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: var(--radius);
  color: var(--on-yellow);
  white-space: nowrap;
}
.nav-drop-trigger > button.nav-drop-link {
  justify-content: flex-start;
  min-width: 0;
  padding-inline-end: 2px;
}
.nav button.nav-drop-link:hover,
.nav button.nav-drop-link:focus-visible { text-decoration: underline; }
.nav button.nav-drop-link[aria-current="true"],
.nav button.nav-drop-link[aria-current="page"] {
  background: var(--on-yellow);
  color: var(--yellow);
  text-decoration: none;
}
/* Icon + label share a 1.2em text band so icons sit on the same cap-height as neighbouring items. */
.nav-label-inner,
.nav-info-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  height: 1.2em;
  line-height: 1.2;
  white-space: nowrap;
  min-width: max-content;
}
.nav-item-icon,
.nav-info-icon {
  display: block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  margin: 0;
  overflow: visible;
}
.nav-item-label,
.nav-info-label,
.nav-drop-label {
  display: block;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}
.site-head button.nav-drop-link:focus-visible {
  outline: 3px solid var(--on-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff;
}

.nav-drop-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 60;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 100%;
  width: max-content;
  background: var(--yellow);
  color: var(--on-yellow);
  box-shadow: 0 4px 10px rgba(42, 53, 60, 0.18);
}
@media (hover: hover) and (pointer: fine) {
  .nav-desktop .nav-drop:hover > .nav-drop-panel,
  .nav-desktop .nav-drop:focus-within > .nav-drop-panel { display: block; }
html.menus-hover-off .nav-desktop .nav-drop:hover > .nav-drop-panel,
html.menus-hover-off .nav-desktop .nav-drop:focus-within > .nav-drop-panel { display: none; }
}
.nav-desktop .nav-drop.is-open > .nav-drop-panel { display: block; }
@media (hover: none), (pointer: coarse) {
  .nav-desktop .nav-drop.is-open > .nav-drop-panel,
  .nav-desktop .nav-drop:focus-within > .nav-drop-panel { display: block; }
}
.site-head .nav .nav-drop-panel a .nav-label-inner {
  justify-content: flex-start;
}
.site-head .nav .nav-drop-panel a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  min-width: 44px;
  width: 100%;
  padding: 4px 10px;
  font-weight: 600;
  border-radius: 0;
  color: var(--on-yellow) !important;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}
.site-head .nav .nav-drop-panel a:hover,
.site-head .nav .nav-drop-panel a:focus-visible { text-decoration: underline; }
.site-head .nav .nav-drop-panel a[aria-current="page"] {
  background: var(--on-yellow);
  color: var(--yellow) !important;
  text-decoration: none;
}
.site-head .nav .nav-drop-panel a:focus-visible {
  outline-color: var(--on-yellow);
  box-shadow: 0 0 0 6px #fff;
}
.site-head .nav .nav-drop-panel a.nav-lottery-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  padding-block: 6px;
  white-space: nowrap;
}
.nav-lottery-name {
  display: block;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-lottery-jp {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  color: rgba(42, 53, 60, 0.72);
}
.nav-lottery-jp.is-unknown {
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: normal;
}
.nav-drawer a.nav-lottery-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  white-space: normal;
  min-height: 44px;
  padding-block: 6px;
}
html.preview-header-t259 .nav-lottery-jp.is-unknown {
  color: var(--header-fg, #f5da14);
  opacity: 0.88;
}
.site-head .nav .nav-drop-panel a.nav-lottery-link[aria-current="page"] .nav-lottery-jp {
  color: rgba(245, 218, 20, 0.88);
}

/* Mobil: eine kompakte Zeile, Navigation im Hamburger */
.nav-drawer { display: none; }

@media (max-width: 859px) {
  .user-signin-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .user-signin { padding: 0; width: 44px; }
  .nav-desktop { display: none; }
  .wordmark { font-size: 1.25rem; letter-spacing: -0.03em; }
  .head-row { gap: 0 4px; }
  .site-head .lang-code,
  .site-head .lang-menu > summary .summary-inner::after { display: none; }
  .site-head .lang-menu > summary { padding: 0; width: 44px; }
  .nav-menu[open] > .nav-drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--yellow);
    color: var(--on-yellow);
    padding: 6px 12px 10px;
    box-shadow: 0 8px 16px rgba(42, 53, 60, 0.18);
    border-top: 1px solid rgba(42, 53, 60, 0.18);
  }
  .nav-drawer a,
  .nav-drawer button.nav-drop-link {
    justify-content: flex-start;
    width: 100%;
  }
  .nav-drawer .nav-drop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }
  .nav-drawer .nav-drop-trigger {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: stretch;
  }
  .nav-drawer .nav-drop-trigger > a.nav-drop-link,
  .nav-drawer .nav-drop-trigger > button.nav-drop-link {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    padding-inline-end: 8px;
  }
  .nav-drawer .nav-drop-toggle {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 0;
    margin-inline-start: auto;
    color: var(--on-yellow);
  }
  .nav-drawer .nav-drop-toggle:focus-visible {
    outline: 3px solid var(--on-yellow);
    outline-offset: -3px;
    box-shadow: none;
  }
  .nav-drawer button.nav-drop-link .nav-label-inner,
  .nav-drawer button.nav-drop-link .nav-info-inner {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-drawer a .nav-label-inner {
    justify-content: flex-start;
  }
  .nav-drawer button.nav-drop-link .nav-chevron {
    margin-inline-start: auto;
  }
  .nav-drawer .nav-drop-panel {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    padding-inline-start: 12px;
    background: transparent;
  }
  .nav-drawer .nav-drop.is-open > .nav-drop-panel {
    display: block;
  }
}

@media (min-width: 860px) {
  .nav-menu { display: none; }
  .nav-desktop { display: flex; flex-wrap: nowrap; align-items: center; overflow: visible; }
  .head-row { flex-wrap: nowrap; }

  /* Mehr Luft unter dem Header, ohne das Mobile-Layout zu ändern */
  .wrap { width: min(100% - 40px, var(--wrap)); }
  main { padding-block: 28px 36px; }
  .crumbs ol { padding: 6px 0 10px; gap: 0 8px; }
  .intro { margin-bottom: 20px; }
  .intro-row { gap: 8px 20px; margin-bottom: 10px; }
  .intro h1, h1 { margin: 0 0 10px; }
  h2 { margin: 0 0 12px; }
  .board { gap: 20px; }
  .card { padding: 18px 20px; }
  .hub-cards { gap: 20px; }
  .intro-compact { margin: 16px 0 18px; }
  .intro-compact h1 { margin: 0 0 8px; }
  .stand-short { margin: 0 0 14px; }
  .nav-drop-trigger > a.nav-drop-link,
  .nav-drop-trigger > button.nav-drop-link { padding-inline-end: 2px; }
  .insight-tabs a,
  .sort-tabs a,
  .tablist a.tab { padding-inline: 18px; }
  .tablist-wrap { margin: 0 0 20px; }
  .sort-tabs { margin: 0 0 16px; }
  .kpi-row { gap: 14px; margin: 0 0 24px; }
  .kpi-row li { padding: 14px 16px; }
  .insight-notes { margin: 20px 0 32px; }
  .insight-board { gap: 16px; margin: 16px 0 24px; }
}

@media (min-width: 860px) and (max-width: 1180px) {
  .nav a,
  .nav button.nav-drop-link { padding-inline: 7px; }
  .nav-desktop .nav-drop-trigger > a.nav-drop-link,
  .nav-desktop .nav-drop-trigger > button.nav-drop-link { padding-inline-end: 2px; }
  .nav-drop-toggle { padding: 0 6px 0 0; min-width: 28px; }
  .wordmark { font-size: 1.125rem; }
}

@media (max-width: 379px) {
  .wordmark { font-size: 1.1875rem; letter-spacing: -0.04em; }
  .wordmark a { padding-inline: 2px; }
  .head-row { gap: 0 2px; }
}

.crumbs {
  background: var(--yellow);
  color: var(--on-yellow);
  border-top: 1px solid rgba(42, 53, 60, 0.18);
  padding-block: 0;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 2px 0 4px;
  font-size: 0.95rem;
}
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs a, .crumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 4px;
  color: var(--on-yellow);
}
.crumbs li + li::before {
  content: "/";
  color: var(--on-yellow);
  opacity: 0.7;
}

main { flex: 1; padding-block: 16px 24px; }

.intro { max-width: var(--prose); margin-bottom: 12px; }
.intro-home { max-width: none; }
.intro-home .intro-row h1 { flex: 1 1 22rem; }
.intro-home .intro-row .stand { flex: 0 0 auto; }
.intro-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 4px;
}
.intro h1, h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 1.6vw + 1rem, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.intro-row h1 { margin: 0; }
h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}
h3 { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.3; }
.lead { margin: 0 0 6px; }
.stand, .meta, .muted, .hint { color: var(--muted); margin: 0; }
.hint { font-size: 1rem; margin: 0 0 8px; }

.board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 800px) {
  .board.two { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; }
.card-kicker {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.jackpot-label { margin: 0; color: var(--muted); font-size: 0.95rem; }
.jackpot {
  margin: 0 0 2px;
  font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.jackpot.is-unknown { font-size: 1.25rem; color: var(--muted); font-weight: 600; }
.jp-odds {
  display: block;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
}
.jp-odds-legend { margin: 0 0 0.6rem; }
.jp-odds-th {
  display: block;
  margin: 0.15rem 0 0;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}
.countdown { margin: 0 0 8px; font-weight: 600; font-size: 1rem; }
.flag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}
.flag-yes { background: #e7f4ec; color: var(--green); }
.flag-no { background: #f8e8e8; color: var(--red); }
.flag-pending { background: #ececec; color: #2a353c; }
html[data-theme="dark"] {
  .flag-yes { background: #163326; color: #8ed9b0; }
  .flag-no { background: #3a1818; color: #f0a8a8; }
  .flag-pending { background: #2a353c; color: #e8e8e8; }
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}
.ball {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #2a353c;
  border: 3px solid var(--ball-ring);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.ball.bonus {
  border-color: #2a353c;
  background: var(--yellow);
  color: #2a353c;
}
.addon { margin: 0 0 4px; font-size: 1rem; }
.addon span { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Unified table system: content-sized, aligned headers, compact, readable */
.quotes,
.data-table,
.odds-table,
.lotto-table,
.lotto-facts,
.apps-table,
.rank-table,
.tips-table,
.cookies-table,
.stakes-table,
.lz-win-table {
  display: inline-table;
  width: auto;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quotes { margin-top: 4px; }
.table-scroll > table,
.table-wrap > table,
.lz-win-table-wrap > table {
  display: inline-table;
  width: auto;
  max-width: none;
}
.quotes th, .quotes td,
.data-table th, .data-table td,
.odds-table th, .odds-table td,
.lotto-table th, .lotto-table td,
.lotto-facts th, .lotto-facts td,
.apps-table th, .apps-table td,
.rank-table th, .rank-table td,
.tips-table th, .tips-table td,
.cookies-table th, .cookies-table td,
.stakes-table th, .stakes-table td {
  text-align: start;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: inherit;
  background: var(--card);
}
.quotes thead th, .data-table thead th,
.odds-table thead th, .lotto-table thead th,
.apps-table thead th, .rank-table thead th,
.tips-table thead th, .cookies-table thead th,
.stakes-table thead th,
.quotes th, .data-table th, .odds-table th,
.apps-table th, .rank-table th, .tips-table th,
.cookies-table th, .stakes-table th, .lotto-table thead th {
  font-weight: 700;
  background: var(--soft);
  border-bottom-color: var(--line);
}
.quotes tbody tr:nth-child(even) th,
.quotes tbody tr:nth-child(even) td,
.data-table tbody tr:nth-child(even) th,
.data-table tbody tr:nth-child(even) td,
.odds-table tbody tr:nth-child(even) th,
.odds-table tbody tr:nth-child(even) td,
.lotto-table tbody tr:nth-child(even) th,
.lotto-table tbody tr:nth-child(even) td,
.lotto-facts tbody tr:nth-child(even) th,
.lotto-facts tbody tr:nth-child(even) td,
.apps-table tbody tr:nth-child(even) th,
.apps-table tbody tr:nth-child(even) td,
.rank-table tbody tr:nth-child(even) th,
.rank-table tbody tr:nth-child(even) td,
.tips-table tbody tr:nth-child(even) th,
.tips-table tbody tr:nth-child(even) td,
.cookies-table tbody tr:nth-child(even) th,
.cookies-table tbody tr:nth-child(even) td,
.stakes-table tbody tr:nth-child(even) th,
.stakes-table tbody tr:nth-child(even) td {
  background: var(--soft);
}
.quotes tbody tr:last-child th, .quotes tbody tr:last-child td,
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td,
.odds-table tbody tr:last-child th, .odds-table tbody tr:last-child td,
.lotto-table tbody tr:last-child th, .lotto-table tbody tr:last-child td,
.lotto-facts tbody tr:last-child th, .lotto-facts tbody tr:last-child td,
.apps-table tbody tr:last-child th, .apps-table tbody tr:last-child td,
.rank-table tbody tr:last-child th, .rank-table tbody tr:last-child td,
.tips-table tbody tr:last-child th, .tips-table tbody tr:last-child td,
.cookies-table tbody tr:last-child th, .cookies-table tbody tr:last-child td,
.stakes-table tbody tr:last-child th, .stakes-table tbody tr:last-child td {
  border-bottom: 0;
}
.quotes td.num, .quotes th.num, .quotes td.amount, .quotes th.amount,
.data-table td.num, .data-table th.num, .data-table td.amount, .data-table th.amount,
.odds-table td.num, .odds-table th.num, .odds-table td.amount, .odds-table th.amount,
.lotto-table td.num, .lotto-table th.num, .lotto-table td.amount, .lotto-table th.amount,
.apps-table td.num, .apps-table th.num, .rank-table td.num, .rank-table th.num,
.stakes-table td.amount, .stakes-table th.amount,
.tips-table th:not(:first-child), .tips-table td:not(:first-child),
.quotes td.date, .quotes th.date, .data-table td.date, .data-table th.date,
.lotto-table td.date, .lotto-table th.date, .stakes-table td.date, .stakes-table th.date,
.lz-win-table td.amount, .lz-win-table th.amount, .lz-win-table td.num, .lz-win-table th.num,
.lz-win-table td.date, .lz-win-table th.date {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.jp-amt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}
.jp-main, .jp-fx {
  display: block;
  white-space: nowrap;
}
.quotes td.origin, .quotes th.origin { text-align: start; overflow-wrap: anywhere; }

.data-table caption, .chart-caption, .lz-win-table caption {
  text-align: start;
  font-weight: 700;
  margin-bottom: 6px;
  caption-side: top;
  background: transparent;
  border: 0;
  padding: 0 0 6px;
}

.status, .empty, .error-box {
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.error-box { border-color: var(--red); }
.status[hidden], [hidden] { display: none !important; }

/* Zeitraumwahl: eine kompakte Zeile */
.filters {
  display: block;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.filters fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.filters legend, .filters .sr-legend {
  font-weight: 700;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  float: none;
  width: auto;
}
.preset-row, .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.preset-row a, .btn, button, input[type="submit"], input[type="date"], select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--soft);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.preset-row a[aria-current="true"], .btn-primary, input[type="submit"] {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--on-yellow);
}
.preset-row a:hover, .btn:hover { border-color: var(--ink); }
label { font-weight: 600; }
.field { display: flex; align-items: center; gap: 6px; }
.field input, .field select { min-width: 9.5rem; }
.filter-row.custom-inline label { font-size: 0.95rem; }

.chart-panel { margin: 0 0 16px; }
.chart-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 6px 6px;
  overflow-x: auto;
}
.chart-svg { display: block; width: 100%; height: auto; min-height: 200px; }
.chart-svg .axis, .chart-svg .grid { stroke: var(--line); fill: none; }
.chart-svg .axis-label { fill: var(--muted); font-size: 12px; font-family: var(--font); font-weight: 600; }
.chart-svg .line { fill: none; stroke: #2a353c; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .dot { fill: #2a353c; }
.chart-svg .bar { fill: #2a353c; }
.chart-svg .bar:hover, .chart-svg .dot:hover, .chart-svg .hit:focus { fill: var(--yellow-deep); }
.chart-svg .hit { fill: transparent; stroke: none; }
html[data-theme="dark"] {
  .chart-svg .line, .chart-svg .dot, .chart-svg .bar { stroke: #e8ecee; fill: #e8ecee; }
  .chart-svg .line { fill: none; }
  .chart-svg .axis-label { fill: #c5cbce; }
}
.chart-note, .coverage { margin: 6px 0 10px; color: var(--muted); max-width: var(--prose); }
.tooltip {
  position: absolute;
  z-index: 30;
  background: #2a353c;
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  max-width: 16rem;
}
.chart-tooltip {
  z-index: 85;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(42, 53, 60, 0.18);
  padding: 8px 10px;
  max-width: min(22rem, calc(100vw - 16px));
  font-size: 0.9375rem;
  line-height: 1.35;
}
html[data-theme="dark"] .chart-tooltip {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.chart-tooltip-title {
  font-weight: 700;
  margin: 0 0 6px;
}
.chart-tooltip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.chart-tooltip-row {
  display: grid;
  grid-template-columns: 0.7em 1fr auto;
  gap: 8px;
  align-items: start;
}
.chart-tooltip-swatch {
  width: 0.7em;
  height: 0.7em;
  margin-top: 0.28em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1px var(--card);
  flex: 0 0 auto;
}
.chart-tooltip-swatch.chart-day-b,
.chart-tooltip-swatch.chart-jp {
  border-radius: 1px;
}
.chart-tooltip-swatch.chart-s0 { background: #0b6b3c; }
.chart-tooltip-swatch.chart-s1 { background: #1d4f91; }
.chart-tooltip-swatch.chart-s2 { background: #b10e0e; }
.chart-tooltip-swatch.chart-s3 { background: #7a3e00; }
.chart-tooltip-swatch.chart-s4 { background: #5b2a8c; }
.chart-tooltip-swatch.chart-s5 { background: #0a5a6a; }
.chart-tooltip-swatch.chart-s6 { background: #2a353c; }
.chart-tooltip-swatch.chart-s7 { background: #3e4a50; }
.chart-tooltip-swatch.chart-jp { background: #2a353c; }
html[data-theme="dark"] .chart-tooltip-swatch.chart-s0 { background: #7dcea0; }
html[data-theme="dark"] .chart-tooltip-swatch.chart-s1 { background: #8ab4f8; }
html[data-theme="dark"] .chart-tooltip-swatch.chart-s2 { background: #f5a3a3; }
html[data-theme="dark"] .chart-tooltip-swatch.chart-s3 { background: #f0c674; }
html[data-theme="dark"] .chart-tooltip-swatch.chart-s4 { background: #d4b0f5; }
html[data-theme="dark"] .chart-tooltip-swatch.chart-s5 { background: #7fd4e0; }
html[data-theme="dark"] .chart-tooltip-swatch.chart-s6 { background: #e8ecee; }
html[data-theme="dark"] .chart-tooltip-swatch.chart-s7 { background: #c5cbce; }
html[data-theme="dark"] .chart-tooltip-swatch.chart-jp { background: #e8ecee; }
.chart-tooltip-swatch.chart-s0.chart-day-a,
html[data-theme="dark"] .chart-tooltip-swatch.chart-s0.chart-day-a { background: var(--stakes-stake-a, #0b7a4b); }
.chart-tooltip-swatch.chart-s1.chart-day-a,
html[data-theme="dark"] .chart-tooltip-swatch.chart-s1.chart-day-a { background: var(--stakes-jackpot-a, #005a9e); }
.chart-tooltip-swatch.chart-s0.chart-day-b,
html[data-theme="dark"] .chart-tooltip-swatch.chart-s0.chart-day-b { background: var(--stakes-stake-b, #c44e00); }
.chart-tooltip-swatch.chart-s1.chart-day-b,
html[data-theme="dark"] .chart-tooltip-swatch.chart-s1.chart-day-b { background: var(--stakes-jackpot-b, #9a2e7a); }
.chart-tooltip-label { min-width: 0; }
.chart-tooltip-value { font-variant-numeric: tabular-nums; font-weight: 700; text-align: end; white-space: nowrap; }
.chart-tooltip-odds {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
.jp-odds-cell,
.jp-odds-draw {
  display: block;
  margin: 0.1rem 0 0;
  font-weight: 600;
  white-space: nowrap;
}
.amount .jp-odds-cell { font-weight: 600; }
.chart-svg .chart-crosshair {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.45;
  pointer-events: none;
}
.chart-svg .chart-col-hit {
  fill: transparent;
  stroke: none;
  cursor: crosshair;
}
.chart-svg .chart-col-hit:focus,
.chart-svg .chart-col-hit:focus-visible,
.chart-svg.chart-multi .hit:focus,
.chart-svg.chart-multi .hit:focus-visible {
  fill: rgba(42, 53, 60, 0.07);
  outline: none;
}
html[data-theme="dark"] .chart-svg .chart-col-hit:focus,
html[data-theme="dark"] .chart-svg .chart-col-hit:focus-visible,
html[data-theme="dark"] .chart-svg.chart-multi .hit:focus,
html[data-theme="dark"] .chart-svg.chart-multi .hit:focus-visible {
  fill: rgba(232, 236, 238, 0.1);
}
.chart-svg .dot.is-active {
  stroke: var(--ink);
  stroke-width: 1.75;
}
.table-alt { margin-top: 8px; }
.table-scroll, .table-wrap, .lz-win-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.freq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.freq-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  font-size: 0.9rem;
}
.freq-grid .n { font-weight: 700; }

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}
.year-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.year-nav a[aria-current="page"], .year-nav a:hover {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--on-yellow);
}

/* Gemeinsame Akkordeons: native details/summary, Pfeil, Fokus, crawlbar */
.acc,
.faq details,
.draws-year,
.draws-month,
.legal-acc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin: 0 0 8px;
  padding: 0;
  color: var(--ink);
}
.acc > summary,
.faq details > summary,
.draws-year > summary,
.draws-month > summary,
.legal-acc > summary,
.app-details > summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: list-item;
  list-style: none;
  padding: 6px 10px;
  border-radius: var(--radius);
}
.acc > summary .summary-inner,
.faq details > summary .summary-inner,
.draws-year > summary .summary-inner,
.draws-month > summary .summary-inner,
.legal-acc > summary .summary-inner,
.app-details > summary .summary-inner,
.acc-region > summary .summary-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  min-width: 0;
  vertical-align: middle;
}
/* Stretch the inner row so the count badge sits on the right without overlapping
   the month/title or the chevron. Flex is on the inner span, never on summary (Safari). */
.draws-month > summary .summary-inner,
.draws-year > summary .summary-inner,
.acc > summary .summary-inner,
.acc-region > summary .summary-inner {
  width: calc(100% - 1.35rem);
  max-width: calc(100% - 1.35rem);
}
.summary-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.acc > summary::-webkit-details-marker,
.faq details > summary::-webkit-details-marker,
.draws-year > summary::-webkit-details-marker,
.draws-month > summary::-webkit-details-marker,
.legal-acc > summary::-webkit-details-marker,
.acc-region > summary::-webkit-details-marker { display: none; }
.acc > summary::before,
.faq details > summary::before,
.draws-year > summary::before,
.draws-month > summary::before,
.legal-acc > summary::before,
.acc-region > summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 8px;
  flex-shrink: 0;
}
.acc[open] > summary::before,
.faq details[open] > summary::before,
.draws-year[open] > summary::before,
.draws-month[open] > summary::before,
.legal-acc[open] > summary::before,
.acc-region[open] > summary::before {
  transform: rotate(45deg);
  margin-top: -2px;
}
.acc > summary:focus-visible,
.faq details > summary:focus-visible,
.draws-year > summary:focus-visible,
.draws-month > summary:focus-visible,
.legal-acc > summary:focus-visible,
.acc-region > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}
.acc-body, .acc > :not(summary), .faq details p,
.draws-year > :not(summary), .draws-month > :not(summary),
.legal-acc > :not(summary) {
  padding: 0 12px 12px;
}
.acc-count, .summary-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
  padding: 2px 8px;
  min-height: 1.5rem;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.acc-quotes { margin: 8px 0 0; }
.acc-lead { margin: 8px 0 0; max-width: var(--prose); }

.wrap.page-notes {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.page-notes .acc-foot,
.acc-foot.about-page {
  margin: 0 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: var(--prose);
  border-radius: 0;
}
.acc-foot > summary {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 40px;
  padding: 6px 0;
}
.acc-foot > summary .summary-inner {
  min-height: 0;
}
.acc-foot > :not(summary) {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.page-notes p {
  margin: 0 0 8px;
  font-size: inherit;
  color: inherit;
}
.page-notes p:last-child { margin-bottom: 0; }
.legal-note,
.gen-protect {
  max-width: none;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.legal-note a,
.gen-protect a {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq { max-width: var(--prose); margin: 16px auto 0; }
.faq h2 { margin-bottom: 8px; }
.faq details { margin: 0 0 4px; }
.faq details p { margin: 0; }

.hub-cards { display: grid; gap: 12px; }
@media (min-width: 800px) { .hub-cards { grid-template-columns: 1fr 1fr; } }

.draw-groups { margin: 0 0 12px; }
.draws-year { margin: 0 0 6px; }
.draws-month { margin: 0 0 6px; border-color: var(--line); }
.draws-month .draw-list { margin: 0; padding: 0 4px 8px; }

.balls-sm { gap: 4px; margin: 0; }
.balls-sm .ball {
  width: 28px;
  height: 28px;
  border-width: 2px;
  font-size: 0.8rem;
}

.draw-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.draw-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
}
.draw-row:last-child { border-bottom: 0; }
.draw-date {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  line-height: 1.25;
}
.draw-jp {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: normal;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}
.draw-extra {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.draw-row .draw-quotes {
  grid-column: 1 / -1;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.draw-row .draw-quotes > summary {
  min-height: 36px;
  padding: 2px 0;
  font-size: 0.95rem;
  background: transparent;
}
.draw-row .draw-quotes > :not(summary) { padding: 0 0 8px; }

@media (max-width: 700px) {
  .draw-row {
    grid-template-columns: 1fr auto;
  }
  .draw-row .balls { grid-column: 1 / -1; }
  .draw-date { grid-column: 1; }
  .draw-jp { grid-column: 2; }
}

.draw-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.draw-filter label { font-size: 0.95rem; }
.draw-filter input[type="search"] {
  min-width: 12rem;
  flex: 1 1 12rem;
  max-width: 22rem;
  min-height: 44px;
}
.draw-row[hidden], .draws-month[hidden], [data-filter-empty][hidden] { display: none !important; }
.year-latest-link { margin: 8px 0 12px; }

.foot {
  background: var(--yellow);
  color: var(--on-yellow);
  padding: 20px 0 4.75rem;
  margin-top: auto;
}
.foot-top {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 32px;
  margin: 0 0 20px;
  align-items: start;
}
.foot-col {
  margin: 0;
  min-width: 0;
}
.foot-col-title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  text-align: start;
}
.foot-col-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-align: start;
  cursor: default;
}
.foot-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.foot-col-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-weight: 600;
  font-size: 0.875rem;
}
@media (max-width: 859px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 0 16px;
  }
  .foot-col {
    border-bottom: 1px solid rgba(42, 53, 60, 0.18);
  }
  .foot-col-title { margin: 0; }
  .foot-col-toggle {
    min-height: 44px;
    cursor: pointer;
    justify-content: space-between;
  }
  .foot-col-toggle::after {
    content: "";
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    margin-inline-start: 8px;
    background: currentColor;
    opacity: 0.8;
    clip-path: polygon(50% 75%, 0 25%, 100% 25%);
  }
  .foot-col.is-open > .foot-col-title > .foot-col-toggle::after {
    clip-path: polygon(50% 25%, 0 75%, 100% 75%);
  }
  html.js .foot-col:not(.is-open) > .foot-col-links { display: none; }
  .foot-col.is-open > .foot-col-links,
  .foot-col-links {
    padding: 0 0 8px;
  }
  .foot-col-links a { min-height: 44px; }
}
@media (min-width: 860px) {
  .foot-col-toggle {
    pointer-events: none;
    cursor: default;
  }
  .foot-col-toggle::after { display: none !important; content: none; }
  .foot-col > .foot-col-links,
  html.js .foot-col:not(.is-open) > .foot-col-links,
  html.js .foot-col.is-open > .foot-col-links {
    display: block !important;
    padding: 0;
  }
}
.foot a { color: var(--on-yellow); font-weight: 600; }
.foot p { margin: 0 0 8px; max-width: 75ch; }
.foot p:last-child { margin-bottom: 0; }
.foot-short { margin: 0 0 8px; font-weight: 600; }
.foot,
.foot .wrap,
.foot-nav,
.foot-top,
.foot-grid,
.foot-legal-row {
  overflow: visible;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--on-yellow);
  max-width: none;
}
.foot-nav .foot-lang,
.foot-nav .foot-legal {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  opacity: 1;
  color: inherit;
}
.foot-nav .foot-lang {
  line-height: 0;
  flex: 0 0 auto;
}
.foot-lang-menu .lang-panel {
  top: auto;
  bottom: calc(100% + 4px);
  right: auto;
  left: 0;
}
.foot-lang .lang-panel a,
.foot-lang .lang-panel a:hover,
.foot-lang .lang-panel a:focus-visible,
.foot-lang .lang-panel a[aria-current="true"] {
  text-decoration: none;
  font-weight: 600;
}
.foot-nav-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.foot-nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot-nav-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding-inline: 10px;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  opacity: 1;
}
.foot-nav-gap {
  padding-inline: 16px;
}
@media (max-width: 859px) {
  .foot-nav-gap { padding-inline: 12px; }
}
.foot-lang a,
.foot-nav a {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-lang a:hover,
.foot-lang a:focus-visible,
.foot-nav a:hover,
.foot-nav a:focus-visible { text-decoration-thickness: 2px; }
.foot-lang a[aria-current="true"] {
  text-decoration: none;
  font-weight: inherit;
}
.foot p.foot-legal-line {
  margin: 0 0 8px;
  max-width: none;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--on-yellow);
}
.foot-legal-row {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  max-width: none;
  box-sizing: border-box;
}
.foot-legal-row .foot-legal-line {
  margin: 0;
  width: 100%;
  max-width: none;
}
.foot-legal-row .foot-lang {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  font-size: 0.8125rem;
}
.foot-legal-row .lang-menu > summary {
  height: 36px;
  min-height: 36px;
  min-width: 0;
  padding: 0 6px;
  font-size: 0.8125rem;
}
.foot-legal-row .flag-svg,
.foot-legal-row .foot-lang .flag-svg,
.foot-legal-row .foot-lang-menu .flag-svg {
  width: 1rem;
  height: 0.66rem;
}
.foot-legal-row .foot-lang-menu .lang-panel,
.foot-lang-menu .lang-panel {
  top: auto;
  bottom: calc(100% + 4px);
  right: 0;
  left: auto;
}
@media (max-width: 859px) {
  .foot-legal-row .foot-legal-line {
    flex: 1 1 12rem;
  }
  .foot-legal-row .foot-lang {
    margin-left: auto;
  }
}
.foot-lang a:hover,
.foot-lang a:focus-visible { text-decoration: underline; }
.foot-lang a[aria-current="true"] {
  font-weight: 700;
  text-decoration: none;
}
.foot-lang-sep {
  margin: 0 0.1em;
  font-weight: 400;
  opacity: 0.7;
}
.foot-copy, .foot-noplay { margin: 0 0 6px; }
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin: 0 0 6px;
  max-width: none;
}
.foot-meta .foot-copy { margin: 0; }
.foot-stand {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  opacity: 1;
}
a.ext-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}
a.ext-link::after {
  content: "↗";
  font-size: 0.75em;
  margin-inline-start: 0.15em;
  opacity: 0.65;
  speak: never;
}
a.ext-link[href*="check-dein-spiel.de"]::after,
a.ext-link[href*="check-dein-spiel.de"]::before,
a[href*="check-dein-spiel.de"]::after,
a[href*="check-dein-spiel.de"]::before,
.tips-protect a::after,
.tips-protect a::before,
.foot a[href*="check-dein-spiel.de"]::after,
.foot a[href*="check-dein-spiel.de"]::before,
.schutz a[href*="check-dein-spiel.de"]::after,
.schutz a[href*="check-dein-spiel.de"]::before {
  content: none !important;
  margin: 0 !important;
}
.legal-acc {
  background: transparent;
  border-color: rgba(42, 53, 60, 0.35);
  color: var(--on-yellow);
}
.foot .legal-acc,
.foot .legal-acc > :not(summary),
.foot .legal-acc p {
  max-width: none;
  width: 100%;
}
.legal-acc > summary { color: var(--on-yellow); }
.legal-acc > summary:focus-visible {
  outline-color: var(--on-yellow);
  box-shadow: 0 0 0 6px #fff;
}

.skeleton {
  min-height: 10rem;
  background: linear-gradient(90deg, var(--soft) 0%, var(--card) 50%, var(--soft) 100%);
  background-size: 200% 100%;
  animation: pulse 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}
@keyframes pulse { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* Insights / Apps */
.insight-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 16px;
}
@media (min-width: 800px) {
  .insight-board { grid-template-columns: 1fr 1fr 1fr; }
  .insight-board:has(.provider-card) { grid-template-columns: 1fr 1fr; }
}
.insight-card h2, .provider-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.insight-card p, .provider-card p { margin: 0 0 8px; }
.insight-links { margin: 8px 0 0; }
.apps-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin: 0 0 12px;
}
.apps-filter label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.95rem;
}
.apps-filter select, .apps-filter button {
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 8px;
}
.apps-filter button {
  font-weight: 600;
  cursor: pointer;
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--yellow-deep);
}
.apps-filter button:focus-visible,
.apps-filter select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.app-entry { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.app-entry h3 { margin: 0 0 4px; font-size: 1.05rem; }
.app-stores { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; }
.feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.feat-k { color: var(--muted); }
.feat-yes { font-weight: 600; }
.app-details { margin: 4px 0 0; }
.app-details { margin: 4px 0 0; }
.app-details > summary { font-weight: 600; }
.chart-block { margin: 12px 0; }
.chart-svg.chart-bars { height: auto; }
.rank-table td .meta { margin: 0; font-size: 1rem; }
@media (max-width: 700px) {
  .feat-list { grid-template-columns: 1fr; }
  .rank-table thead { display: none; }
  .rank-table, .rank-table tbody, .rank-table tr, .rank-table td {
    display: block;
    width: 100%;
  }
  .rank-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .rank-table td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 8px;
    padding: 8px 0;
    border: 0;
    text-align: start;
    font-size: 1rem;
  }
  .rank-table td.num { text-align: start; }
  .rank-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
    margin-inline-end: auto;
  }
  .insight-board { grid-template-columns: 1fr; }
}
.chart-svg .line.chart-s0, .chart-svg .dot.chart-s0 { stroke: #0b6b3c; fill: #0b6b3c; }
.chart-svg .line.chart-s1, .chart-svg .dot.chart-s1 { stroke: #1d4f91; fill: #1d4f91; }
.chart-svg .line.chart-s2, .chart-svg .dot.chart-s2 { stroke: #b10e0e; fill: #b10e0e; }
.chart-svg .line.chart-s3, .chart-svg .dot.chart-s3 { stroke: #7a3e00; fill: #7a3e00; }
.chart-svg .line.chart-s4, .chart-svg .dot.chart-s4 { stroke: #5b2a8c; fill: #5b2a8c; }
.chart-svg .line.chart-s5, .chart-svg .dot.chart-s5 { stroke: #0a5a6a; fill: #0a5a6a; }
.chart-svg .line.chart-s6, .chart-svg .dot.chart-s6 { stroke: #2a353c; fill: #2a353c; }
.chart-svg .line.chart-s7, .chart-svg .dot.chart-s7 { stroke: #3e4a50; fill: #3e4a50; }
html[data-theme="dark"] {
  .chart-svg .line.chart-s0, .chart-svg .dot.chart-s0 { stroke: #7dcea0; fill: #7dcea0; }
  .chart-svg .line.chart-s1, .chart-svg .dot.chart-s1 { stroke: #8ab4f8; fill: #8ab4f8; }
  .chart-svg .line.chart-s2, .chart-svg .dot.chart-s2 { stroke: #f5a3a3; fill: #f5a3a3; }
  .chart-svg .line.chart-s3, .chart-svg .dot.chart-s3 { stroke: #f0c674; fill: #f0c674; }
  .chart-svg .line.chart-s4, .chart-svg .dot.chart-s4 { stroke: #d4b0f5; fill: #d4b0f5; }
  .chart-svg .line.chart-s5, .chart-svg .dot.chart-s5 { stroke: #7fd4e0; fill: #7fd4e0; }
  .chart-svg .line.chart-s6, .chart-svg .dot.chart-s6 { stroke: #e8ecee; fill: #e8ecee; }
  .chart-svg .line.chart-s7, .chart-svg .dot.chart-s7 { stroke: #c5cbce; fill: #c5cbce; }
}

/* Scanner */
.scanner-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 16px;
}
@media (min-width: 880px) {
  .scanner-board { grid-template-columns: 1fr 1fr; }
}
.scan-drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--soft);
  text-align: center;
}
.scan-drop.is-over { border-color: var(--ink); background: var(--card); }
.scan-drop-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  margin: 0 0 8px;
  font-weight: 700;
  background: var(--yellow);
  color: var(--on-yellow);
  border: 2px solid var(--yellow-deep);
  border-radius: var(--radius);
  cursor: pointer;
}
.scan-drop img[data-scan-preview] {
  display: block;
  margin: 10px auto 0;
  max-height: 240px;
  width: auto;
  border: 1px solid var(--line);
  background: var(--card);
}
.scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.btn-quiet {
  background: var(--card);
  font-weight: 600;
}
.scanner-page form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 10px;
  padding: 8px 10px;
  min-width: 0;
}
.scanner-page form legend { font-weight: 700; padding: 0 4px; }
.scanner-page label { display: block; margin: 0 0 8px; }
.scanner-page label.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  min-height: 44px;
  margin: 0;
}
.scanner-page input[type="text"],
.scanner-page input[type="number"],
.scanner-page input[type="date"] {
  display: block;
  width: 100%;
  max-width: 28rem;
  min-height: 44px;
  margin-top: 4px;
  padding: 4px 8px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.scanner-page input[type="checkbox"],
.scanner-page input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--ink);
}
.scanner-page [data-tip] input[data-main],
.scanner-page [data-tip] input[data-euro] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.scan-draw {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0 0 10px;
  background: var(--soft);
}
.scan-draw h3 { margin: 0 0 4px; font-size: 1.1rem; }
.scan-draw.is-win { border-color: var(--green); }
.scan-banner { font-weight: 700; margin: 6px 0; }
.scan-banner.is-win, .scan-win, .scan-win strong { color: var(--green); }
.scan-nowin { margin: 4px 0; }
.scan-tip { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.scan-tip .nums { margin: 0; font-weight: 700; }
.scan-tip .meta, .scan-draw .meta { margin: 2px 0; color: var(--muted); }
.scanner-faq { margin: 16px 0 8px; }
html[data-theme="dark"] {
  .scan-draw.is-win { border-color: #7dcea0; }
  .scan-banner.is-win, .scan-win, .scan-win strong { color: #7dcea0; }
}
@media (max-width: 700px) {
  .scan-actions .btn { flex: 1 1 auto; }
}

/* Lottery hubs and slim archive index */
.hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.hub-facts {
  margin: 0;
  padding-inline-start: 1.15rem;
}
.hub-facts li { margin: 0 0 4px; }
.hub-more { margin: 8px 0 0; }
.archive-hub-block .balls { margin: 6px 0 8px; }
.archive-hub-block .meta { margin: 0 0 4px; color: var(--muted); }

/* Worldwide lotteries overview */
.lotto-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
}
.lotto-filter label { font-weight: 600; }
.lotto-filter input[type="search"] {
  min-height: 44px;
  min-width: 12rem;
  flex: 1 1 12rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.lotto-filter button {
  min-height: 44px;
  padding: 4px 14px;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--on-yellow);
  cursor: pointer;
}
.lotto-region { margin: 12px auto; }
.lotto-region.wrap, section.lotto-region {
  width: min(100% - 24px, var(--wrap));
}
.acc-region > summary { font-size: 1.15rem; }
.lotto-table {
  min-width: 0;
}
.lotto-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
@media (min-width: 701px) {
  .lotto-table tbody th, .lotto-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
  }
  .lotto-table thead th:first-child { z-index: 3; }
}
.lotto-table tbody th { font-weight: 600; }
.lotto-table td.amount.jp-cell, .lotto-table .jp-cell {
  white-space: normal;
  max-width: none;
  overflow-wrap: normal;
}
.jp-main { font-weight: 600; }
.jp-fx { font-size: 0.9375rem; color: var(--muted, #4a585e); font-weight: 400; }
.jp-asof { display: block; font-size: 0.9375rem; color: var(--muted, #4a585e); margin-top: 0.15rem; }
.lotto-facts { margin-top: 8px; }
.lotto-facts th { width: 12rem; font-weight: 600; }
.legal-banner {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 2px solid var(--on-yellow);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--on-yellow);
}
.legal-banner p { margin: 0 0 6px; }
.legal-banner p:last-child { margin: 0; }
.legal-ok { margin-top: 8px; }
.lotto-detail .jackpot { margin-top: 0; }
@media (max-width: 700px) {
  .lotto-facts, .lotto-facts tbody, .lotto-facts tr, .lotto-facts th, .lotto-facts td {
    display: block;
    width: 100%;
  }
  .lotto-facts th {
    width: auto;
    border-bottom: 0;
    padding-bottom: 0;
    color: var(--muted);
    font-size: 0.9375rem;
  }
  .lotto-facts td { padding-top: 4px; }
  .table-scroll > table:not(.quotes),
  .table-wrap > table:not(.quotes),
  .lz-win-table-wrap > table:not(.quotes),
  .odds-table, .lotto-table, .lz-win-table, .stakes-table {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .table-scroll, .table-wrap, .lz-win-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .odds-table thead, .odds-table tbody, .odds-table,
  .lotto-table thead, .lotto-table tbody, .lotto-table,
  .lz-win-table thead, .lz-win-table tbody, .lz-win-table,
  .stakes-table thead, .stakes-table tbody, .stakes-table {
    display: block;
    width: 100%;
  }
  .odds-table thead, .lotto-table thead, .lz-win-table thead, .stakes-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
  }
  .odds-table tr, .lotto-table tr, .lz-win-table tr, .stakes-table tr {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
  }
  .odds-table tr:nth-child(even),
  .lotto-table tr:nth-child(even), .lz-win-table tr:nth-child(even), .stakes-table tr:nth-child(even) { background: var(--soft); }
  .odds-table th, .odds-table td,
  .lotto-table th, .lotto-table td, .lz-win-table th, .lz-win-table td, .stakes-table th, .stakes-table td {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.25rem 0;
    border-bottom: 0;
    text-align: start;
    background: transparent;
    position: static;
    min-width: 0;
  }
  .odds-table th[scope="row"], .lotto-table th[scope="row"] {
    font-weight: 700;
    padding-bottom: 0.35rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid var(--line);
  }
  .odds-table [data-label]::before,
  .lotto-table [data-label]::before,
  .lz-win-table [data-label]::before,
  .stakes-table [data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    margin-inline-end: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .odds-table td.num, .odds-table td.amount,
  .lotto-table td.num, .lotto-table td.amount, .lotto-table td.date,
  .lz-win-table td.num, .lz-win-table td.amount, .lz-win-table td.date,
  .stakes-table td.amount, .stakes-table td.date {
    text-align: end;
    font-variant-numeric: tabular-nums;
  }
  .lotto-table td[data-label],
  .lz-win-table td[data-label],
  .stakes-table td[data-label] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch;
    align-items: start;
    gap: 0.15rem 0.75rem;
  }
  .lotto-table td[data-label]::before,
  .lz-win-table td[data-label]::before,
  .stakes-table td[data-label]::before {
    grid-column: 1;
    grid-row: 1;
    margin-inline-end: 0;
  }
  .lotto-table td[data-label] > *,
  .lz-win-table td[data-label] > *,
  .stakes-table td[data-label] > * {
    grid-column: 2;
    justify-self: end;
    text-align: end;
    min-width: 0;
  }
  .lotto-table td:not(.amount):not(.date):not(.num),
  .lz-win-table td:not(.amount):not(.date):not(.num),
  .stakes-table td:not(.amount):not(.date):not(.num) {
    white-space: normal;
  }
  .jp-main, .jp-fx { white-space: nowrap; }
  .lotto-table .jp-amt { align-items: flex-end; }
  .lotto-table .jp-odds { white-space: normal; text-align: end; }
}


/* Compact quotes table on every viewport: real table, no stacked cards, tight rows. */
.table-scroll.quotes-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.table-scroll.quotes-wrap > table.quotes,
table.quotes {
  display: table;
  width: auto;
  max-width: 100%;
  font-size: 13px;
  line-height: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
}
.quotes thead {
  display: table-header-group;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}
.quotes tbody { display: table-row-group; width: auto; }
.quotes tr {
  display: table-row;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.quotes th,
.quotes td {
  display: table-cell;
  width: auto;
  height: 24px;
  padding: 4px 6px;
  vertical-align: middle;
  font-size: 13px;
  line-height: 16px;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  white-space: nowrap;
  text-align: start;
}
.quotes thead th {
  font-weight: 700;
  background: var(--soft);
  height: 24px;
}
.quotes tbody tr:nth-child(even) th,
.quotes tbody tr:nth-child(even) td {
  background: var(--soft);
}
.quotes tbody tr:last-child th,
.quotes tbody tr:last-child td {
  border-bottom: 0;
}
.quotes th[scope="row"] {
  font-weight: 400;
  white-space: nowrap;
}
.quotes .q-hit {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink);
}
.quotes td.num,
.quotes th.num,
.quotes td.amount,
.quotes th.amount {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.quotes th.origin,
.quotes td.origin {
  text-align: start;
  white-space: nowrap;
  font-size: 12px;
}
.quotes td.origin .origin-vals {
  display: inline;
  min-width: 0;
  flex: none;
  text-align: start;
  overflow-wrap: normal;
  white-space: nowrap;
}
.quotes [data-label]::before { content: none; display: none; }
@media (max-width: 700px) {
  .table-scroll.quotes-wrap > table.quotes,
  table.quotes {
    width: 100%;
  }
  .quotes th.origin,
  .quotes td.origin,
  .quotes td.origin .origin-vals {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 400px) {
  .table-scroll.quotes-wrap > table.quotes,
  table.quotes,
  .quotes th,
  .quotes td {
    font-size: 12px;
    line-height: 15px;
  }
  .quotes .q-hit,
  .quotes th.origin,
  .quotes td.origin {
    font-size: 11px;
  }
  .quotes th,
  .quotes td {
    padding: 3px 5px;
    height: 24px;
  }
}

/* Lottery SEO copy + readable tables */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.lottery-seo {
  margin: 16px 0 8px;
  max-width: var(--prose);
}
.lottery-seo .seo-intro p,
.seo-prose p,
.seo-prose li,
.lottery-faq p {
  max-width: var(--prose);
  line-height: 1.6;
}
.seo-intro p { margin: 0 0 10px; }
.seo-list { margin: 0 0 10px; padding-left: 1.2em; }
.seo-list li { margin: 0 0 6px; }
.acc-seo > summary {
  list-style: none;
}
.seo-sum {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
  color: inherit;
}
.odds-table { min-width: 0; }
.odds-table th, .odds-table td { font-size: 1rem; }
.seo-related { margin: 20px 0 8px; }
.seo-related h2 { font-size: 1.15rem; margin: 0 0 8px; }
.seo-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seo-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
}

.page-seo {
  margin: 28px 0 20px;
  max-width: none;
  width: 100%;
}
.page-seo h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  line-height: 1.3;
}
.page-seo h3 {
  font-size: 1.12rem;
  margin: 1.15em 0 0.45em;
  line-height: 1.35;
}
.page-seo .seo-intro p,
.page-seo .seo-prose p,
.page-seo .seo-prose li,
.page-seo .lottery-faq p,
.page-seo .seo-disclaimer,
.page-seo .seo-faq {
  max-width: none;
}
.page-seo .seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 4px 0 8px;
}
@media (min-width: 701px) {
  .page-seo .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (min-width: 961px) {
  .page-seo .seo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.page-seo .seo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px 14px 14px;
  min-width: 0;
  min-height: 100%;
}
.page-seo .seo-card h3 {
  margin: 0 0 8px;
}
.page-seo .seo-card > p {
  margin: 0 0 8px;
  line-height: 1.6;
}
.page-seo .seo-card > p:last-child {
  margin-bottom: 0;
}
.page-seo .seo-card .acc {
  margin: 8px 0 0;
}
.page-seo .seo-card .acc-body,
.page-seo .seo-card .acc > :not(summary) {
  padding: 0 10px 10px;
}
.page-seo .seo-card .acc-body p,
.page-seo .lottery-faq .acc-body p {
  margin: 0 0 8px;
  line-height: 1.6;
}
.page-seo .seo-card .acc-body p:last-child,
.page-seo .lottery-faq .acc-body p:last-child {
  margin-bottom: 0;
}
.page-seo .seo-related {
  margin-top: 8px;
}
.page-seo .lottery-faq {
  margin: 16px 0 0;
}
.page-seo .seo-faq {
  margin: 0;
}
.page-seo .seo-disclaimer,
.seo-disclaimer {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}
.page-seo .seo-disclaimer {
  max-width: none;
}
.seo-faq {
  margin: 0;
  max-width: var(--prose);
}
.seo-faq dt {
  font-weight: 700;
  margin: 12px 0 4px;
}
.seo-faq dd {
  margin: 0 0 8px;
  line-height: 1.6;
}
/* Sticky first column only on wide, scrolling tables */
@media (max-width: 700px) {
  .lz-win-table th:first-child, .lz-win-table td:first-child,
  .stakes-table th:first-child, .stakes-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
  }
}


/* Insights tabs and compact layout */
.intro-compact { margin: 12px 0 10px; }
.intro-compact h1 { margin: 0 0 4px; }
.stand-short { margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; }
.insight-notes { margin: 16px 0 24px; max-width: var(--prose); }

.insight-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.insight-tabs-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.insight-tabs a,
.sort-tabs a,
.tablist a.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}
.insight-tabs a:hover,
.sort-tabs a:hover,
.tablist a.tab:hover { text-decoration: none; background: var(--soft); }
.insight-tabs a[aria-current="page"],
.sort-tabs a[aria-current="true"],
.tablist a.tab[aria-selected="true"],
.tablist a.tab.is-active {
  border-bottom-color: var(--yellow-deep);
  color: var(--ink);
}
.insight-tabs a:focus-visible,
.sort-tabs a:focus-visible,
.tablist a.tab:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.tablist-wrap {
  position: sticky;
  top: calc(var(--header-h) + 44px);
  z-index: 29;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin: 0 0 12px;
}
.tablist {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  gap: 0;
}
.sort-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  gap: 0;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--line);
}

html.js .tab-panel { display: none; }
html.js .tab-panel.is-active { display: block; }
html:not(.js) .tab-panel { display: none; }
html:not(.js) .tab-panels:not(:has(:target)) .tab-panel:first-child,
html:not(.js) .tab-panel:target { display: block; }

.kpi-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(5, 1fr); }
}
.kpi-row li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 44px;
}
.kpi-l { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.kpi-n { display: block; font-weight: 700; margin-top: 2px; }

.apps-table, .rank-table { width: max-content; max-width: 100%; }
@media (max-width: 700px) {
  .apps-table thead { display: none; }
  .apps-table, .apps-table tbody, .apps-table tr, .apps-table td,
  .rank-table, .rank-table tbody, .rank-table tr, .rank-table td {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .apps-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .apps-table td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 8px;
    padding: 6px 0;
    border: 0;
  }
  .apps-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
    margin-inline-end: auto;
  }
}

/* Lottozahlen-Generator und Astro-Tipp */
.gen-form { margin: 0 0 16px; }
.gen-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin: 0 0 8px;
}
.gen-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-weight: 600;
}
.gen-toolbar select { min-width: 5.5rem; }
.gen-keno-field { margin: 0; }
.gen-results { margin: 0 0 20px; }
.gen-tip { margin: 0 0 12px; }
.gen-tip h3 { margin: 0 0 6px; }
.gen-tabs { margin: 0 0 8px; }
.astro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .astro-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1100px) {
  .astro-grid { grid-template-columns: repeat(4, 1fr); }
}
.astro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 108px;
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.astro-card:hover,
.astro-card:focus-visible { border-color: var(--ink); text-decoration: none; }
.astro-symbol {
  font-size: 2rem;
  line-height: 1;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", var(--font);
}
.astro-symbol-lg { font-size: 3rem; margin: 0 0 6px; }
.astro-card-name { font-weight: 700; }
.astro-card-dates { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.astro-sign-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 16px 0 20px;
}
.astro-sign-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  font-weight: 600;
}

/* Wiki */
.wiki-page { max-width: var(--wrap); }
.wiki-prose { max-width: var(--prose); }
.wiki-prose h2 { margin: 1.4rem 0 0.4rem; font-size: 1.25rem; }
.wiki-prose h3 { margin: 1.1rem 0 0.35rem; font-size: 1.08rem; }
.wiki-prose p { margin: 0 0 0.75rem; }
.wiki-prose ul, .wiki-prose ol { margin: 0 0 0.85rem; padding-left: 1.2rem; }
.wiki-prose li { margin: 0 0 0.25rem; }
.wiki-updated { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.9rem; }
.wiki-facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 1rem; }
.wiki-facts dl { margin: 0; }
.wiki-fact { display: grid; grid-template-columns: minmax(7rem, 32%) 1fr; gap: 4px 12px; padding: 4px 0; border-top: 1px solid var(--line); }
.wiki-fact:first-child { border-top: 0; padding-top: 0; }
.wiki-fact dt { font-weight: 600; }
.wiki-fact dd { margin: 0; }
.wiki-toc { margin: 0 0 1rem; }
.wiki-toc ol { margin: 8px 0 0; padding-left: 1.2rem; }
.wiki-cards, .wiki-az, .wiki-related ul, .wiki-sources ul, .wiki-more ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 10px; }
.wiki-card { margin: 0; }
.wiki-card a { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; }
.wiki-card a:hover, .wiki-card a:focus-visible { border-color: var(--ink); }
.wiki-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.wiki-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.wiki-az { columns: 2; column-gap: 1.5rem; }
.wiki-az li, .wiki-related li, .wiki-sources li, .wiki-more li { break-inside: avoid; margin: 0 0 0.3rem; }
.wiki-cluster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 10px; margin: 0 0 1.2rem; }
.wiki-cluster-card h3 { margin-top: 0; }
.wiki-cluster-card ul { margin: 0; padding-left: 1.15rem; }
.wiki-related, .wiki-sources, .wiki-more, .wiki-faq { margin: 1.25rem 0; }
.wiki-more { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 1rem 0; }
.wiki-more h2, .wiki-related h2, .wiki-sources h2 { margin-top: 0; font-size: 1.1rem; }
.wiki-to-money, .wiki-lottery-link { margin: 0.8rem 0 0; }
@media (max-width: 640px) {
  .wiki-az { columns: 1; }
  .wiki-fact { grid-template-columns: 1fr; }
}


/* New Year lotteries subcategory */
.ny-teaser {
  margin: 8px auto 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--yellow, #f5da14);
}
.ny-teaser h2 { margin: 0 0 6px; font-size: 1.15rem; }
.ny-teaser p { margin: 0 0 10px; }
.ny-teaser p:last-child { margin: 0; }
.ny-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 12px;
  margin: 0 0 8px;
}
.ny-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 44px;
}
.ny-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.ny-card h3 a {
  display: inline;
  min-height: 0;
  padding: 0;
}
.ny-flag { font-style: normal; }
.ny-card p { margin: 0 0 6px; }
.ny-card p:last-child { margin: 0; }
.ny-legal-line {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}
.ny-countdown {
  font-weight: 600;
  margin: 0 0 8px;
}
.ny-countdown.is-past,
.ny-countdown-unknown { font-weight: 400; color: var(--muted); }
.ny-note {
  margin: 12px auto 16px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.ny-region { margin: 16px auto; }
.ny-region h2 { margin: 0 0 10px; font-size: 1.2rem; }
.ny-wiki { width: min(100% - 24px, var(--wrap)); margin-left: auto; margin-right: auto; }
.ny-detail .ny-countdown { font-size: 1.05rem; }

.chart-legend { margin: 6px 0 10px; color: var(--muted); font-size: 0.95rem; }
.legend-s0::before, .legend-s1::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.35em;
  vertical-align: -0.1em;
  border-radius: 2px;
}
.legend-s0::before { background: #0b6b3c; }
.legend-s1::before { background: #1d4f91; }
:root[data-theme="dark"] .legend-s0::before, html.dark .legend-s0::before { background: #7dcea0; }
:root[data-theme="dark"] .legend-s1::before, html.dark .legend-s1::before { background: #8ab4f8; }
.stakes-lottery { margin: 0 0 24px; }

.chart-svg .line.chart-day-b { stroke-dasharray: 7 5; }

/* Stakes charts: colorblind-friendly, high-contrast series (Okabe–Ito inspired).
   Brand yellow #f5da14 is not used here — too weak on light backgrounds. */
.chart-block {
  --stakes-stake-a: #0b7a4b;
  --stakes-jackpot-a: #005a9e;
  --stakes-stake-b: #c44e00;
  --stakes-jackpot-b: #9a2e7a;
}
html[data-theme="dark"] .chart-block {
  --stakes-stake-a: #3ddb9a;
  --stakes-jackpot-a: #6cb6ff;
  --stakes-stake-b: #ff8c42;
  --stakes-jackpot-b: #e090d0;
}
.chart-svg.chart-stakes .line {
  stroke-width: 2.6;
  fill: none;
}
.chart-svg.chart-stakes .line.chart-s0.chart-day-a { stroke: var(--stakes-stake-a); fill: none; }
.chart-svg.chart-stakes .line.chart-s1.chart-day-a { stroke: var(--stakes-jackpot-a); fill: none; }
.chart-svg.chart-stakes .line.chart-s0.chart-day-b { stroke: var(--stakes-stake-b); fill: none; }
.chart-svg.chart-stakes .line.chart-s1.chart-day-b { stroke: var(--stakes-jackpot-b); fill: none; }
.chart-svg.chart-stakes .dot.chart-s0.chart-day-a { stroke: var(--stakes-stake-a); fill: var(--stakes-stake-a); }
.chart-svg.chart-stakes .dot.chart-s1.chart-day-a { stroke: var(--stakes-jackpot-a); fill: var(--stakes-jackpot-a); }
.chart-svg.chart-stakes .dot.chart-s0.chart-day-b { stroke: var(--stakes-stake-b); fill: var(--stakes-stake-b); }
.chart-svg.chart-stakes .dot.chart-s1.chart-day-b { stroke: var(--stakes-jackpot-b); fill: var(--stakes-jackpot-b); }
.chart-svg.chart-stakes .dot {
  stroke: var(--card);
  stroke-width: 1;
}
.chart-svg.chart-stakes .dot:hover {
  fill: inherit;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.stakes-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--ink);
}
.stakes-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 1.5rem;
}
.stakes-legend .chart-s0::before,
.stakes-legend .chart-s1::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 0.22em;
  margin: 0;
  vertical-align: middle;
  border-radius: 1px;
  background: var(--stakes-stake-a);
  flex: 0 0 auto;
}
.stakes-legend .chart-s1::before { background: var(--stakes-jackpot-a); }
.stakes-legend .chart-s0.chart-day-b::before {
  background: repeating-linear-gradient(90deg, var(--stakes-stake-b) 0 0.32em, transparent 0.32em 0.5em);
}
.stakes-legend .chart-s1.chart-day-b::before {
  background: repeating-linear-gradient(90deg, var(--stakes-jackpot-b) 0 0.32em, transparent 0.32em 0.5em);
}
.stakes-legend .chart-s0::after,
.stakes-legend .chart-s1::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-inline-start: -0.2em;
  flex: 0 0 auto;
  background: var(--stakes-stake-a);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--card);
}
.stakes-legend .chart-s1::after { background: var(--stakes-jackpot-a); }
.stakes-legend .chart-s0.chart-day-b::after {
  background: var(--stakes-stake-b);
  border-radius: 1px;
}
.stakes-legend .chart-s1.chart-day-b::after {
  background: var(--stakes-jackpot-b);
  border-radius: 1px;
}

/* Generic (non-stakes) chart legend colors for other insights charts. */
.chart-legend:not(.stakes-legend) .chart-s0::before,
.chart-legend:not(.stakes-legend) .chart-s1::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.28em;
  margin-right: 0.35em;
  vertical-align: 0.12em;
  border-radius: 1px;
}
.chart-legend:not(.stakes-legend) .chart-s0::before { background: #0b6b3c; }
.chart-legend:not(.stakes-legend) .chart-s1::before { background: #1d4f91; }
html[data-theme="dark"] .chart-legend:not(.stakes-legend) .chart-s0::before { background: #7dcea0; }
html[data-theme="dark"] .chart-legend:not(.stakes-legend) .chart-s1::before { background: #8ab4f8; }
.stakes-day-filter {
  margin: 0 0 12px;
  padding: 8px 0;
  border: 0;
  min-width: 0;
}
.stakes-day-filter legend {
  font-weight: 700;
  padding: 0;
  margin: 0 0 6px;
}
.stakes-day-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}
.stakes-day-filter .choice {
  margin: 0;
}
.stakes-day-hint { margin: 6px 0 0; }
.stakes-view[hidden] { display: none !important; }
.stakes-table { font-variant-numeric: tabular-nums; }
.chart-svg.chart-stakes .line.chart-s0,
.chart-svg.chart-stakes .line.chart-s1,
.chart-svg.chart-stakes .line.chart-s2,
.chart-svg.chart-stakes .line.chart-s3 {
  fill: none;
}

/* First-party cookie banner: bottom bar, does not block the page. */
body.consent-open {
  padding-bottom: var(--consent-offset, 0px);
}
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  box-sizing: border-box;
  background: var(--card);
  color: var(--ink);
  border-top: 3px solid var(--yellow, #f5da14);
  box-shadow: 0 -6px 20px rgba(42, 53, 60, 0.16);
  padding: 12px 16px 14px;
}
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: var(--wrap, 72rem);
  margin: 0 auto;
}
.consent-copy { flex: 1 1 18rem; min-width: 0; }
.consent-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.consent-text, .consent-hint, .consent-more {
  margin: 0 0 6px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.consent-more { display: inline-block; font-weight: 600; }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 1 auto;
  align-items: stretch;
}
.consent-btn {
  min-height: 44px;
  min-width: 10.5rem;
  margin: 0;
  font-weight: 700;
  flex: 1 1 10.5rem;
}
.consent-btn-settings {
  font-weight: 600;
}
.consent-settings {
  max-width: var(--wrap, 72rem);
  margin: 10px auto 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.consent-settings-title {
  margin: 0 0 8px;
  font-weight: 700;
}
.consent-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  min-height: 44px;
}
.consent-toggle input {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}
@media (max-width: 859px) {
  .consent-banner { padding: 12px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 100%; min-width: 0; }
}
.cookies-table { margin: 0 0 1rem; }


/* Unified form controls (select, checkbox, radio): appearance none, lotto-bw yellow,
   44px targets, focus-visible ring, hover/disabled, light+dark, Safari-safe.
   No component-type changes; no inline styles; no external assets. */
:root {
  --control-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232a353c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  --control-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232a353c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  --control-radio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4' fill='%232a353c'/%3E%3C/svg%3E");
}
html[data-theme="dark"] {
  --control-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8ecee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
}

select,
.field select,
.gen-toolbar select,
.apps-filter select,
.lotto-filter select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  padding: 4px 2.35rem 4px 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  background-color: var(--card);
  background-image: var(--control-arrow);
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.85rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  accent-color: var(--yellow);
}
select::-ms-expand { display: none; }
select:hover:not(:disabled) { border-color: var(--ink); }
select:focus-visible {
  outline: none;
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 2px rgba(245, 218, 20, 0.28);
}
select:disabled,
select[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: var(--soft);
  color: var(--muted);
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
  flex: 0 0 auto;
  vertical-align: middle;
  border: 2px solid var(--line);
  background-color: var(--card);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem 0.85rem;
  accent-color: var(--yellow);
  cursor: pointer;
  color: var(--on-yellow);
}
input[type="checkbox"] { border-radius: 3px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled) {
  border-color: var(--ink);
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--yellow);
  border-color: var(--on-yellow);
}
input[type="checkbox"]:checked {
  background-image: var(--control-check);
}
input[type="radio"]:checked {
  background-image: var(--control-radio);
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: var(--soft);
}

.consent-toggle,
.auth-age,
label.choice,
.scanner-page label.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.auth-age { font-weight: 600; }

@media (forced-colors: active) {
  select,
  input[type="checkbox"],
  input[type="radio"] {
    appearance: auto;
    -webkit-appearance: auto;
    background: ButtonFace;
    border-color: ButtonText;
    forced-color-adjust: auto;
  }
}

/* Wiki hint/link blocks placed just above the footer must share the content
   container inset (.wrap uses 100% - 24px). Only when they are not already
   inside a .wrap (they are then a direct child of main). */
main > .wiki-more,
main > .wiki-lottery-link,
main > .wiki-to-money {
  width: min(100% - 24px, var(--wrap));
  margin-inline: auto;
}

/* Lotto-Assistent (lazy chat). Below consent banner (z 80). */
.chat-launcher {
  --chat-x: auto;
  --chat-y: auto;
  --chat-sx: 1;
  --chat-sy: 1;
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: auto;
  top: auto;
  z-index: 70;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--on-yellow);
  border: 2px solid var(--on-yellow);
  box-shadow: 0 8px 22px rgba(42, 53, 60, 0.22);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transform: scale(var(--chat-sx), var(--chat-sy));
  transform-origin: center center;
  will-change: left, top, transform;
}
.chat-launcher:hover,
.chat-launcher:focus-visible { border-color: var(--ink); }
.chat-launcher:focus-visible {
  outline: 3px solid var(--on-yellow);
  box-shadow: 0 0 0 6px #fff, 0 8px 22px rgba(42, 53, 60, 0.22);
}
.chat-launcher.is-dragging { cursor: grabbing; z-index: 76; }
.chat-launcher[aria-expanded="true"] { cursor: pointer; }
.chat-launcher-icon {
  display: block;
  width: 26px;
  height: 26px;
  pointer-events: none;
}
body:has(.chat-launcher) .foot { padding-bottom: 8.5rem; }


.chat-panel {
  position: fixed;
  z-index: 75;
  left: auto;
  top: auto;
  right: 16px;
  bottom: 16px;
  width: min(24rem, calc(100vw - 24px));
  max-height: min(36rem, calc(100dvh - 24px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(42, 53, 60, 0.22);
  overflow: hidden;
  transform-origin: 100% 100%;
}
html[data-theme="dark"] .chat-panel {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.chat-panel[hidden] { display: none !important; }
.chat-panel.is-pop {
  animation: chat-pop 0.48s cubic-bezier(0.22, 1.4, 0.36, 1);
}
@keyframes chat-pop {
  0% { transform: scale(0.72); opacity: 0; }
  70% { transform: scale(1.035); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--yellow);
  color: var(--on-yellow);
  border-radius: 28px 28px 0 0;
}
.chat-title { margin: 0; font-size: 1.0625rem; color: var(--on-yellow); }
.chat-close {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border-color: var(--on-yellow);
  color: var(--on-yellow);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
}
.chat-footer {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--muted);
  text-align: right;
  opacity: 0.72;
}
.chat-log {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.chat-msg {
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--soft);
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--yellow);
  color: var(--on-yellow);
  border-radius: 16px 16px 4px 16px;
}
.chat-msg-assistant { border-radius: 16px 16px 16px 4px; }
.chat-msg-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg-pending { color: var(--muted); font-style: italic; }
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px 14px 6px;
  border-top: 1px solid var(--line);
  align-items: end;
}
.chat-input {
  grid-column: 1;
  width: 100%;
  min-height: 44px;
  max-height: 8rem;
  resize: vertical;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 16px;
}
.chat-input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}
.chat-send { grid-column: 2; border-radius: 999px; }
.chat-head,
.chat-form,
.chat-footer {
  flex: 0 0 auto;
}
.chat-panel.is-sheet {
  border-radius: 20px 20px 12px 12px;
}
.chat-panel.is-sheet .chat-head {
  border-radius: 20px 20px 0 0;
}
@media (max-width: 700px) {
  .chat-panel {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px 20px 12px 12px;
  }
  .chat-panel .chat-head { border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher {
    will-change: auto;
    transition: none;
  }
  .chat-panel.is-pop { animation: none; }
}


/* Inbox — slim Gmail-like list + detail, existing design tokens only. */
/* Sit flush under breadcrumbs and above the footer; keep .wrap width. */
main:has(> .inbox-app) {
  padding-block: 0;
  display: flex;
  flex-direction: column;
}
.inbox-app {
  --inbox-sidebar: 15rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-block: 0;
  padding-block: 0;
  overflow: visible;
}
.inbox-shell {
  display: grid;
  grid-template-columns: var(--inbox-sidebar) minmax(0, 22rem) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow: visible;
}
.inbox-sidebar,
.inbox-list-pane {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;
  min-height: 0;
}
.inbox-list-pane {
  display: grid;
  grid-template-rows: subgrid;
}
.inbox-sidebar {
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
  border-right: 1px solid var(--line);
  background: var(--soft);
  padding: 0;
  position: relative;
  min-height: 0;
  overflow: visible;
}
.inbox-detail-pane {
  grid-row: 1 / -1;
  grid-column: 3;
}
.inbox-mailbox,
.inbox-list-head {
  grid-row: 1;
  box-sizing: border-box;
  margin: 0;
  display: flex;
  align-items: center;
  /* Fixed inner content height 30px in every folder; equal 0.9rem padding so title/address sit vertically centered. */
  height: calc(1.8rem + 30px);
  min-height: calc(1.8rem + 30px);
  max-height: calc(1.8rem + 30px);
  padding-top: 0.9rem;
  padding-bottom: calc(0.9rem - 1px); /* minus 1px border so measured top/bottom gaps match */
  border-bottom: 1px solid var(--line);
}
.inbox-mailbox {
  --inbox-alias-chevron: 10px;
  --inbox-alias-gap: 0.28rem;
  /* Match category label text (nav 0.7rem + item 0.65rem). Chevron sits to the left of that line. */
  --inbox-mailbox-text-left: 1.35rem;
  --inbox-mailbox-pad-left: calc(var(--inbox-mailbox-text-left) - var(--inbox-alias-chevron) - var(--inbox-alias-gap));
  --inbox-mailbox-pad-right: 1.35rem;
  position: relative;
  flex: 0 0 auto;
  padding-left: var(--inbox-mailbox-pad-left);
  padding-right: var(--inbox-mailbox-pad-right);
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  /* 1px transparent border keeps the shared header-row height; no line above the nav. */
  border-bottom-color: transparent;
}
.inbox-mailbox:has(.inbox-alias-menu[open]) {
  overflow: visible;
  z-index: 8;
}
.inbox-nav,
.inbox-list-body {
  grid-row: 2;
  min-height: 0;
}
.inbox-nav { padding: 0 0.7rem 1.5rem; }
.inbox-mailbox-primary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  position: relative;
  /* Exakt wie .inbox-list-title (h1): 1rem / 700 / --ink / lh 1.2 / tracking -0.02em */
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.inbox-mailbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
  width: auto;
}
.inbox-mailbox-primary [data-inbox-mailbox-address] {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.inbox-copy-wrap {
  position: absolute;
  /* Same vertical line as the tooltip alias copy column (icon centers).
     Positioned against the menu (full mailbox content width), not the max-content summary. */
  left: auto;
  right: calc(var(--inbox-alias-nav-inset) + var(--inbox-alias-tooltip-gap) + var(--inbox-alias-copy-row-pad) - var(--inbox-mailbox-pad-right));
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  width: var(--inbox-alias-copy-col);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}
.inbox-copy-feedback {
  position: absolute;
  top: calc(100% + 0.25rem);
  bottom: auto;
  right: 0;
  left: auto;
  z-index: 8;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 20%, transparent);
  pointer-events: none;
}

.inbox-alias-menu {
  --inbox-alias-chevron: 10px;
  --inbox-alias-gap: 0.28rem;
  --inbox-alias-tooltip-gap: 0.2rem;
  --inbox-alias-nav-inset: 0.7rem;
  --inbox-alias-copy-col: 16px;
  --inbox-alias-copy-row-pad: 0.15rem;
  margin: 0;
  padding: 0;
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  line-height: inherit;
}
.inbox-nav {
  flex: 1 1 auto;
  min-height: 0;
}
.inbox-alias-menu:not([open]) > .inbox-alias-panel { display: none; }
.inbox-alias-current {
  display: flex;
  align-items: center;
  gap: var(--inbox-alias-gap);
  min-width: 0;
  width: max-content;
  max-width: 100%;
  position: static;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  padding-right: max(0px, calc(var(--inbox-alias-copy-col) + var(--inbox-alias-nav-inset) + var(--inbox-alias-tooltip-gap) + var(--inbox-alias-copy-row-pad) - var(--inbox-mailbox-pad-right)));
  list-style: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  background: transparent;
  border: 0;
}
.inbox-alias-current::-webkit-details-marker,
.inbox-alias-current::marker {
  display: none;
  content: none;
  width: 0;
  height: 0;
  font-size: 0;
}
.inbox-alias-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: var(--inbox-alias-chevron);
  height: var(--inbox-alias-chevron);
  margin: 0;
  padding: 0;
  line-height: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  pointer-events: none;
}
.inbox-alias-current:hover .inbox-alias-toggle,
.inbox-alias-current:focus-visible .inbox-alias-toggle,
.inbox-alias-menu[open] > .inbox-alias-current .inbox-alias-toggle {
  color: var(--ink);
  background: transparent;
}
.inbox-alias-chevron-icon {
  display: block;
  width: var(--inbox-alias-chevron);
  height: var(--inbox-alias-chevron);
  transition: transform 0.15s ease;
}
.inbox-alias-menu[open] .inbox-alias-chevron-icon { transform: rotate(180deg); }
  .inbox-alias-panel {
  /* Span the folder-nav column so the selected folder does not peek around the tooltip. */
  --inbox-alias-nav-inset: 0.7rem;
  position: absolute;
  top: calc(100% + var(--inbox-alias-tooltip-gap));
  /* Flush with the chevron. */
  left: 0;
  z-index: 50;
  box-sizing: border-box;
  width: calc(var(--inbox-sidebar) - var(--inbox-mailbox-pad-left) - var(--inbox-alias-nav-inset));
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: var(--inbox-alias-tooltip-gap);
  display: flex;
  flex-direction: column;
  gap: var(--inbox-alias-tooltip-gap);
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 18%, transparent), 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent);
  overflow: visible;
  line-height: 1.2;
  font-size: 0.9375rem;
  font-weight: 400;
}
html[data-theme="dark"] .inbox-alias-panel {
  background: var(--card);
}
.inbox-alias-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  column-gap: 0.15rem;
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 0 0.15rem 0 0;
  border-radius: var(--radius);
  background: transparent;
  color: color-mix(in srgb, var(--muted) 64%, var(--line));
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.inbox-alias-row.is-active {
  display: none;
}
.inbox-alias-select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 32px;
  margin: 0;
  padding: 0.14rem 0.25rem 0.14rem 0.3rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: inherit;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.inbox-alias-row:hover,
.inbox-alias-row:focus-within {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}
.inbox-alias-select:focus {
  outline: none;
}
.inbox-alias-select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.inbox-alias-row .inbox-alias-copy {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  justify-self: end;
  opacity: 0.8;
  pointer-events: auto;
}
.inbox-alias-copy {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  max-width: 16px;
  min-height: 16px;
  max-height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.inbox-alias-copy .icon-copy {
  display: block;
  width: 12px;
  height: 12px;
}
.inbox-alias-current:hover .inbox-copy-wrap .inbox-alias-copy,
.inbox-alias-current:focus-within .inbox-copy-wrap .inbox-alias-copy,
.inbox-alias-row:hover .inbox-alias-copy,
.inbox-alias-row:focus-within .inbox-alias-copy,
.inbox-alias-copy:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.inbox-alias-row:hover .inbox-alias-copy,
.inbox-alias-row:focus-within .inbox-alias-copy {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .inbox-alias-row,
  .inbox-alias-select {
    transition: none;
  }
}
.inbox-alias-copy:hover,
.inbox-alias-copy:focus-visible {
  color: var(--ink);
  background: transparent;
}
@media (hover: none) {
  /* Only the current address shows a copy icon on touch; per-row icons
     collide with longer aliases and are not unobtrusive. Select an alias
     to copy it from the top line. */
  .inbox-alias-menu[open] .inbox-copy-wrap .inbox-alias-copy {
    opacity: 0.75;
    pointer-events: auto;
  }
}

.inbox-mailbox-alias {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.inbox-mailbox-alias-label {
  font-weight: 600;
}
.mailbox-preview {
  margin: 0.4rem 0 0.2rem;
  font-size: 0.875rem;
  word-break: break-all;
}
.mailbox-preview-primary {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.mailbox-preview-alias {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.inbox-nav { display: flex; flex-direction: column; gap: 2px; }
.inbox-nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}
.inbox-nav-text { flex: 1 1 auto; min-width: 0; }
.inbox-nav-label { overflow: visible; white-space: nowrap; }
.inbox-count { flex: 0 0 auto; }
.inbox-nav-item:hover { background: var(--card); }
.inbox-nav-item.is-active {
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 600;
}
.inbox-count { font-size: 0.75rem; color: var(--muted); min-width: 1.2em; text-align: right; }
.inbox-nav-item.is-active .inbox-count { color: var(--on-yellow); }
.inbox-list-pane { border-right: 1px solid var(--line); min-width: 0; background: var(--bg); overflow: visible; }
.inbox-list-head {
  position: relative;
  justify-content: space-between;
  gap: 0.75rem;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  flex-wrap: nowrap;
  overflow: visible;
  z-index: 9;
}
.inbox-list-body { min-width: 0; }
.inbox-list-title-row {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 auto;
  height: auto;
}
.inbox-list-title { margin: 0; font-size: 1rem; line-height: 1.2; min-width: 0; flex: 0 1 auto; }
.inbox-menu-btn { display: none; }
.inbox-list-head .inbox-empty-trash,
.inbox-list-head .inbox-empty-folder {
  margin-left: auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--red);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0.65rem;
  min-height: 30px;
  max-height: 30px;
  height: 30px;
  min-width: 0;
  flex: 0 0 auto;
  cursor: pointer;
}
.inbox-list-head .inbox-empty-folder {
  color: var(--muted);
}
.inbox-empty-trash:hover,
.inbox-empty-trash:focus-visible {
  background: color-mix(in srgb, var(--red) 10%, var(--card));
}
.inbox-empty-folder:hover,
.inbox-empty-folder:focus-visible {
  background: color-mix(in srgb, var(--ink) 8%, var(--card));
}
.inbox-empty-folder:disabled {
  opacity: 0.45;
  cursor: default;
}
.inbox-trash-info-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
}
.inbox-icon-btn.inbox-trash-info-btn {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 50%;
  color: var(--muted);
}
.inbox-trash-info-btn .icon-info {
  display: block;
  width: 14px;
  height: 14px;
  max-width: none;
}
.inbox-trash-info-btn:hover,
.inbox-trash-info-btn:focus-visible {
  background: color-mix(in srgb, var(--ink) 8%, var(--card));
  color: var(--ink);
}
.inbox-trash-info-tip {
  position: absolute;
  top: calc(100% + 0.25rem);
  bottom: auto;
  left: 0;
  right: auto;
  z-index: 12;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 20%, transparent);
  pointer-events: none;
}
.inbox-trash-info-wrap[hidden],
.inbox-trash-info-tip[hidden] {
  display: none !important;
}
.inbox-nav-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.inbox-nav-icon,
.icon-trash,
.icon-restore,
.icon-settings {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.inbox-settings-view {
  min-width: 0;
  padding: 0.35rem 0.7rem 1.5rem;
}
.inbox-settings-view[hidden] { display: none !important; }
.inbox-setting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  max-width: 36rem;
}
.inbox-setting-text { flex: 1 1 auto; min-width: 0; }
.inbox-setting-label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.inbox-setting-help {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted, #5c6a72);
}
.inbox-setting-status {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink);
}
.inbox-setting-status[hidden] { display: none !important; }
.inbox-setting-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 24px;
  min-height: 24px;
  margin: 0.1rem 0 0;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--soft);
  color: inherit;
  cursor: pointer;
  display: inline-block;
}
.inbox-setting-switch:hover,
.inbox-setting-switch:focus-visible {
  background: var(--soft);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.inbox-setting-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.15s ease;
  pointer-events: none;
}
.inbox-setting-switch[aria-checked="true"] {
  background: var(--yellow);
  border-color: var(--on-yellow);
}
.inbox-setting-switch[aria-checked="true"]::after {
  transform: translateX(20px);
  background: var(--on-yellow);
}
@media (prefers-reduced-motion: reduce) {
  .inbox-setting-switch::after { transition: none; }
}

.inbox-row { position: relative; }
.inbox-row-actions {
  display: none;
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  gap: 0.2rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.inbox-icon-btn,
.inbox-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
}
.inbox-icon-btn {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  line-height: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}
.inbox-row-actions .inbox-icon-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  max-width: none;
}
.inbox-icon-btn.inbox-copy-btn {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 50%;
  color: var(--muted);
}
.inbox-icon-btn.inbox-copy-btn .icon-copy {
  display: block;
  width: 14px;
  height: 14px;
  max-width: none;
}
.inbox-copy-btn:hover,
.inbox-copy-btn:focus-visible {
  background: color-mix(in srgb, var(--ink) 8%, var(--card));
  color: var(--ink);
}
/* Nachrichtenliste: Icon nur bei Zeilen-Hover/Fokus sichtbar, über Datum/Tags.
   Perfekt runder 32px-Button, 1px-Ring, kein doppelter/abgeschnittener Rand.
   Fokus-Ring nur bei :focus-visible. */
.inbox-row,
.inbox-row-btn { overflow: visible; }
.inbox-row-actions .inbox-icon-btn,
.inbox-row-actions .inbox-icon-btn.is-hover,
.inbox-row-actions .inbox-icon-btn.inbox-icon-restore {
  color: var(--ink);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 32%, transparent);
  box-shadow: 0 1px 3px rgba(42, 53, 60, 0.14);
  outline: none;
}
html[data-theme="dark"] .inbox-row-actions .inbox-icon-btn,
html[data-theme="dark"] .inbox-row-actions .inbox-icon-btn.is-hover,
html[data-theme="dark"] .inbox-row-actions .inbox-icon-btn.inbox-icon-restore {
  color: var(--ink);
  background: #1c2429;
  border: 1px solid color-mix(in srgb, var(--ink) 42%, transparent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.inbox-row-actions .inbox-icon-btn:hover,
.inbox-row-actions .inbox-icon-btn.is-hover,
.inbox-row-actions .inbox-icon-btn.inbox-icon-restore:hover {
  border-color: color-mix(in srgb, var(--ink) 48%, transparent);
}
.inbox-row-actions .inbox-icon-btn:focus {
  outline: none;
}
.inbox-row-actions .inbox-icon-btn:focus-visible,
.inbox-row-actions .inbox-icon-btn.inbox-icon-restore:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
.inbox-tool-btn.inbox-tool-danger:hover,
.inbox-tool-btn.inbox-tool-danger:focus-visible {
  background: color-mix(in srgb, var(--red) 12%, var(--card));
  color: var(--red);
}
.inbox-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.inbox-tool-btn {
  min-height: 36px;
  padding: 0.25rem 0.65rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.inbox-tool-btn:hover,
.inbox-tool-btn:focus-visible { background: var(--soft); }

.inbox-app .inbox-detail-body { min-width: 0; position: relative; }
.inbox-app .inbox-original-host {
  display: block;
  width: 100%;
  min-width: 0;
  background: #fff;
  overflow: hidden;
}
.inbox-app [data-inbox-prepared][hidden] { display: none !important; }
.inbox-app .inbox-empty-body { color: var(--muted, #5c6a72); margin: 0.5rem 0 0; }
.inbox-app .inbox-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.inbox-app .inbox-tool-btn[data-inbox-original-toggle][aria-pressed="true"] {
  background: var(--soft);
}
.inbox-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  margin: 0 0 0.75rem;
}
.inbox-detail-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}
.inbox-detail-bar .inbox-icon-btn,
.inbox-detail-bar .inbox-original-toggle {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
}
.inbox-detail-bar .inbox-original-toggle,
.inbox-detail-bar .inbox-icon-btn.inbox-original-toggle {
  width: auto;
  min-width: 32px;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.inbox-detail-bar .inbox-original-toggle[aria-pressed="true"] {
  background: var(--soft);
}
.inbox-detail-bar .inbox-icon-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.inbox-detail-bar-actions .inbox-icon-spacer {
  visibility: hidden;
  pointer-events: none;
}

.inbox-detail-bar .inbox-icon-btn,
button.inbox-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.inbox-detail-bar .inbox-icon-btn:hover,
button.inbox-detail-back:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.inbox-detail-bar .inbox-icon-btn.is-danger:hover,
.inbox-detail-bar .inbox-icon-btn.is-danger:focus-visible {
  color: #b42318;
  background: color-mix(in srgb, #b42318 8%, transparent);
}
html[data-theme="dark"] .inbox-detail-bar .inbox-icon-btn.is-danger:hover {
  color: #f97066;
  background: color-mix(in srgb, #f97066 12%, transparent);
}
.inbox-detail-bar .inbox-icon-btn.inbox-original-toggle,
.inbox-detail-bar button.inbox-original-toggle {
  width: auto;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}
.inbox-detail-bar .inbox-icon-btn.inbox-original-toggle:hover,
.inbox-detail-bar button.inbox-original-toggle:hover {
  color: var(--ink);
  background: var(--soft);
}
.inbox-detail-bar .inbox-icon-btn.inbox-original-toggle[aria-pressed="true"],
.inbox-detail-bar button.inbox-original-toggle[aria-pressed="true"] {
  background: var(--soft);
  border-color: color-mix(in srgb, var(--ink) 28%, var(--line));
}
.inbox-detail-head h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.inbox-detail-from {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.inbox-detail-email {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.3;
}
.inbox-detail-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.inbox-detail-head {
  margin: 0 0 0.75rem;
}
.inbox-detail-labels { margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.inbox-seg {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  gap: 0.15rem;
  margin: 1rem 0 0.75rem;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.inbox-seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 1.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.inbox-seg-btn.is-on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 28, 0.08);
}
.inbox-sum { margin: 0; max-width: 40rem; }
.inbox-sum-kicker,
.inbox-sum-pending {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #667078);
}
.inbox-sum-pending { text-transform: none; letter-spacing: 0; font-weight: 550; font-size: 0.9375rem; }
.inbox-sum-headline {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.inbox-sum-body {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
.inbox-sum-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin: 0 0 0.85rem;
}
.inbox-sum-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  align-items: stretch;
  min-width: 0;
  padding: 0;
  border: 0;
  border-bottom: 0;
}
.inbox-sum-row:last-child { border-bottom: 0; }
.inbox-sum-row dt {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 500;
  color: var(--muted);
}
.inbox-sum-row dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  min-width: 0;
}
.inbox-sum-val.is-tabular {
  font-variant-numeric: tabular-nums lining-nums;
}
.inbox-sum-row dd .inbox-sum-val[class*="id"],
.inbox-sum-row .is-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.inbox-sum-balls { display: inline-flex; flex-wrap: wrap; gap: 0.28rem; align-items: center; }
.inbox-sum-balls .ball { width: 1.75rem; height: 1.75rem; font-size: 0.7rem; }
.inbox-sum-action {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
}
.inbox-sum-action.is-none { color: var(--muted); }
.inbox-sum-action.is-needed {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  color: #8a5a00;
  background: color-mix(in srgb, var(--yellow, #f5c518) 28%, transparent);
}
html[data-theme="dark"] .inbox-sum-action.is-needed {
  color: #f5d47a;
  background: color-mix(in srgb, #f5c518 16%, transparent);
}
.inbox-sum-cta-wrap { margin: 0.75rem 0 0; }
.inbox-sum-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--card);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.875rem;
}
.inbox-sum-cta:hover { opacity: 0.92; }
.inbox-original-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  width: 100%;
  min-width: 0;
}
.inbox-original-card[hidden] {
  display: none !important;
}
.inbox-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 8;
  min-width: 12rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(16, 24, 28, 0.12);
}
.inbox-more-heading {
  margin: 0;
  padding: 0.35rem 0.55rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.inbox-more-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.55rem;
  border-radius: 0.4rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
}
.inbox-more-item:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.inbox-more-item.is-current { font-weight: 700; }
@media (max-width: 359px) {
  .inbox-sum-facts { grid-template-columns: 1fr; }
}

.inbox-app .inbox-smart {
  margin: 0;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 28, 0.04);
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.inbox-app .inbox-smart-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 0.85rem;
}
.inbox-app .inbox-smart-logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft, #eef2f4);
  border: 1px solid var(--line);
}
.inbox-app .inbox-smart-logo img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
}
.inbox-app .inbox-smart-head-text { min-width: 0; flex: 1; }
.inbox-app .inbox-smart-brand {
  margin: 0 0 0.15rem;
  color: var(--muted, #5c6a72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.inbox-app .inbox-smart-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
}
.inbox-app .inbox-smart-hero {
  margin: 0 0 0.9rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft, #eef2f4);
}
.inbox-app .inbox-smart-hero img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}
.inbox-app .inbox-smart-text {
  margin: 0 0 1rem;
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  white-space: normal;
}
.inbox-app .inbox-smart-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.6rem;
  margin: 0 0 1rem;
}
.inbox-app .inbox-smart-hl {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  background: var(--soft, #eef2f4);
  border-radius: 12px;
  min-width: 0;
}
.inbox-app .inbox-smart-hl-label {
  color: var(--muted, #5c6a72);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.inbox-app .inbox-smart-hl-value,
.inbox-app .inbox-smart-code {
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: break-all;
}
.inbox-app .inbox-smart-hl-code {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  overflow: visible;
  justify-content: space-between;
}
.inbox-app .inbox-smart-hl-code .inbox-smart-hl-label { width: 100%; }
.inbox-app .inbox-smart-code-row {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}
.inbox-app .inbox-smart-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  flex: 1 1 auto;
  min-width: 0;
}
.inbox-app .inbox-smart-copy {
  flex: 0 0 auto;
  margin-left: 0;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.inbox-app .inbox-smart-copy:hover,
.inbox-app .inbox-smart-copy:focus-visible { background: var(--soft); }
.inbox-app .inbox-smart-hl-win { background: color-mix(in srgb, #2f7d4a 14%, var(--card)); }
.inbox-app .inbox-smart-bonus,
.inbox-app .inbox-smart-section { margin: 0 0 0.9rem; }
.inbox-app .inbox-smart-bonus h4,
.inbox-app .inbox-smart-section h4 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5c6a72);
}
.inbox-app .inbox-smart-bonus ul,
.inbox-app .inbox-smart-section ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
}
.inbox-app .inbox-smart-bonus li,
.inbox-app .inbox-smart-section li {
  margin: 0 0 0.3rem;
  line-height: 1.45;
}
.inbox-app .inbox-smart-section p { margin: 0; line-height: 1.5; }
.inbox-app .inbox-smart-cta { margin: 0.2rem 0 0; }
.inbox-app .inbox-smart-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.4rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card, #fff);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.inbox-app .inbox-smart-cta a:hover,
.inbox-app .inbox-smart-cta a:focus-visible { filter: brightness(1.08); }
@media (max-width: 639px) {
  .inbox-app .inbox-smart { padding: 1rem; }
  .inbox-app .inbox-smart-title { font-size: 1.12rem; }
  .inbox-app .inbox-smart-code { font-size: 1.25rem; }
}
.inbox-app .inbox-smart-system { border-left: 3px solid #2a6f97; }
.inbox-app .inbox-smart-werbung { border-left: 3px solid #b58100; }
.inbox-app .inbox-smart-gewinn { border-left: 3px solid #2f7d4a; }
.inbox-app .inbox-smart-tipp { border-left: 3px solid #5b4cb0; }
.inbox-app .inbox-smart-sonstige { border-left: 3px solid #6a7a84; }

.inbox-app .inbox-smart-facts {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
  gap: 0.45rem 1rem;
  margin: 0.4rem 0 0;
}
.inbox-app .inbox-smart-facts > div { display: contents; }
.inbox-app .inbox-smart-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}
.inbox-app .inbox-smart-facts dd {
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.inbox-app .inbox-smart-nums {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .inbox-app .inbox-smart-facts {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
  .inbox-app .inbox-smart-facts > div { display: block; margin: 0 0 0.55rem; }
  .inbox-app .inbox-smart-facts dt { padding-top: 0; }
}

.inbox-app .inbox-tip-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  grid-column: 1 / -1;
}
.inbox-app .inbox-smart-facts .inbox-tip-grid { margin-top: 0.15rem; }
.inbox-app .inbox-tip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  min-width: 0;
}
.inbox-app .inbox-tip-label {
  flex: 0 0 auto;
  min-width: 3.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.inbox-app .inbox-tip-picks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  min-width: 0;
}
.inbox-app .inbox-tip-picks .balls { margin: 0; }
.inbox-app .inbox-tip-picks .balls-sm .ball {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}
.inbox-app .inbox-tip-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.inbox-app .inbox-tip-addon-k {
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.2rem;
}
@media (max-width: 640px) {
  .inbox-app .inbox-tip-label { min-width: 2.6rem; font-size: 0.7rem; }
  .inbox-app .inbox-tip-picks .balls-sm .ball {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }
}

html[data-theme="dark"] .tips-tab[aria-current="page"] {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .tips-row {
  box-shadow: none;
}




.inbox-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.65rem 0.9rem;
  background: var(--inv-bg);
  color: var(--inv-fg);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-size: 0.875rem;
  font-weight: 600;
}
.inbox-toast[hidden] { display: none; }
.inbox-toast-undo {
  font: inherit;
  font-weight: 700;
  color: var(--yellow);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
@media (min-width: 860px) {
  .inbox-row.is-demo-hover .inbox-row-actions { display: flex; }
  .inbox-row.is-demo-hover .inbox-row-btn { background: var(--card); }
  .inbox-row.is-demo-hover .inbox-row-date,
  .inbox-row.is-demo-hover .inbox-row-meta { visibility: hidden; }
}
@media (hover: hover) and (min-width: 860px) {
  .inbox-row:hover .inbox-row-actions,
  .inbox-row:focus-within .inbox-row-actions { display: flex; }
  .inbox-row:hover .inbox-row-date,
  .inbox-row:hover .inbox-row-meta,
  .inbox-row:focus-within .inbox-row-date,
  .inbox-row:focus-within .inbox-row-meta { visibility: hidden; }
}
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-row { border-bottom: 1px solid var(--line); }
.inbox-row-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "from date" "subject subject" "snippet snippet";
  column-gap: 0.7rem;
  row-gap: 0.08rem;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 0.48rem 0.8rem;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.inbox-row.is-unread .inbox-row-from,
.inbox-row.is-unread .inbox-row-subject { font-weight: 700; }
.inbox-row.is-selected { background: var(--soft); }
.inbox-row-btn:hover { background: var(--card); }
.inbox-row-from { grid-area: from; display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; line-height: 1.3; overflow: hidden; min-width: 0; }
.inbox-row-from { white-space: nowrap; }
.inbox-row-from > .inbox-chip { flex: 0 0 auto; max-width: 40%; }
.inbox-provider-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 3px;
  object-fit: contain;
  background: transparent;
}
.inbox-detail-from { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; min-width: 0; }
.inbox-detail-from .inbox-sender-line { display: inline-flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; min-width: 0; }
.inbox-detail-from .inbox-chip { flex: 0 0 auto; margin: 0; }
.inbox-tip-card.tips-row.is-static {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem 0.7rem;
  margin: 0 0 0.75rem;
}
.inbox-tip-card .tips-row-head { margin: 0; }
.inbox-tip-card .tips-row-facts {
  gap: 0.55rem 1.25rem;
}
.inbox-tip-card .tips-row-picks { gap: 0.3rem; }
.inbox-tip-card .tips-board-row { gap: 0.3rem 0.35rem; }
.inbox-tip-card .tips-row-picks .balls { gap: 0.28rem; }
.inbox-tip-card .tips-board-row .balls.is-extra,
.inbox-tip-card .tips-board-row .balls + .balls {
  margin-left: 0.4rem;
}
.inbox-tip-card .inbox-tip-addons {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.inbox-tip-card .tips-provider-line { gap: 0.5rem; }
.inbox-tip-card .tips-provider-name { font-weight: 700; }
.inbox-tip-open {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  margin: 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.inbox-tip-open:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.inbox-tip-card .tips-row-detail-body,
.inbox-sum-tips .tips-def { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem 0.85rem; }
@media (max-width: 639px) {
  .inbox-tip-card.tips-row.is-static {
    gap: 0.65rem;
    padding: 0.85rem 0.85rem 0.65rem;
  }
  .inbox-tip-card .tips-row-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
  }
  .inbox-tip-card .tips-kv:has(.tips-num-val) { grid-column: 1 / -1; }
  .inbox-sum-tips .tips-def { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.inbox-detail-from .inbox-provider-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.inbox-row-from .inbox-sender-name,
.inbox-detail-from .inbox-sender-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row-from .inbox-sender-line { flex: 0 1 auto; min-width: 0; }
.inbox-sender-line {
  display: inline-flex;
  align-items: center;
  gap: var(--tips-verified-gap, 0.25rem);
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}
.inbox-sender-line .inbox-sender-name { flex: 1 1 auto; }
.inbox-verified {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  color: #1d9bf0;
  line-height: 0;
  overflow: visible;
}
.inbox-verified-icon {
  display: block;
  width: 1em;
  height: 1em;
  overflow: visible;
  flex: none;
  shape-rendering: geometricPrecision;
}
.inbox-verified-check { fill: #fff; }
html.dark .inbox-verified, [data-theme="dark"] .inbox-verified { color: #1d9bf0; }
.inbox-detail-to { color: var(--muted); font-weight: 400; min-width: 0; }
.inbox-detail-to-addr { font-weight: 700; color: var(--ink); }

.inbox-row-main { display: contents; }
.inbox-row-subject { grid-area: subject; font-size: 0.875rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.inbox-row-snippet { grid-area: snippet; font-size: 0.8125rem; line-height: 1.3; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.inbox-row-side { display: contents; }
.inbox-row-date {
  grid-area: date;
  justify-self: end;
  align-self: start;
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.3;
  text-align: right;
}
.inbox-row-meta { display: none; }
.inbox-row.is-new { background: color-mix(in srgb, var(--yellow) 24%, var(--bg)); }
@media (prefers-reduced-motion: no-preference) {
  .inbox-row.is-new { animation: inbox-new-fade 8s ease forwards; }
}
@keyframes inbox-new-fade {
  0%, 35% { background: color-mix(in srgb, var(--yellow) 24%, var(--bg)); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .inbox-row.is-new { animation: none; }
}
.inbox-chip {
  display: inline-block;
  font-size: 0.6875rem;
  line-height: 1.2;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inbox-chip-gewinn { background: #e8f6ee; border-color: var(--green); }
.inbox-chip-einzahlung, .inbox-chip-auszahlung { background: var(--card); }
.inbox-chip-werbung { background: var(--soft); color: var(--muted); }

.inbox-chip-system, .inbox-chip-kundenservice { background: var(--card); }
.inbox-chip-quarantine { background: #f8e8e8; border-color: var(--red); color: var(--red); }
html[data-theme="dark"] .inbox-chip-gewinn { background: #163226; color: #cdebd9; }
html[data-theme="dark"] .inbox-chip-quarantine { background: #3a1c1c; }
.inbox-empty { margin: 1.5rem 0.9rem; color: var(--muted); }
.inbox-detail-pane { min-width: 0; padding: 1rem 1.25rem 2rem; background: var(--bg); }
.inbox-back {
  display: none;
  margin: 0 0 0.75rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.inbox-detail-head h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.inbox-detail-from, .inbox-detail-date, .inbox-label-source { margin: 0; color: var(--muted); font-size: 0.875rem; }
.inbox-detail-labels { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin: 0.6rem 0; }
.inbox-relabel { display: block; margin: 0.4rem 0 1rem; font-size: 0.875rem; }
.inbox-relabel select { margin-left: 0.4rem; font: inherit; }
.inbox-app .inbox-html, .inbox-app .inbox-text { font-size: 0.9375rem; overflow-wrap: anywhere; line-height: 1.55; }
.inbox-app .inbox-text { white-space: pre-wrap; font-family: var(--font); }
.inbox-app .inbox-html > p, .inbox-app .inbox-html > div { margin: 0 0 0.75em; }
.inbox-app .inbox-html > p:last-child, .inbox-app .inbox-html > div:last-child { margin-bottom: 0; }
.inbox-app .inbox-html table p, .inbox-app .inbox-html table div { margin: 0 0 0.4em; }
.inbox-app .inbox-html table p:last-child, .inbox-app .inbox-html table div:last-child { margin-bottom: 0; }
.inbox-app .inbox-html p:empty, .inbox-app .inbox-html h1:empty, .inbox-app .inbox-html h2:empty, .inbox-app .inbox-html h3:empty, .inbox-app .inbox-html div:empty { display: none; }
.inbox-app .inbox-html a, .inbox-app .inbox-text a { text-decoration: underline; }
.inbox-app .inbox-html table { border-collapse: collapse; max-width: 100%; }
.inbox-app .inbox-html img { max-width: 100%; height: auto; }
.inbox-app .inbox-html td, .inbox-app .inbox-html th { padding: 0.2em 0.5em; vertical-align: top; }
.inbox-app .inbox-blocked-img {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 0.15rem 0.4rem;
  margin: 0.2rem 0;
}
.inbox-app .inbox-html td:has(> .inbox-blocked-img:only-child),
.inbox-app .inbox-html td:has(> .inbox-blocked-img:only-child) .inbox-blocked-img,
.inbox-app .inbox-html > .inbox-blocked-img { display: none; }
.inbox-extracted {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin: 0 0 1rem;
}
.inbox-example { font-size: 0.8125rem; color: var(--muted); margin: 0 0 0.4rem; }
.inbox-username-locked code { font-size: 0.9375rem; }
@media (max-width: 859px) {
  .inbox-app.wrap { width: 100%; }
  .inbox-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 0;
  }
  .inbox-sidebar,
  .inbox-list-pane {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    grid-template-rows: none;
  }
  .inbox-mailbox,
  .inbox-list-head,
  .inbox-nav,
  .inbox-list-body { grid-row: auto; }
  .inbox-sidebar {
    display: none;
    position: absolute;
    z-index: 5;
    left: 0; right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-top: 0;
  }
  .inbox-app.sidebar-open .inbox-sidebar { display: flex; flex-direction: column; }
  .inbox-menu-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; font: inherit; font-size: 0.75rem; font-weight: 600; line-height: 1.2; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0.6rem; min-height: 30px; max-height: 30px; height: 30px; min-width: 0; cursor: pointer; position: relative; z-index: 6; }
  /* Open folder nav: do not stack the address on the folder title.
     Hide the title (and empty-trash) so only the mailbox + Filtern share the header row. */
  .inbox-app.sidebar-open .inbox-list-head {
    z-index: auto;
    background: transparent;
    border-bottom-color: transparent;
  }
  .inbox-app.sidebar-open .inbox-list-title-row,
  .inbox-app.sidebar-open .inbox-empty-trash,
  .inbox-app.sidebar-open .inbox-empty-folder {
    visibility: hidden;
    pointer-events: none;
  }
  .inbox-app.sidebar-open .inbox-mailbox {
    --inbox-mailbox-pad-right: 6.25rem; /* room for Filtern, same row, no overlap */
    padding-right: var(--inbox-mailbox-pad-right);
    border-bottom-color: var(--line);
  }
  .inbox-app.sidebar-open .inbox-mailbox-primary {
    align-items: center;
    width: max-content;
    max-width: 100%;
  }
  .inbox-app.sidebar-open .inbox-mailbox-row {
    width: max-content;
    max-width: 100%;
  }
  .inbox-app.sidebar-open .inbox-alias-panel {
    position: absolute;
    left: 0;
    right: auto;
    width: calc(100vw - var(--inbox-mailbox-pad-left) - var(--inbox-alias-nav-inset));
    min-width: 0;
    max-width: none;
  }
  .inbox-app.sidebar-open .inbox-copy-wrap {
    left: calc(100vw - var(--inbox-mailbox-pad-left) - var(--inbox-alias-nav-inset) - 1px - var(--inbox-alias-tooltip-gap) - var(--inbox-alias-copy-row-pad) - var(--inbox-alias-copy-col));
    right: auto;
  }
  .inbox-app.sidebar-open .inbox-mailbox-primary [data-inbox-mailbox-address] {
    flex: 0 1 auto;
    min-width: 0;
  }
  .inbox-list-pane { border-right: 0; }
  .inbox-app.has-detail .inbox-list-pane { display: none; }
  .inbox-detail-pane { padding: 0.75rem 1rem 2rem; }
  .inbox-back { display: inline-block; }
  .inbox-row-btn { padding: 0.42rem 0.7rem; }
}

/* ——— Meine Tipps (/tipps/) ——— */
.tips-app { max-width: var(--wrap); }
.tips-app .intro-compact { margin-bottom: 0.6rem; }
.tips-app .intro-compact h1 { margin-bottom: 0.25rem; }
.tips-app .intro-compact .lead { margin-bottom: 0; }
.tips-protect,
.tips-official,
.tips-upcoming {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 400;
}
.tips-official { margin-top: 1.25rem; margin-bottom: 0; }
.tips-protect { margin-top: 0.75rem; margin-bottom: 0; }
.tips-protect a {
  font-weight: 500;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tips-example-banner {
  margin: 0 0 0.7rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-weight: 700;
  font-size: 0.8125rem;
}
.tips-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  border-bottom: 0;
}
.tips-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.2rem;
  margin: 0;
  padding: 0.2rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}
.tips-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 40px;
  min-width: 0;
  padding: 0.2rem 0.45rem;
  border: 0;
  border-radius: 999px;
  margin: 0;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8125rem;
  background: transparent;
}
.tips-tab[aria-current="page"] {
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(42, 53, 60, 0.12);
  font-weight: 700;
}
.tips-toolbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  flex: 0 1 auto;
  margin-left: auto;
  min-width: 0;
}
.tips-period {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.tips-period-field { display: inline-flex; min-width: 0; position: relative; }
.tips-period-field::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  top: 50%;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.tips-period-select {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1;
  min-height: 32px;
  padding: 0.15rem 1.55rem 0.15rem 0.7rem;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
}
.tips-period-select:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--soft)); }
.tips-period-select:focus-visible {
  outline: 2px solid var(--accent, #0b6e99);
  outline-offset: 1px;
}
.tips-period-count {
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tips-add {
  flex: 0 0 auto;
  margin-left: 0;
  min-height: 32px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 650;
  border-radius: 999px;
  width: auto;
  white-space: nowrap;
}
.tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: 8px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.tips-row {
  --tips-pad-x: 1rem;
  --tips-verified-gap: 0.25rem;
  margin: 0;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 1px 1px rgba(42, 53, 60, 0.04);
}
.tips-row.is-example { outline: 1px dashed var(--line); }
.tips-row-link,
.tips-row-toggle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.75rem var(--tips-pad-x, 1rem);
  color: inherit;
  text-decoration: none;
}
button.tips-row-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
button.tips-row-toggle:focus-visible {
  outline: 2px solid var(--accent, #0b6e99);
  outline-offset: 2px;
  border-radius: 0.9rem;
}
.tips-row-chevron {
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.2s ease;
}
.tips-row.is-open .tips-row-chevron {
  transform: rotate(225deg);
}
.tips-row-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.tips-row.is-open .tips-row-panel {
  grid-template-rows: 1fr;
}
.tips-row-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 var(--tips-pad-x, 1rem);
}
.tips-row.is-open .tips-row-panel-inner {
  padding-bottom: 0.75rem;
}
.tips-row-detail-facts {
  padding-top: 0.15rem;
  border-top: 1px solid var(--line);
  gap: 0.7rem 1rem;
}
.tips-row-detail-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.tips-row-detail-body .tips-row-picks,
.tips-row-detail-body .tips-row-result,
.tips-row-detail-body .tips-row-mail { width: 100%; }
.tips-row-mail { margin: 0.2rem 0 0; }
.tips-mail-link { font-weight: 650; }
.tips-board-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 650;
}
.tips-row-picks .ball.is-hit,
.balls .ball.is-hit {
  background: var(--green, #1a7f37);
  border-color: transparent;
  color: #fff;
  font-weight: 800;
}
.tips-row-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}
.tips-row-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 auto;
}
.tips-row-organizer {
  display: block;
  margin-top: -0.2rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.3;
  min-width: 0;
}
.tips-row-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  width: 100%;
  min-width: 0;
}
@media (min-width: 640px) {
  .tips-row-facts {
    grid-template-columns: repeat(3, minmax(8rem, 14rem));
    justify-content: start;
    gap: 0.5rem 1.5rem;
  }
}
.tips-kv { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.tips-kv-label {
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 600;
}
.tips-kv-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  line-height: 1.25;
  overflow-wrap: normal;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
@media (max-width: 359px) {
  .tips-row-facts { gap: 0.35rem 0.4rem; }
  .tips-kv-value {
    font-size: 0.8125rem;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: hidden;
    line-height: 1.2;
  }
}
.tips-row-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 700;
}
.tips-row-result-main { min-width: 0; }
.tips-row-result.is-win { color: var(--green); }
.tips-row-result.is-settled,
.tips-row-result.is-muted,
.tips-row-result.is-cancelled { color: var(--muted); font-weight: 600; }
.tips-row-result.is-pending { color: var(--muted); }
.tips-game-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 2.7rem;
  box-sizing: border-box;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--ink) 88%, var(--card));
  color: var(--card);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tips-game-logo-abbr { font-size: 0.625rem; }
.tips-game-logo.is-6aus49 { background: #c8102e; color: #fff; border-color: transparent; }
.tips-game-logo.is-eurojackpot { background: #1a237e; color: #ffd54f; border-color: transparent; }
.tips-game-logo.is-keno { background: #0f766e; color: #fff; border-color: transparent; }
.tips-game-logo.is-gluecksspirale { background: #6d28d9; color: #fff; border-color: transparent; }
.tips-game-logo.is-spiel77 { background: #1d4ed8; color: #fff; border-color: transparent; }
.tips-game-logo.is-super6 { background: #b45309; color: #fff; border-color: transparent; }
.tips-game-logo.is-plus5 { background: #365314; color: #fff; border-color: transparent; }
.tips-game-logo.is-siegerchance { background: #9f1239; color: #fff; border-color: transparent; }
.tips-game-logo.is-silvester-millionen { background: #0f3d2e; color: #f5d76e; border-color: transparent; }
.tips-game-logo.is-fernsehlotterie { background: #1e3a8a; color: #fff; border-color: transparent; }
.tips-game-logo.is-aktion-mensch { background: #be123c; color: #fff; border-color: transparent; }
.tips-game-logo.is-postcode-lotterie { background: #0e7490; color: #fff; border-color: transparent; }
.tips-game-logo.is-freiheit-plus { background: #4338ca; color: #e0e7ff; border-color: transparent; }
.tips-game-logo.is-skl { background: #7c2d12; color: #fde68a; border-color: transparent; }
.tips-game-logo.is-nkl { background: #1e40af; color: #dbeafe; border-color: transparent; }
.tips-game-logo.is-millionenkracher { background: #7f1d1d; color: #fecaca; border-color: transparent; }
.tips-game-logo.is-bayernmillionen { background: #1e293b; color: #93c5fd; border-color: transparent; }
.tips-game-logo.is-silvesterlotterie-niedersachsen { background: #14532d; color: #bbf7d0; border-color: transparent; }
.tips-game-logo.is-neujahrs-million { background: #713f12; color: #fde68a; border-color: transparent; }
.tips-game-logo.is-hamburgs-silvestertraum { background: #155e75; color: #e0f2fe; border-color: transparent; }
.tips-game-logo.is-gluecksrakete { background: #c2410c; color: #ffedd5; border-color: transparent; }
.tips-game-logo.is-loteria-de-navidad { background: #881337; color: #fef3c7; border-color: transparent; }
.tips-game-logo.is-el-nino { background: #0369a1; color: #e0f2fe; border-color: transparent; }
.tips-game-logo.is-lotteria-italia { background: #166534; color: #dcfce7; border-color: transparent; }
.tips-game-logo.is-lotaria-do-natal { background: #9a3412; color: #ffedd5; border-color: transparent; }
.tips-game-logo.is-nenmatsu-jumbo { background: #5b21b6; color: #ede9fe; border-color: transparent; }
.tips-game-logo.is-hatsuyume-takarakuji { background: #115e59; color: #ccfbf1; border-color: transparent; }
.tips-game-logo.is-mega-da-virada { background: #065f46; color: #d1fae5; border-color: transparent; }
.tips-game-logo.is-gordo-de-navidad { background: #a16207; color: #fef9c3; border-color: transparent; }
.tips-game-logo.is-euromillions { background: #172554; color: #facc15; border-color: transparent; }
.tips-game-logo.is-uk-lotto { background: #9f1239; color: #ffe4e6; border-color: transparent; }
.tips-game-logo.is-la-primitiva { background: #15803d; color: #fff; border-color: transparent; }
.tips-game-logo.is-el-gordo { background: #92400e; color: #ffedd5; border-color: transparent; }
.tips-game-logo.is-superenalotto { background: #1e3a8a; color: #93c5fd; border-color: transparent; }
.tips-game-logo.is-lotto-6aus45 { background: #0f172a; color: #e2e8f0; border-color: transparent; }
.tips-game-logo.is-swiss-lotto { background: #991b1b; color: #fff; border-color: transparent; }
.tips-game-logo.is-loto-france { background: #1e3a8a; color: #fff; border-color: transparent; }
.tips-game-logo.is-lotto-polen { background: #dc2626; color: #fff; border-color: transparent; }
.tips-provider { display: inline-flex; align-items: center; }
.tips-provider-mark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: auto;
  height: 1.35rem;
  padding: 0 0.3rem;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1;
}
.tips-provider-icon { display: block; margin-bottom: 1px; }
.tips-provider-abbr {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.tips-row-body { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.tips-row-top {
  display: flex;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  flex-wrap: wrap;
}
.tips-row-game {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}
.tips-row-draw {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.tips-row-stake {
  margin-left: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  white-space: nowrap;
}
.tips-row-picks {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}
.tips-boards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
}
.tips-board-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
  width: 100%;
}
.tips-board-nr {
  flex: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tips-row-picks .balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  flex: 0 1 auto;
}
.tips-row-picks .balls-sm .ball {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.75rem;
}
.tips-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tips-more, .tips-muted { font-size: 0.75rem; color: var(--muted); }
.tips-ticket { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.06em; font-size: 0.9rem; }
.tips-row-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  min-height: 1.1rem;
}
.tips-row-flag { flex-shrink: 0;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  white-space: nowrap;
}
.tips-row-hits { font-weight: 600; opacity: 0.85; }
.tips-board-meta.is-zero { color: var(--muted); font-weight: 500; }
.tips-row-flag.is-active {
  background: color-mix(in srgb, var(--green) 18%, var(--card));
  color: var(--green);
}
.tips-row-flag.is-past,
.tips-row-flag.is-pending { color: var(--muted); font-weight: 700; }
.tips-row-flag.is-win { color: var(--green); }
.tips-row-flag.is-settled,
.tips-row-flag.is-muted,
.tips-row-flag.is-cancelled { color: var(--muted); font-weight: 600; }
.tips-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 2rem 1rem 2.25rem;
  border: 1px dashed var(--line);
  border-radius: 1.25rem;
  background: var(--soft);
}
.tips-empty-icon {
  display: flex;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.tips-empty-title { font-weight: 800; font-size: 1.1rem; margin: 0; }
.tips-empty-hint {
  margin: 0 0 0.7rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.tips-empty-cta { min-height: 32px; border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.8125rem; }
.tips-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.15rem;
}
.tips-kpis > span,
.tips-kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.45rem 0.6rem;
  min-width: 0;
}
.tips-kpi-label { display: block; font-size: 0.7rem; opacity: 0.75; line-height: 1.2; }
.tips-kpi-value { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.05rem; white-space: nowrap; }
.tips-kpis .is-pos .tips-kpi-value { color: var(--green); }
.tips-kpis .is-neg .tips-kpi-value { color: var(--red); }

.tips-kpi-note {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}
.tips-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  overflow: visible;
}
.tips-chart-zero { stroke: var(--line); stroke-width: 1; }
.tips-chart-stake { fill: var(--ink); fill-opacity: 0.72; }
.tips-chart-win { fill: var(--green); }
.tips-chart-balance { stroke: var(--ink); stroke-width: 1.8; }
.tips-chart-dot { fill: var(--ink); }
.tips-chart-label {
  font-size: 11px;
  fill: var(--muted);
  font-family: inherit;
}
.tips-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.tips-chart-legend li { display: flex; align-items: center; gap: 0.35rem; }
.tips-chart-legend li::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.72;
}
.tips-chart-legend .is-win::before { background: var(--green); opacity: 1; }
.tips-chart-legend .is-balance::before {
  width: 0.85rem;
  height: 0;
  border-radius: 0;
  border-top: 2px solid var(--ink);
  background: transparent;
  opacity: 1;
}
.tips-chart-empty { min-height: 4.5rem; display: flex; align-items: center; }
.tips-by-game { margin: 0 0 1rem; min-width: 0; }
.tips-by-game-title {
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}
.tips-by-game-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.tips-by-game-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.tips-by-game-table th,
.tips-by-game-table td {
  text-align: start;
  padding: 0.4rem 0.55rem 0.4rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tips-by-game-table th.amount,
.tips-by-game-table td.amount,
.tips-by-game-table th.num,
.tips-by-game-table td.num { text-align: end; padding-right: 0; padding-left: 0.55rem; }
.tips-by-game-table .amount { white-space: nowrap; }
.tips-by-game-name { font-weight: 650; hyphens: none; }
.tips-by-game-table .is-neg { color: var(--red); }
.tips-by-game-table .is-pos { color: var(--green); }
.tips-by-game-table tfoot th,
.tips-by-game-table tfoot td { font-weight: 700; background: transparent; border-bottom: 0; }

.tips-chart {
  margin: 0 0 1rem;
  padding: 0.6rem 0.55rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  min-width: 0;
}
.tips-bar-col { flex: 0 0 2.6rem; text-align: center; }
.tips-bars { display: flex; align-items: flex-end; justify-content: center; gap: 0.15rem; height: 72px; }
.tips-bar { display: block; width: 0.55rem; border-radius: 3px 3px 0 0; background: var(--ink); }
.tips-bar.is-win { background: var(--green); }
.tips-bar-label { display: block; margin-top: 0.2rem; font-size: 0.65rem; color: var(--muted); }
.tips-table { margin: 0 0 1rem; }
.tips-table caption { text-align: start; font-weight: 700; margin: 0 0 0.3rem; font-size: 0.875rem; }
.tips-table-wrap, [data-tips-app], .tips-main, .tips-list {
  min-width: 0;
  max-width: 100%;
}
.tips-table-wrap { width: 100%; }
.tips-table-game {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}
.tips-table-abbr { text-decoration: none; border-bottom: 1px dotted var(--muted); cursor: help; font-weight: 700; }
.tips-table-note { margin: -0.5rem 0 1rem; font-size: 0.8125rem; color: var(--muted); }
.tips-table .is-neg, .tips-table .is-neg .amount { color: var(--red); }
.tips-table .is-pos, .tips-table .is-pos .amount { color: var(--green); }
.tips-table tfoot th, .tips-table tfoot td { font-weight: 700; background: var(--soft); }
.cookies-table, .cookies-table th, .cookies-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.tips-row-actions { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tips-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.85rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  font-weight: 600;
}
.tips-toast[hidden] { display: none; }
.tips-toast-undo {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--on-yellow);
  border-radius: var(--radius);
  min-height: 36px;
  padding: 0.15rem 0.65rem;
  cursor: pointer;
}
.tips-toast.is-copy {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}
.tips-def {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
  margin: 0;
  width: 100%;
  min-width: 0;
}
@media (min-width: 640px) {
  .tips-def {
    grid-template-columns: repeat(3, minmax(8rem, 14rem));
    justify-content: start;
    gap: 0.5rem 1.5rem;
  }
}
.tips-def-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.125rem;
  padding: 0;
  border-bottom: 0;
  min-width: 0;
}
.tips-def-row.is-wide { grid-column: 1 / -1; }
.tips-def-row:last-child { border-bottom: 0; }
.tips-def-row dt {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.tips-def-row dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  white-space: normal;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: break-word;
}
.tips-num-val {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
  line-height: 1.45;
  min-width: 0;
  max-width: 100%;
}
.tips-def-row.is-wide .tips-num-val {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.tips-def-row .tips-provider-name {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}
.tips-provider-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
}
.tips-provider-line .tips-verified,
.tips-provider-name + .tips-verified {
  margin-inline-start: calc(var(--tips-verified-gap, 0.25rem) - 0.5rem);
}
.tips-provider-favicon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  box-sizing: border-box;
  border-radius: 0.2rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 88%, var(--card));
  color: var(--card);
}
.tips-provider-fallback {
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
}
.tips-provider-favicon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--card);
}
.tips-provider-favicon-wrap.is-empty { background: color-mix(in srgb, var(--ink) 88%, var(--card)); }
.tips-provider-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tips-verified { display: inline-flex; color: #1D9BF0; line-height: 0; flex: 0 0 auto; margin-inline-start: var(--tips-verified-gap, 0.25rem); }
.tips-verified-seal { display: block; }
.tips-source-meta {
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.tips-card-foot {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0;
  padding: 0.5rem 0 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.tips-card-foot-left {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}
.tips-mail-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
}
.tips-mail-quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.15em; }
.tips-card-actions {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.tips-delete {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  padding: 0.25rem 0.5rem;
  min-height: 1.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.tips-delete:hover,
.tips-delete:focus-visible {
  color: #b42318;
  background: color-mix(in srgb, #b42318 8%, transparent);
}
html[data-theme="dark"] .tips-delete:hover,
html[data-theme="dark"] .tips-delete:focus-visible {
  color: #f97066;
  background: color-mix(in srgb, #f97066 12%, transparent);
}
.tips-card-foot.is-confirming {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.tips-delete-confirm {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.65rem;
  width: 100%;
  min-width: 0;
}
.tips-delete-prompt {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.tips-delete-confirm-actions {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 0.375rem;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}
.tips-delete-go,
.tips-delete-cancel {
  appearance: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  min-height: 1.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.375rem;
  cursor: pointer;
}
.tips-delete-go {
  border: 0;
  background: #b42318;
  color: #fff;
}
.tips-delete-go:hover { background: #9b1c14; }
.tips-delete-cancel {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
.tips-delete-cancel:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
html[data-theme="dark"] .tips-delete-go,
html.dark .tips-delete-go {
  background: #e02d3c;
  color: #fff;
}
html[data-theme="dark"] .tips-delete-go:hover,
html.dark .tips-delete-go:hover { background: #f04452; }
.tips-addon-result {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
@media (max-width: 359px) {
  .tips-def { gap: 0.35rem 0.4rem; }
  .tips-card-foot.is-confirming,
  .tips-delete-confirm {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .tips-delete-prompt { white-space: normal; }
  .tips-delete-confirm-actions { margin-left: auto; }
}

.tips-facts { display: grid; gap: 0.4rem 1rem; margin: 0 0 0.85rem; }
@media (min-width: 640px) { .tips-facts { grid-template-columns: 1fr 1fr; } }
.tips-facts dt { font-size: 0.8rem; opacity: 0.75; }
.tips-facts dd { margin: 0; font-weight: 600; }
.tips-draw {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  margin: 0 0 0.6rem;
  background: var(--soft);
}
.tips-draw h3 { margin: 0 0 0.3rem; font-size: 0.95rem; }
/* t709: tip detail view. One compact note for draws without a result; on desktop a
   card like the list cards, facts as label-over-value grid (same pattern as .tips-kv). */
.tips-detail-note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}
.tips-detail-note-label { font-weight: 600; color: var(--ink); }
.tips-detail .tips-draw { margin: 0.6rem 0 0; }
.tips-detail .tips-draw .tips-row-picks { gap: 0.3rem; }
.tips-detail .tips-draw .tips-board-row { flex-wrap: wrap; }
.tips-detail .tips-draw .tips-board-meta { margin: 0; }
.tips-detail .tips-draw-numbers { padding-bottom: 0.3rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.tips-detail .tips-addon-result { margin-top: 0.3rem; }
.tips-detail .tips-card-foot { margin-top: 0.75rem; }
@media (min-width: 640px) {
  .tips-detail {
    max-width: 46rem;
    padding: 0.85rem 1.1rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--card);
    box-shadow: 0 1px 1px rgba(42, 53, 60, 0.04);
  }
  .tips-detail .tips-def {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem 1.5rem;
  }
  .tips-detail .tips-def-row {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.12rem;
    padding: 0;
  }
  .tips-detail .tips-def-row dt { font-size: 0.7rem; line-height: 1.2; font-weight: 600; letter-spacing: 0; }
  .tips-detail .tips-def-row dd { text-align: left; font-size: 0.95rem; font-weight: 700; }
  .tips-detail .tips-def-row dd .tips-num-val { font-size: 0.875rem; font-weight: 700; }
  .tips-detail-note { margin-top: 0.75rem; }
}
html[data-theme="dark"] .tips-detail { box-shadow: none; }
.tips-form { display: grid; gap: 0.85rem; margin: 0 0 2rem; }
.tips-field { display: grid; gap: 0.3rem; font-weight: 700; }
.tips-field input[type="text"],
.tips-field input[type="number"],
.tips-field input[type="date"],
.tips-field input[type="search"],
.tips-field select,
.tips-field textarea,
.tips-game-search {
  display: block;
  width: 100%;
  max-width: 28rem;
  min-height: 44px;
  padding: 4px 8px;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.tips-field textarea { min-height: 5.5rem; }
.tips-num-inputs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tips-field .tips-num-inputs input,
.tips-field .tips-num-inputs input[type="number"] {
  width: 3.4rem;
  max-width: 3.4rem;
  min-width: 3.4rem;
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}
.tips-weekdays, .tips-boards { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.8rem; margin: 0; }
.tips-weekdays { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; }
.tips-weekdays legend, .tips-boards legend { font-weight: 700; padding: 0 0.25rem; }
.tips-check { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; min-height: 44px; }
.tips-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); }
.tips-board {
  position: relative;
  padding: 0.5rem 2rem 0.5rem 0;
  margin: 0 0 0.6rem;
  border-bottom: 1px solid var(--line);
}
.tips-icon-btn {
  position: absolute;
  top: 0.4rem;
  right: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
}
.tips-form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tips-form-error { color: var(--ink); font-weight: 700; }
.tips-photo {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.tips-photo-hint,
.tips-photo-status { margin: 0; font-weight: 500; font-size: 0.875rem; line-height: 1.4; }
.tips-photo-hint { color: var(--muted); font-weight: 400; }
.tips-photo-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tips-photo-actions .btn { min-height: 44px; }
.tips-manual {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.tips-form.is-manual-open .tips-manual,
.tips-manual.is-open {
  grid-template-rows: 1fr;
}
.tips-manual-inner {
  overflow: hidden;
  min-height: 0;
  display: grid;
  gap: 0.85rem;
}

.tips-game-picker { position: relative; }
.tips-game-search {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}
.tips-game-search::-webkit-search-decoration,
.tips-game-search::-webkit-search-cancel-button,
.tips-game-search::-webkit-search-results-button,
.tips-game-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.tips-game-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-width: 28rem;
  max-height: min(18rem, 55dvh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0 0.75rem;
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.tips-game-group { padding: 0.15rem 0 0.35rem; }
.tips-game-group-label {
  margin: 0;
  padding: 0.45rem 0.75rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tips-game-option {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.tips-game-option:hover,
.tips-game-option:focus-visible,
.tips-game-option[aria-selected="true"] {
  background: var(--soft);
}
.tips-game-option.is-hidden,
.tips-game-group.is-hidden { display: none; }
.tips-money-input .tips-money-suffix { position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%); font-weight: 500; color: var(--muted); pointer-events: none; }
.tips-money-input.has-value .tips-money-suffix { right: 2.75rem; }
.tips-field .tips-money-input { width: 100%; max-width: 28rem; }
.tips-field .tips-money-input input[type="text"] { max-width: none; padding-inline-end: 4.25rem; }
.tips-fixed-info { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tips-stake-choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.tips-stake-choice > legend { font-weight: 700; padding: 0; margin-bottom: 0.3rem; }
.tips-stake-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tips-stake-option { position: relative; display: inline-flex; }
.tips-stake-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tips-stake-option span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; }
.tips-stake-option input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tips-stake-option input:focus-visible + span { outline: 2px solid var(--focus, var(--ink)); outline-offset: 2px; }
.tips-more-fields {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0.75rem;
  background: var(--card);
}
.tips-more-fields > summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}
.tips-more-fields > summary::-webkit-details-marker { display: none; }
.tips-more-fields[open] { padding-bottom: 0.75rem; }
.tips-more-fields [data-optional-meta],
.tips-form [data-required-meta] { display: grid; gap: 0.85rem; }
.tips-more-fields [data-optional-meta] { margin-top: 0.35rem; }
.tips-stake-hint { margin: 0; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
@media (prefers-color-scheme: dark) {
  .tips-game-list { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
}
.tips-main { min-width: 0; }
.tips-list.is-skeleton { pointer-events: none; }
.tips-skel-row { padding: 0.9rem 1rem; min-height: 5.5rem; }
.tips-skel-line {
  height: 0.7rem;
  margin: 0 0 0.55rem;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.12;
  width: 70%;
}
.tips-skel-line.tips-skel-wide { width: 88%; }
.tips-skel-line.tips-skel-short { width: 42%; margin-bottom: 0; }

.tips-photo-status.is-ok { font-weight: 700; }
.tips-photo-status.is-error { color: var(--red); font-weight: 700; }
.tips-photo-status.is-warn { color: var(--ink); font-weight: 700; }
.tips-photo-status.is-busy { color: var(--muted); }
.tips-photo-status.is-progress { display: grid; gap: 0.4rem; font-weight: 500; }
.tips-photo-progress { display: block; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tips-photo-progress > span { display: block; height: 100%; width: 12%; border-radius: inherit; background: var(--ink); transition: width 0.6s ease; }
.tips-photo-progress.is-step-1 > span { width: 22%; }
.tips-photo-progress.is-step-2 > span { width: 58%; }
.tips-photo-progress.is-step-3 > span { width: 86%; }
.tips-photo-step-n { color: var(--ink); font-weight: 600; margin-right: 0.25rem; }
.tips-photo-status.is-error { display: grid; gap: 0.5rem; justify-items: start; }
.tips-photo-tip { display: block; color: var(--muted); font-weight: 400; }
.tips-photo-retry { min-height: 44px; }
.tips-photo-summary { display: grid; gap: 0.35rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.tips-photo-summary[hidden] { display: none; }
.tips-photo-summary-title { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tips-photo-summary dl { margin: 0; display: grid; gap: 0; }
.tips-photo-row { display: grid; grid-template-columns: minmax(6.5rem, 34%) 1fr; align-items: center; gap: 0.75rem; min-height: 40px; border-bottom: 1px solid var(--line); }
.tips-photo-row:last-child { border-bottom: 0; }
.tips-photo-row dt { color: var(--muted); font-size: 0.875rem; }
.tips-photo-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-width: 0; }
.tips-photo-val { appearance: none; border: 0; background: none; padding: 0.35rem 0; margin: 0; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; min-height: 36px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tips-photo-val:hover { text-decoration: underline; text-underline-offset: 3px; }
.tips-photo-val:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.tips-photo-row.is-missing .tips-photo-val { color: var(--red); font-weight: 600; }
.tips-photo-flag { flex: none; font-size: 0.75rem; font-weight: 600; line-height: 1; padding: 0.3rem 0.5rem; border-radius: 999px; color: color-mix(in srgb, #8a6500 75%, var(--ink)); background: color-mix(in srgb, #b88700 14%, transparent); border: 1px solid color-mix(in srgb, #b88700 45%, transparent); }
.tips-photo-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.user-panel a.user-inbox-link,
.user-drawer-in a.user-inbox-link,
.user-panel a.user-tips-link,
.user-drawer-in a.user-tips-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 639px) {
  .tips-toolbar-row { align-items: stretch; }
  .tips-tabs { width: 100%; flex: 1 1 100%; }
  .tips-toolbar-end {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
    gap: 0.5rem;
  }
  .tips-period { flex: 1 1 auto; min-width: 0; margin-right: auto; }
  .tips-period-select { font-size: 0.75rem; padding: 0.15rem 1.4rem 0.15rem 0.55rem; }
  .tips-period-count { font-size: 0.75rem; }
  .tips-add {
    width: auto;
    justify-content: center;
    align-self: center;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .tips-tab { font-size: 0.75rem; padding: 0.2rem 0.3rem; }
  .tips-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tips-kpi-value { font-size: 0.9rem; }
  .tips-row-draw { flex: 1 1 auto; }
  .tips-row-link, .tips-row-toggle { padding: 0.85rem var(--tips-pad-x, 1rem); gap: 0.5rem; }
  .tips-game-logo { width: 2.35rem; height: 2.35rem; flex-basis: 2.35rem; }
  .tips-row-game { font-size: 1rem; }
  .tips-row-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem 0.5rem; }
  .tips-kv-value { font-size: 0.875rem; }
  .tips-row-picks .balls-sm .ball { width: 1.75rem; height: 1.75rem; font-size: 0.7rem; }
}
@media (max-width: 700px) {
  .tips-table-wrap .tips-table,
  .tips-table {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .tips-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .tips-table tbody, .tips-table tfoot, .tips-table tr {
    display: block;
    width: 100%;
  }
  .tips-table tr {
    margin: 0 0 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--card);
    box-shadow: 0 1px 2px rgba(42, 53, 60, 0.04);
  }
  .tips-table tfoot tr { background: var(--soft); }
  .tips-table th, .tips-table td {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.2rem 0;
    border-bottom: 0;
    background: transparent;
    white-space: normal;
    text-align: start;
    min-width: 0;
  }
  .tips-table th[scope="row"],
  .tips-table-game {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--line);
    hyphens: none;
    -webkit-hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }
  .tips-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    flex: 0 1 auto;
  }
  .tips-table td.num, .tips-table td.amount {
    font-variant-numeric: tabular-nums;
    text-align: end;
    white-space: nowrap;
  }
  .tips-table-note { margin: 0 0 1rem; }
}
@media (max-width: 390px) {
  .tips-num-inputs input { width: 3.1rem; max-width: 3.1rem; }
  .tips-table { font-size: 0.8rem; }
  .tips-kpis { gap: 0.3rem; }
  .tips-kpis > span { padding: 0.35rem 0.4rem; }
  .tips-row-link { padding: 0.8rem 0.8rem; }
  .tips-board-row { gap: 0.28rem 0.35rem; }
}

.nav-lottery-jp.is-unknown { font-weight: 600; }

/* t258: Dark-Mode-Hover der Menüs auf der gelben Kopfzeile – kein Weiß, Text bleibt --on-yellow.
   Light Mode bewusst unverändert. */
html[data-theme="dark"]:not(.preview-header-t259) .nav-desktop .nav-drop-trigger:hover,
html[data-theme="dark"]:not(.preview-header-t259) .nav-desktop .nav-drop-trigger:focus-within {
  background: rgba(42, 53, 60, 0.14);
  color: var(--on-yellow);
}
html[data-theme="dark"]:not(.preview-header-t259) .nav-desktop .nav-drop-trigger:hover > .nav-drop-link,
html[data-theme="dark"]:not(.preview-header-t259) .nav-desktop .nav-drop-trigger:hover > .nav-drop-toggle,
html[data-theme="dark"]:not(.preview-header-t259) .nav-desktop .nav-drop-trigger:focus-within > .nav-drop-link,
html[data-theme="dark"]:not(.preview-header-t259) .nav-desktop .nav-drop-trigger:focus-within > .nav-drop-toggle {
  background: transparent;
  color: inherit;
}
html[data-theme="dark"]:not(.preview-header-t259) .nav-desktop > a:hover:not([aria-current]),
html[data-theme="dark"]:not(.preview-header-t259) .site-head .nav .nav-drop-panel a:hover:not([aria-current]),
html[data-theme="dark"]:not(.preview-header-t259) .nav-drawer a:hover:not([aria-current]),
html[data-theme="dark"]:not(.preview-header-t259) .nav-drawer button.nav-drop-link:hover,
html[data-theme="dark"]:not(.preview-header-t259) .user-drawer-in a:hover,
html[data-theme="dark"]:not(.preview-header-t259) .user-drawer-in button:hover:not(.theme-switch) {
  background: rgba(42, 53, 60, 0.14);
  color: var(--on-yellow);
}
html[data-theme="dark"] .user-panel a:hover,
html[data-theme="dark"] .user-panel a:focus-visible,
html[data-theme="dark"] .user-panel button:hover,
html[data-theme="dark"] .user-panel button:focus-visible,
html[data-theme="dark"] .user-panel .user-theme-row:hover,
html[data-theme="dark"] .user-panel .user-theme-row:focus-within {
  background: color-mix(in srgb, var(--card) 80%, #fff 16%);
  color: var(--ink);
}

/* t259: Preview-only header chrome. Aktiv nur mit html.preview-header-t259
   (wird ausschließlich auf Preview-Hosts gesetzt). Zum Rückbau Klasse oder diesen Block entfernen.
   Gelb #f5da14 auf Anthrazit #12171a: Kontrast 12,8:1 (WCAG AA/AAA für normalen Text). */
html.preview-header-t259 {
  --header-bg: #12171a;
  --header-fg: #f5da14;
  --header-hover: #1c2429;
  --header-current-bg: #f5da14;
  --header-current-fg: #12171a;
  --header-border: rgba(245, 218, 20, 0.28);
}
html.preview-header-t259 .site-head,
html.preview-header-t259 .crumbs {
  background: var(--header-bg);
  color: var(--header-fg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}
html.preview-header-t259 .crumbs {
  border-top: 1px solid var(--header-border);
}
html.preview-header-t259 .site-head a,
html.preview-header-t259 .site-head .wordmark a,
html.preview-header-t259 .site-head .nav a,
html.preview-header-t259 .site-head button,
html.preview-header-t259 .site-head summary,
html.preview-header-t259 .crumbs a,
html.preview-header-t259 .crumbs span,
html.preview-header-t259 .crumbs li + li::before,
html.preview-header-t259 .nav a,
html.preview-header-t259 .nav button.nav-drop-link,
html.preview-header-t259 .nav-drop-toggle,
html.preview-header-t259 .user-signin,
html.preview-header-t259 .user-drawer-signin,
html.preview-header-t259 .user-menu > summary,
html.preview-header-t259 .notify-menu > summary,
html.preview-header-t259 .nav-menu-toggle,
html.preview-header-t259 .theme-toggle,
html.preview-header-t259 .lang-menu > summary,
html.preview-header-t259 .user-avatar,
html.preview-header-t259 .user-drawer-in,
html.preview-header-t259 .user-drawer-in a,
html.preview-header-t259 .user-drawer-in button,
html.preview-header-t259 .user-drawer-in .user-theme-row {
  color: var(--header-fg);
}
html.preview-header-t259 .site-head .nav .nav-drop-panel a {
  color: var(--header-fg) !important;
  background: transparent;
}
html.preview-header-t259 .nav-drop-panel,
html.preview-header-t259 .nav-menu[open] > .nav-drawer {
  background: var(--header-bg);
  color: var(--header-fg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
  border-top-color: var(--header-border);
}
html.preview-header-t259 .user-drawer-slot {
  border-bottom-color: var(--header-border);
}
html.preview-header-t259 .nav-lottery-jp { color: var(--header-fg); opacity: 0.92; }
html.preview-header-t259 .site-head .nav-menu-toggle,
html.preview-header-t259 .site-head .theme-toggle,
html.preview-header-t259 .site-head .notify-menu > summary,
html.preview-header-t259 .site-head .lang-menu > summary,
html.preview-header-t259 .site-head .user-menu > summary,
html.preview-header-t259 .site-head .user-signin,
html.preview-header-t259 .site-head .user-drawer-signin {
  color: var(--header-fg);
  background: transparent;
}
html.preview-header-t259 .user-avatar {
  background: transparent;
  color: var(--header-fg);
  border: 2px solid var(--header-fg);
  box-sizing: border-box;
}
html.preview-header-t259 .nav a[aria-current="page"],
html.preview-header-t259 .nav a[aria-current="true"],
html.preview-header-t259 .nav button.nav-drop-link[aria-current="true"],
html.preview-header-t259 .nav button.nav-drop-link[aria-current="page"],
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="page"]),
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="true"]),
html.preview-header-t259 .site-head .nav .nav-drop-panel a[aria-current="page"] {
  background: var(--header-current-bg);
  color: var(--header-current-fg) !important;
}
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="page"]) > .nav-drop-link,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="true"]) > .nav-drop-link,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="page"]) > .nav-drop-toggle,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="true"]) > .nav-drop-toggle {
  background: transparent;
  color: inherit;
}
html.preview-header-t259 .site-head .nav .nav-drop-panel a.nav-lottery-link[aria-current="page"] .nav-lottery-jp {
  color: var(--header-current-fg);
  opacity: 1;
}
html.preview-header-t259 .nav-desktop > a:hover:not([aria-current]),
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover,
html.preview-header-t259 .site-head .nav .nav-drop-panel a:hover:not([aria-current]),
html.preview-header-t259 .site-head .nav .nav-drop-panel a:focus-visible:not([aria-current]),
html.preview-header-t259 .nav-drawer a:hover:not([aria-current]),
html.preview-header-t259 .nav-drawer button.nav-drop-link:hover,
html.preview-header-t259 .user-signin:hover,
html.preview-header-t259 .user-signin:focus-visible,
html.preview-header-t259 .user-menu > summary:hover,
html.preview-header-t259 .user-menu > summary:focus-visible,
html.preview-header-t259 .user-menu[open] > summary,
html.preview-header-t259 .user-drawer-signin:hover,
html.preview-header-t259 .user-drawer-signin:focus-visible,
html.preview-header-t259 .notify-menu > summary:hover,
html.preview-header-t259 .notify-menu > summary:focus-visible,
html.preview-header-t259 .notify-menu[open] > summary,
html.preview-header-t259 .nav-menu-toggle:hover,
html.preview-header-t259 .nav-menu-toggle:focus-visible,
html.preview-header-t259 .nav-menu[open] > .nav-menu-toggle,
html.preview-header-t259 .theme-toggle:hover,
html.preview-header-t259 .theme-toggle:focus-visible,
html.preview-header-t259 .lang-menu > summary:hover,
html.preview-header-t259 .lang-menu[open] > summary,
html.preview-header-t259 .user-drawer-in a:hover,
html.preview-header-t259 .user-drawer-in button:hover:not(.theme-switch),
html.preview-header-t259 .user-drawer-in .user-theme-row:hover,
html.preview-header-t259 .crumbs a:hover,
html.preview-header-t259 .crumbs a:focus-visible {
  background: var(--header-hover);
  color: var(--header-fg);
  text-decoration: none;
}
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover > .nav-drop-link,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover > .nav-drop-toggle {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
html.preview-header-t259 .site-head :focus-visible,
html.preview-header-t259 .crumbs :focus-visible,
html.preview-header-t259 .site-head button.nav-drop-link:focus-visible,
html.preview-header-t259 .site-head .nav .nav-drop-panel a:focus-visible,
html.preview-header-t259 .lang-menu > summary:focus-visible,
html.preview-header-t259 .notify-menu > summary:focus-visible,
html.preview-header-t259 .nav-menu-toggle:focus-visible {
  outline-color: var(--header-fg);
  box-shadow: 0 0 0 3px var(--header-bg), 0 0 0 6px var(--header-fg);
}
html.preview-header-t259 .user-drawer-in .theme-switch {
  border-color: var(--header-fg);
  background: var(--header-hover);
}
html.preview-header-t259 .user-drawer-in .theme-switch::after { background: var(--header-fg); }
html.preview-header-t259 .user-drawer-in .theme-switch[aria-checked="true"] {
  background: var(--header-fg);
  border-color: var(--header-fg);
}
html.preview-header-t259 .user-drawer-in .theme-switch[aria-checked="true"]::after {
  background: var(--header-bg);
}
/* Offene Benutzer-/Sprach-/Hinweis-Panels bleiben themenabhängig lesbar, nicht gelb auf Anthrazit. */
html.preview-header-t259 .user-panel,
html.preview-header-t259 .lang-panel,
html.preview-header-t259 .notify-panel {
  background: var(--card);
  color: var(--ink);
}
html.preview-header-t259 .user-panel::after,
html.preview-header-t259 .notify-panel::after {
  border-bottom-color: var(--card);
  filter: drop-shadow(0 -1px 0 var(--line));
}
html.preview-header-t259 .user-panel a,
html.preview-header-t259 .user-panel button,
html.preview-header-t259 .user-panel .user-panel-name,
html.preview-header-t259 .lang-panel a,
html.preview-header-t259 .notify-panel,
html.preview-header-t259 .notify-panel .notify-title,
html.preview-header-t259 .notify-panel p,
html.preview-header-t259 .notify-panel a,
html.preview-header-t259 .notify-panel .notify-item-link,
html.preview-header-t259 .notify-panel .notify-lottery-link,
html.preview-header-t259 .notify-panel .notify-clear,
html.preview-header-t259 .notify-panel .notify-dismiss {
  color: var(--ink);
}
html.preview-header-t259 .user-panel .user-avatar {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--on-yellow);
}

/* t294: Hauptnavigation im dunklen Header — Ruhezustand hellgrau, Hover/Fokus gelb.
   Aktive Pill, Logo, Glocke, User-Icon und Footer bleiben unverändert. */
html.preview-header-t259 {
  --header-nav: #c9ced2;
}
html.preview-header-t259 .nav-desktop > a:not([aria-current]),
html.preview-header-t259 .nav-desktop .nav-drop-trigger:not(:has(> [aria-current])) > .nav-drop-link,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:not(:has(> [aria-current])) > .nav-drop-toggle,
html.preview-header-t259 .nav-drawer > a:not([aria-current]),
html.preview-header-t259 .nav-drawer .nav-drop-link:not([aria-current]),
html.preview-header-t259 .nav-drawer button.nav-drop-link:not([aria-current]),
html.preview-header-t259 .nav-drawer .nav-drop-toggle,
html.preview-header-t259 .nav-drawer .nav-drop-panel a:not([aria-current]),
html.preview-header-t259 .site-head .nav .nav-drop-panel a:not([aria-current]) .nav-lottery-name,
html.preview-header-t259 .nav-drawer .nav-drop-panel a:not([aria-current]) .nav-lottery-name,
html.preview-header-t259 .site-head .nav .nav-drop-panel a:not([aria-current]) .nav-lottery-jp,
html.preview-header-t259 .nav-drawer .nav-drop-panel a:not([aria-current]) .nav-lottery-jp,
html.preview-header-t259 .nav-drawer a.nav-lottery-link:not([aria-current]) .nav-lottery-name,
html.preview-header-t259 .nav-drawer a.nav-lottery-link:not([aria-current]) .nav-lottery-jp,
html.preview-header-t259 .nav-lottery-jp.is-unknown {
  color: var(--header-nav);
}
html.preview-header-t259 .site-head .nav .nav-drop-panel a:not([aria-current]) {
  color: var(--header-nav) !important;
}
html.preview-header-t259 .nav-desktop > a:hover:not([aria-current]),
html.preview-header-t259 .nav-desktop > a:focus-visible:not([aria-current]),
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:focus-within,
html.preview-header-t259 .nav-drawer > a:hover:not([aria-current]),
html.preview-header-t259 .nav-drawer > a:focus-visible:not([aria-current]),
html.preview-header-t259 .nav-drawer .nav-drop-link:hover:not([aria-current]),
html.preview-header-t259 .nav-drawer .nav-drop-link:focus-visible:not([aria-current]),
html.preview-header-t259 .nav-drawer button.nav-drop-link:hover,
html.preview-header-t259 .nav-drawer button.nav-drop-link:focus-visible,
html.preview-header-t259 .nav-drawer .nav-drop-panel a:hover:not([aria-current]),
html.preview-header-t259 .nav-drawer .nav-drop-panel a:focus-visible:not([aria-current]),
html.preview-header-t259 .nav-drawer a.nav-lottery-link:hover:not([aria-current]),
html.preview-header-t259 .nav-drawer a.nav-lottery-link:focus-visible:not([aria-current]) {
  color: var(--header-fg);
}
html.preview-header-t259 .site-head .nav .nav-drop-panel a:hover:not([aria-current]),
html.preview-header-t259 .site-head .nav .nav-drop-panel a:focus-visible:not([aria-current]) {
  color: var(--header-fg) !important;
}
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover > .nav-drop-link,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover > .nav-drop-toggle,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:focus-within > .nav-drop-link,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:focus-within > .nav-drop-toggle {
  color: inherit;
}
html.preview-header-t259 .site-head .nav .nav-drop-panel a:hover:not([aria-current]) .nav-lottery-name,
html.preview-header-t259 .site-head .nav .nav-drop-panel a:hover:not([aria-current]) .nav-lottery-jp,
html.preview-header-t259 .site-head .nav .nav-drop-panel a:focus-visible:not([aria-current]) .nav-lottery-name,
html.preview-header-t259 .site-head .nav .nav-drop-panel a:focus-visible:not([aria-current]) .nav-lottery-jp,
html.preview-header-t259 .nav-drawer a.nav-lottery-link:hover:not([aria-current]) .nav-lottery-name,
html.preview-header-t259 .nav-drawer a.nav-lottery-link:hover:not([aria-current]) .nav-lottery-jp,
html.preview-header-t259 .nav-drawer a.nav-lottery-link:focus-visible:not([aria-current]) .nav-lottery-name,
html.preview-header-t259 .nav-drawer a.nav-lottery-link:focus-visible:not([aria-current]) .nav-lottery-jp,
html.preview-header-t259 .nav-drawer .nav-drop-panel a:hover:not([aria-current]) .nav-lottery-name,
html.preview-header-t259 .nav-drawer .nav-drop-panel a:hover:not([aria-current]) .nav-lottery-jp,
html.preview-header-t259 .nav-drawer .nav-drop-panel a:focus-visible:not([aria-current]) .nav-lottery-name,
html.preview-header-t259 .nav-drawer .nav-drop-panel a:focus-visible:not([aria-current]) .nav-lottery-jp {
  color: var(--header-fg);
}

/* t296: Im dunklen Header bleibt nur der Logo-Text gelb. Alle anderen Header-
   Steuerelemente sind im Ruhezustand hellgrau und bei Hover/Fokus gelb.
   Aktive Pill, Ungelesen-Badge, Dropdown-Panels und Footer unverändert. */
html.preview-header-t259 .site-head {
  color: var(--header-nav);
}
html.preview-header-t259 .site-head .wordmark a,
html.preview-header-t259 .site-head .wordmark a:hover,
html.preview-header-t259 .site-head .wordmark a:focus-visible {
  color: var(--header-fg);
}
html.preview-header-t259 .site-head .user-signin,
html.preview-header-t259 .site-head .user-drawer-signin,
html.preview-header-t259 .site-head .user-menu > summary,
html.preview-header-t259 .site-head .notify-menu > summary,
html.preview-header-t259 .site-head .nav-menu-toggle,
html.preview-header-t259 .site-head .theme-toggle,
html.preview-header-t259 .site-head .user-menu > summary .user-avatar,
html.preview-header-t259 .site-head .header-tools .user-slot .user-avatar {
  color: var(--header-nav);
}
html.preview-header-t259 .site-head .user-menu > summary .user-avatar,
html.preview-header-t259 .site-head .header-tools .user-slot .user-avatar {
  border-color: var(--header-nav);
  background: transparent;
}
html.preview-header-t259 .site-head .user-signin:hover,
html.preview-header-t259 .site-head .user-signin:focus-visible,
html.preview-header-t259 .site-head .user-drawer-signin:hover,
html.preview-header-t259 .site-head .user-drawer-signin:focus-visible,
html.preview-header-t259 .site-head .user-menu > summary:hover,
html.preview-header-t259 .site-head .user-menu > summary:focus-visible,
html.preview-header-t259 .site-head .user-menu[open] > summary,
html.preview-header-t259 .site-head .notify-menu > summary:hover,
html.preview-header-t259 .site-head .notify-menu > summary:focus-visible,
html.preview-header-t259 .site-head .notify-menu[open] > summary,
html.preview-header-t259 .site-head .nav-menu-toggle:hover,
html.preview-header-t259 .site-head .nav-menu-toggle:focus-visible,
html.preview-header-t259 .site-head .nav-menu[open] > .nav-menu-toggle,
html.preview-header-t259 .site-head .theme-toggle:hover,
html.preview-header-t259 .site-head .theme-toggle:focus-visible {
  color: var(--header-fg);
}
html.preview-header-t259 .site-head .user-menu > summary:hover .user-avatar,
html.preview-header-t259 .site-head .user-menu > summary:focus-visible .user-avatar,
html.preview-header-t259 .site-head .user-menu[open] > summary .user-avatar {
  color: var(--header-fg);
  border-color: var(--header-fg);
}

/* t260: notification badge, list, and modest bell wobble (respect reduced motion). */
.notify-menu > summary .summary-inner { position: relative; }
/* t283: readable unread badges — 20px, 12px/700, anthracite on yellow, AA 12.8:1, fine ring */
.notify-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin: 0;
  padding: 0 5px;
  border: 0;
  border-radius: 999px;
  background: #f5da14;
  color: #12171a;
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 1px #12171a, 0 0 0 2px #f5da14;
  pointer-events: none;
}
.notify-badge {
  position: absolute;
  top: 2px;
  right: 1px;
}
html.preview-header-t259 .notify-badge {
  background: #f5da14;
  color: #12171a;
}
/* t291/t293: no unread count on the user icon; oval inbox count lives in the menu */
.user-menu-badge {
  display: none !important;
}
.notify-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
}
.notify-panel .notify-head .notify-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.notify-clear {
  appearance: none;
  flex: 0 0 auto;
  box-sizing: content-box;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}
.notify-clear:hover,
.notify-clear:focus-visible {
  text-decoration-thickness: 2px;
}
.notify-clear:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.notify-clear[hidden] { display: none !important; }
.notify-list {
  list-style: none;
  /* Backgrounds hang left (and a bit right) of the title/text start. */
  margin: 0 -8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(50vh, 18rem);
  overflow: auto;
}
.notify-item {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  padding: 6px 4px 6px 8px;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 600;
  background: rgba(42, 53, 60, 0.06);
  color: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.notify-item.is-unread {
  background: rgba(42, 53, 60, 0.12);
  box-shadow: inset 3px 0 0 currentColor;
}
.notify-item-body {
  flex: 1 1 auto;
  min-width: 0;
}
.notify-item .notify-item-link,
.notify-item-body > a.notify-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
  font: inherit;
}
.notify-item .notify-item-link:hover,
.notify-item .notify-item-link:focus-visible,
.notify-item-body > a.notify-item-link:hover,
.notify-item-body > a.notify-item-link:focus-visible {
  text-decoration: underline;
}
.notify-item .notify-lottery-link {
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline;
}
.notify-item .notify-lottery-link:hover,
.notify-item .notify-lottery-link:focus-visible {
  text-decoration-thickness: 2px;
}
.notify-item .notify-lottery-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}
.notify-dismiss {
  appearance: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  margin: -2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 0;
  opacity: 0;
  cursor: pointer;
  line-height: 0;
  box-shadow: none;
}
.notify-dismiss svg {
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.notify-item:hover .notify-dismiss,
.notify-item:focus-within .notify-dismiss,
.notify-dismiss:focus-visible {
  opacity: 0.72;
}
.notify-dismiss:hover,
.notify-dismiss:focus-visible {
  opacity: 1;
  background: rgba(42, 53, 60, 0.1);
}
.notify-dismiss:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}
@media (hover: none), (pointer: coarse) {
  .notify-dismiss { opacity: 0.45; }
}
@media (max-width: 859px) {
  .notify-dismiss { opacity: 0.45; }
}
.notify-empty { margin: 0; font-size: 0.875rem; }
.notify-empty[hidden] { display: none !important; }
.notify-panel {
  min-width: 13.75rem;
  width: max-content;
  max-width: min(18rem, calc(100vw - 24px));
  white-space: normal;
}
@media (max-width: 859px) {
  .notify-menu[open] > .notify-panel,
  .user-menu[open] > .user-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: none;
    top: calc(var(--header-h, 56px) + env(safe-area-inset-top, 0px) + 4px);
    z-index: 80;
  }
  .notify-menu[open] > .notify-panel::after,
  .user-menu[open] > .user-panel::after { display: none; }
}
@keyframes notify-bell-wobble {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  35% { transform: rotate(-12deg); }
  55% { transform: rotate(8deg); }
  75% { transform: rotate(-5deg); }
}
.notify-menu .icon-bell.is-ringing {
  transform-origin: 50% 8%;
  animation: notify-bell-wobble 0.7s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .notify-menu .icon-bell.is-ringing { animation: none; }
}
html.preview-header-t259 .notify-item {
  background: color-mix(in srgb, var(--ink) 8%, var(--card));
  color: var(--ink);
}
html.preview-header-t259 .notify-item.is-unread {
  background: color-mix(in srgb, var(--ink) 14%, var(--card));
}

/* t272: Active/hover nav pill in the dark header is 6px shorter, vertically
   centered on the label. Width and radius stay the same. 44px hit target kept. */
html.preview-header-t259 .nav-desktop > a,
html.preview-header-t259 .nav-desktop .nav-drop-trigger,
html.preview-header-t259 .nav-drawer a,
html.preview-header-t259 .nav-drawer button.nav-drop-link,
html.preview-header-t259 .site-head .nav .nav-drop-panel a {
  position: relative;
  isolation: isolate;
}
html.preview-header-t259 .nav-desktop > a::before,
html.preview-header-t259 .nav-desktop .nav-drop-trigger::before,
html.preview-header-t259 .nav-drawer a::before,
html.preview-header-t259 .nav-drawer button.nav-drop-link::before,
html.preview-header-t259 .site-head .nav .nav-drop-panel a::before {
  content: "";
  position: absolute;
  inset: 3px 0;
  border-radius: var(--radius);
  background: transparent;
  pointer-events: none;
  z-index: -1;
}
html.preview-header-t259 .nav a[aria-current="page"],
html.preview-header-t259 .nav a[aria-current="true"],
html.preview-header-t259 .nav button.nav-drop-link[aria-current="true"],
html.preview-header-t259 .nav button.nav-drop-link[aria-current="page"],
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="page"]),
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="true"]),
html.preview-header-t259 .site-head .nav .nav-drop-panel a[aria-current="page"] {
  background: transparent;
}
html.preview-header-t259 .nav a[aria-current="page"]::before,
html.preview-header-t259 .nav a[aria-current="true"]::before,
html.preview-header-t259 .nav button.nav-drop-link[aria-current="true"]::before,
html.preview-header-t259 .nav button.nav-drop-link[aria-current="page"]::before,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="page"])::before,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="true"])::before,
html.preview-header-t259 .site-head .nav .nav-drop-panel a[aria-current="page"]::before {
  background: var(--header-current-bg);
}
html.preview-header-t259 .nav-desktop > a:hover:not([aria-current]),
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover,
html.preview-header-t259 .site-head .nav .nav-drop-panel a:hover:not([aria-current]),
html.preview-header-t259 .site-head .nav .nav-drop-panel a:focus-visible:not([aria-current]),
html.preview-header-t259 .nav-drawer a:hover:not([aria-current]),
html.preview-header-t259 .nav-drawer button.nav-drop-link:hover {
  background: transparent;
}
html.preview-header-t259 .nav-desktop > a:hover:not([aria-current])::before,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover::before,
html.preview-header-t259 .site-head .nav .nav-drop-panel a:hover:not([aria-current])::before,
html.preview-header-t259 .site-head .nav .nav-drop-panel a:focus-visible:not([aria-current])::before,
html.preview-header-t259 .nav-drawer a:hover:not([aria-current])::before,
html.preview-header-t259 .nav-drawer button.nav-drop-link:hover::before {
  background: var(--header-hover);
}
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="page"])::before,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="true"])::before {
  background: var(--header-current-bg);
}
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current]) > .nav-drop-link,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current]) > .nav-drop-toggle,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover > .nav-drop-link,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:hover > .nav-drop-toggle {
  background: transparent;
}

/* t273: Active main-nav item + hover — slightly darker gold pill so the
   hover is visible, text stays anthracite. Contrast 10,1:1 (WCAG AA/AAA).
   Discreet vs active #f5da14 (12,8:1). Same in Light and Dark (header chrome). */
html.preview-header-t259 {
  --header-current-hover-bg: #dcc20c;
  --header-muted: #d9d0a8;
}
html.preview-header-t259 .nav-desktop > a[aria-current="page"]:hover,
html.preview-header-t259 .nav-desktop > a[aria-current="true"]:hover,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="page"]):hover,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="true"]):hover,
html.preview-header-t259 .nav-drawer a[aria-current="page"]:hover,
html.preview-header-t259 .nav-drawer a[aria-current="true"]:hover,
html.preview-header-t259 .nav-drawer button.nav-drop-link[aria-current="page"]:hover,
html.preview-header-t259 .nav-drawer button.nav-drop-link[aria-current="true"]:hover,
html.preview-header-t259 .site-head .nav .nav-drop-panel a[aria-current="page"]:hover {
  color: var(--header-current-fg) !important;
  text-decoration: none;
  background: transparent;
}
html.preview-header-t259 .nav-desktop > a[aria-current="page"]:hover::before,
html.preview-header-t259 .nav-desktop > a[aria-current="true"]:hover::before,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="page"]):hover::before,
html.preview-header-t259 .nav-desktop .nav-drop-trigger:has(> [aria-current="true"]):hover::before,
html.preview-header-t259 .nav-drawer a[aria-current="page"]:hover::before,
html.preview-header-t259 .nav-drawer a[aria-current="true"]:hover::before,
html.preview-header-t259 .nav-drawer button.nav-drop-link[aria-current="page"]:hover::before,
html.preview-header-t259 .nav-drawer button.nav-drop-link[aria-current="true"]:hover::before,
html.preview-header-t259 .site-head .nav .nav-drop-panel a[aria-current="page"]:hover::before {
  background: var(--header-current-hover-bg);
}

/* t274: Footer matches the dark header — anthracite ground, yellow headings
   / links / icons, light gray-yellow body (#d9d0a8, 11,6:1). No white hover. */
html.preview-header-t259 .foot {
  background: var(--header-bg);
  color: var(--header-muted);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55);
}
html.preview-header-t259 .foot a,
html.preview-header-t259 .foot .foot-col-title,
html.preview-header-t259 .foot .foot-col-toggle,
html.preview-header-t259 .foot .foot-nav,
html.preview-header-t259 .foot .foot-nav-sep,
html.preview-header-t259 .foot .lang-menu > summary,
html.preview-header-t259 .foot .legal-acc > summary,
html.preview-header-t259 .foot .legal-acc a,
html.preview-header-t259 .foot .foot-legal a,
html.preview-header-t259 .foot .foot-legal-line a,
html.preview-header-t259 .foot .hinweis a,
html.preview-header-t259 .foot .schutz a,
html.preview-header-t259 .foot .datenschutz a,
html.preview-header-t259 .foot .schutz strong {
  color: var(--header-fg);
}
html.preview-header-t259 .foot p,
html.preview-header-t259 .foot .foot-legal-line,
html.preview-header-t259 .foot .foot-copy,
html.preview-header-t259 .foot .foot-noplay,
html.preview-header-t259 .foot .foot-stand,
html.preview-header-t259 .foot .foot-meta,
html.preview-header-t259 .foot .foot-short,
html.preview-header-t259 .foot .legal-acc,
html.preview-header-t259 .foot .legal-acc p,
html.preview-header-t259 .foot .hinweis,
html.preview-header-t259 .foot .schutz,
html.preview-header-t259 .foot .datenschutz {
  color: var(--header-muted);
}
html.preview-header-t259 .foot a:hover,
html.preview-header-t259 .foot a:focus-visible,
html.preview-header-t259 .foot .foot-col-toggle:hover,
html.preview-header-t259 .foot .foot-col-toggle:focus-visible,
html.preview-header-t259 .foot .legal-acc > summary:hover,
html.preview-header-t259 .foot .legal-acc > summary:focus-visible,
html.preview-header-t259 .foot .lang-menu > summary:hover,
html.preview-header-t259 .foot .lang-menu > summary:focus-visible,
html.preview-header-t259 .foot .lang-menu[open] > summary {
  background: var(--header-hover);
  color: var(--header-fg);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
html.preview-header-t259 .foot .legal-acc a:hover,
html.preview-header-t259 .foot .legal-acc a:focus-visible,
html.preview-header-t259 .foot .foot-legal a:hover,
html.preview-header-t259 .foot .foot-legal a:focus-visible,
html.preview-header-t259 .foot .foot-legal-line a:hover,
html.preview-header-t259 .foot .foot-legal-line a:focus-visible,
html.preview-header-t259 .foot .hinweis a:hover,
html.preview-header-t259 .foot .hinweis a:focus-visible,
html.preview-header-t259 .foot .schutz a:hover,
html.preview-header-t259 .foot .schutz a:focus-visible,
html.preview-header-t259 .foot .datenschutz a:hover,
html.preview-header-t259 .foot .datenschutz a:focus-visible {
  background: transparent;
  color: #f8e445;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
html.preview-header-t259 .foot :focus-visible,
html.preview-header-t259 .foot .legal-acc > summary:focus-visible,
html.preview-header-t259 .foot .lang-menu > summary:focus-visible {
  outline-color: var(--header-fg);
  box-shadow: 0 0 0 3px var(--header-bg), 0 0 0 6px var(--header-fg);
}
html.preview-header-t259 .foot .legal-acc {
  background: transparent;
  border-color: var(--header-border);
}
html.preview-header-t259 .foot .lang-panel,
html.preview-header-t259 .foot-lang-menu .lang-panel {
  background: var(--header-bg);
  color: var(--header-fg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
  border-color: var(--header-border);
}
html.preview-header-t259 .foot .lang-panel a,
html.preview-header-t259 .foot .lang-panel a:hover,
html.preview-header-t259 .foot .lang-panel a:focus-visible {
  color: var(--header-fg);
}
html.preview-header-t259 .foot .lang-panel a:hover,
html.preview-header-t259 .foot .lang-panel a:focus-visible {
  background: var(--header-hover);
  text-decoration: none;
}
html.preview-header-t259 .foot .lang-panel a[aria-current="true"] {
  background: var(--header-current-bg);
  color: var(--header-current-fg) !important;
  text-decoration: none;
}
@media (max-width: 859px) {
  html.preview-header-t259 .foot-col {
    border-bottom-color: var(--header-border);
  }
}

/* t275: Avatar user-menu entries — hover/focus-visible use header anthracite
   (#12171a) with yellow (#f5da14) text and icons, Light and Dark. */
html.preview-header-t259 .user-panel a:hover,
html.preview-header-t259 .user-panel a:focus-visible,
html.preview-header-t259 .user-panel button:hover,
html.preview-header-t259 .user-panel button:focus-visible,
html.preview-header-t259 .user-panel .user-theme-row:hover,
html.preview-header-t259 .user-panel .user-theme-row:focus-within {
  background: var(--header-bg, #12171a);
  color: var(--header-fg, #f5da14);
  text-decoration: none;
}
html.preview-header-t259 .user-panel a:hover svg,
html.preview-header-t259 .user-panel a:focus-visible svg,
html.preview-header-t259 .user-panel button:hover svg,
html.preview-header-t259 .user-panel button:focus-visible svg,
html.preview-header-t259 .user-panel a:hover .user-logout-icon,
html.preview-header-t259 .user-panel a:focus-visible .user-logout-icon,
html.preview-header-t259 .user-panel .user-logout-btn:hover .user-logout-icon,
html.preview-header-t259 .user-panel .user-logout-btn:focus-visible .user-logout-icon,
html.preview-header-t259 .user-panel a:hover .icon-logout,
html.preview-header-t259 .user-panel a:focus-visible .icon-logout,
html.preview-header-t259 .user-panel .user-logout-btn:hover .icon-logout,
html.preview-header-t259 .user-panel .user-logout-btn:focus-visible .icon-logout {
  color: var(--header-fg, #f5da14);
  background: transparent;
  border-color: var(--header-fg, #f5da14);
}
html.preview-header-t259 .user-panel a.user-inbox-link:hover .user-inbox-count,
html.preview-header-t259 .user-panel a.user-inbox-link:focus-visible .user-inbox-count,
html.preview-header-t259 .user-panel a.user-tips-link:hover .user-inbox-count,
html.preview-header-t259 .user-panel a.user-tips-link:focus-visible .user-inbox-count {
  border-color: var(--header-fg, #f5da14);
  background: transparent;
  color: var(--header-fg, #f5da14);
}
html.preview-header-t259 .user-panel .user-theme-row:hover .theme-switch,
html.preview-header-t259 .user-panel .user-theme-row:focus-within .theme-switch {
  border-color: var(--header-fg, #f5da14);
  background: var(--header-hover, #1c2429);
}
html.preview-header-t259 .user-panel .user-theme-row:hover .theme-switch::after,
html.preview-header-t259 .user-panel .user-theme-row:focus-within .theme-switch::after {
  background: var(--header-fg, #f5da14);
}

/* t276/t277: Footer language picker aligned to the legal line. Not in the header. */
html.preview-header-t259 .foot p.foot-legal-line,
html.preview-header-t259 .foot-legal-row p.foot-legal-line {
  margin: 0;
}
html.preview-header-t259 .foot-legal-row {
  align-items: center;
}
html.preview-header-t259 .foot-legal-row .lang-menu > summary {
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  line-height: 0;
}
html.preview-header-t259 .foot-legal-row .lang-menu > summary .summary-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 6px;
  line-height: 1;
}
html.preview-header-t259 .foot-lang-menu .lang-panel,
html.preview-header-t259 .foot-legal-row .lang-panel {
  right: 0;
  left: auto;
  top: auto;
  bottom: calc(100% + 4px);
}

/* Soft-navigation progress (injected bar only, no layout change). */
.lz-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  background: transparent;
}
.lz-progress.is-on::after {
  content: "";
  display: block;
  height: 2px;
  width: 40%;
  background: var(--yellow, #f5da14);
  animation: lz-progress-slide 0.9s ease-in-out infinite;
}
@keyframes lz-progress-slide {
  0% { width: 0; margin-left: 0; }
  50% { width: 45%; margin-left: 30%; }
  100% { width: 0; margin-left: 100%; }
}


.inbox-setting-whitelist {
  display: block;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line, #d7dee3);
  max-width: 36rem;
}
.inbox-whitelist-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}
.inbox-whitelist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line, #d7dee3);
  min-width: 0;
}
.inbox-whitelist-addr {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  word-break: break-all;
}
.inbox-whitelist-badge {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  color: var(--muted, #5c6a72);
}
.inbox-whitelist-remove,
.inbox-whitelist-plus {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.inbox-whitelist-plus:hover,
.inbox-whitelist-remove:hover,
.inbox-whitelist-plus:focus-visible,
.inbox-whitelist-remove:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.inbox-whitelist-plus:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.inbox-whitelist-add {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
  align-items: center;
}
.inbox-whitelist-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
}

/* t388: two-line jackpot notifications */
.notify-item-body {
  white-space: pre-line;
}

/* t387 root fix: #inhalt is only a programmatic focus target (soft navigation
   moves focus there for screen readers; skip link). It must never paint the
   focus ring (outline + yellow 6px shadow) around the whole page, which showed
   as several yellow/dark lines under the header after a menu click in Safari
   and other browsers that treat script focus as :focus-visible. */
main#inhalt:focus,
main#inhalt:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Swipe left to delete (mobile only). */
@media (max-width: 859px) {
  .notify-item,
  .inbox-row { touch-action: pan-y; }
  .notify-item.lz-swiping,
  .inbox-row.lz-swiping,
  .notify-item.lz-swipe-gone,
  .inbox-row.lz-swipe-gone { position: relative; will-change: transform; }
  .lz-swipe-gone > :not(.lz-swipe-bg) { visibility: hidden; }
  /* Row and red layer join seamlessly: square the touching corners. */
  .notify-item.lz-swiping,
  .notify-item.lz-swipe-gone { border-top-right-radius: 0; border-bottom-right-radius: 0; }
  .lz-swipe-bg {
    position: absolute;
    top: 0;
    left: 100%;
    bottom: 0;
    width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 18px;
    box-sizing: border-box;
    overflow: hidden;
    background: #d93025;
    color: #fff;
    border-radius: 0 6px 6px 0;
    pointer-events: none;
  }
  .inbox-row > .lz-swipe-bg { border-radius: 0; }
  .lz-swipe-bg svg { flex: none; transition: transform 150ms ease; }
  .lz-swipe-bg.is-armed svg { transform: scale(1.18); }
}
@media (max-width: 859px) and (prefers-reduced-motion: reduce) {
  .lz-swipe-bg svg { transition: none; }
}
/* Inbox full-text search, fits the existing 30px header row. */
.inbox-search {
  flex: 1 1 8rem;
  min-width: 5.5rem;
  max-width: 28rem;
  margin: 0;
  display: flex;
  align-items: center;
  height: 30px;
  max-height: 30px;
}
.inbox-search-input {
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  max-height: 30px;
  margin: 0;
  padding: 0 0.65rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  min-width: 0;
}
.inbox-search-input::placeholder { color: var(--muted); opacity: 1; }
.inbox-search-input:hover { border-color: var(--muted); }
.inbox-search-input:focus,
.inbox-search-input:focus-visible {
  outline: none;
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 2px rgba(245, 218, 20, 0.28);
}
.inbox-row-subject mark,
.inbox-row-snippet mark {
  background: var(--yellow, #ffe066);
  color: inherit;
  font-weight: 700;
  padding: 0 0.05em;
  border-radius: 2px;
}
html[data-theme="dark"] .inbox-row-subject mark,
html[data-theme="dark"] .inbox-row-snippet mark,
[data-theme="dark"] .inbox-row-subject mark,
[data-theme="dark"] .inbox-row-snippet mark {
  background: #5a4a16;
  color: inherit;
}
.inbox-app.is-searching .inbox-empty-trash,
.inbox-app.is-searching .inbox-empty-folder { display: none; }
.inbox-search-more {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.7rem 1rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.inbox-search-more:not([hidden]) { display: block; }
.inbox-search-more:hover,
.inbox-search-more:focus-visible { background: var(--card); }
@media (max-width: 859px) {
  .inbox-search { flex: 1 1 6rem; max-width: none; }
  .inbox-app.sidebar-open .inbox-search {
    visibility: hidden;
    pointer-events: none;
  }
}

/* iOS Safari zooms into fields under 16px. On narrow/touch viewports the fields use 16px
   and the search input is scaled back to the existing 13px / 30px look. */
@media (max-width: 859px), (pointer: coarse) {
  .inbox-whitelist-input,
  .inbox-alias-select {
    font-size: 16px;
  }
  .inbox-search-input {
    font-size: 16px;
    width: calc(100% / 0.8125);
    min-width: calc(100% / 0.8125);
    height: calc(30px / 0.8125);
    max-height: none;
    flex: 0 0 auto;
    padding: 0 calc(0.65rem / 0.8125);
    border-width: calc(1px / 0.8125);
    border-radius: calc(var(--radius) / 0.8125);
    transform: scale(0.8125);
    transform-origin: 0 50%;
  }
  .inbox-search-input:focus-visible {
    box-shadow: 0 0 0 calc(6px / 0.8125) var(--yellow);
  }
}

/* Search sits behind the icon at the far right. When open, the field replaces the whole row
   (same 30px height, no jump). */
.inbox-list-head:not(.is-search-open) .inbox-search { display: none !important; }
.inbox-list-head.is-search-open > :not(.inbox-search) { display: none !important; }
.inbox-list-head.is-search-open .inbox-search { flex: 1 1 auto; max-width: none; min-width: 0; gap: 0.5rem; }
.inbox-search-field { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 30px; }
.inbox-search-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: 0;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.inbox-search-btn[hidden] { display: none; }
.inbox-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.inbox-search-btn svg { display: block; width: 16px; height: 16px; max-width: none; }
.inbox-search-btn:hover,
.inbox-search-btn:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, var(--card));
}
.inbox-list-head .inbox-search-open { margin-left: auto; }
.inbox-list-head .inbox-empty-trash:not([hidden]) ~ .inbox-search-open,
.inbox-list-head .inbox-empty-folder:not([hidden]) ~ .inbox-search-open { margin-left: 0; }
@media (max-width: 859px) {
  .inbox-list-head .inbox-search-open { margin-left: 0; }
  .inbox-app.sidebar-open .inbox-search-open { visibility: hidden; pointer-events: none; }
}

/* Slightly tighter focus ring on the search field, still clearly visible. */
.inbox-search-input:focus-visible {
  outline: none;
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 2px rgba(245, 218, 20, 0.28);
}
@media (max-width: 859px), (pointer: coarse) {
  .inbox-search-input:focus-visible { box-shadow: 0 0 0 calc(2px / 0.8125) rgba(245, 218, 20, 0.28); }
}

/* Winner-origin maps and filters */
.lz-win {
  --lz-win-zero: #eef1f3;
  --lz-win-zero-stroke: #c5ccd1;
  --lz-win-s1: #ffe566;
  --lz-win-s2: #ffc14a;
  --lz-win-s3: #f59e0b;
  --lz-win-s4: #c2410c;
  --lz-win-s5: #2a353c;
  --lz-win-s5-fg: #f5da14;
  --lz-win-other: #f6f7f8;
  --lz-win-other-stroke: #d0d5d8;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  padding-bottom: 5.5rem;
}
html[data-theme="dark"] .lz-win {
  --lz-win-zero: #4a5860;
  --lz-win-zero-stroke: #6d7d85;
  --lz-win-s1: #c4a00a;
  --lz-win-s2: #e8bc10;
  --lz-win-s3: #f5da14;
  --lz-win-s4: #ffb020;
  --lz-win-s5: #fff3a0;
  --lz-win-s5-fg: #171d21;
  --lz-win-other: #1c2429;
  --lz-win-other-stroke: #3c484e;
}
.lz-win-hero { min-width: 0; }
.lz-win-hero h1 { margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.lz-win-lead { margin: 0 0 0.85rem; }
.lz-win-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0.85rem 0 1rem;
}
@media (min-width: 720px) {
  .lz-win-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.lz-win-kpi {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  min-width: 0;
}
.lz-win-kpi dt {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5c686e;
}
html[data-theme="dark"] .lz-win-kpi dt { color: #9aa3a8; }
.lz-win-kpi dd {
  margin: 0.15rem 0 0;
  font-size: clamp(0.9rem, 3.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}
.lz-win-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.6rem 0 0.4rem;
  position: sticky;
  top: calc(var(--header-h, 3.5rem) + 2.4rem);
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0;
  min-width: 0;
}
.lz-win-bar > .btn,
.lz-win-tip-close,
.lz-win-drill {
  min-height: 44px;
  min-width: 44px;
}
.lz-win-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: #2a353c;
  color: #f5da14;
  font-size: 0.75rem;
  font-weight: 700;
}
.lz-win-filter-count[hidden] { display: none; }
.lz-win-active,
.lz-win-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.25rem), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.25rem), transparent 100%);
}
.lz-win-active { flex: 1 1 auto; }
.lz-win-chips { padding: 0.1rem 0 0.4rem; margin: 0 0 0.15rem; }
.lz-win-active::-webkit-scrollbar,
.lz-win-chips::-webkit-scrollbar { display: none; }
.lz-win-chip {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  border-radius: 999px;
  padding: 0 0.7rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  min-height: 2rem;
  max-width: none;
  overflow: visible;
}
.lz-win-chip-x {
  display: inline-block;
  margin-left: 0.25rem;
  font-weight: 700;
  opacity: 0.7;
}
.lz-win-active .lz-win-chip {
  padding: 0 0.4rem 0 0.55rem;
  font-size: 0.75rem;
  min-height: 1.85rem;
}
.lz-win-chip.is-on,
.lz-win-map-toolbar .btn[aria-pressed="true"],
.lz-win-metric .btn[aria-pressed="true"] {
  background: #2a353c;
  color: #f5da14;
  border-color: transparent;
}
.lz-win-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
  margin: 0;
  align-items: end;
}
@media (min-width: 720px) {
  .lz-win-sheet .lz-win-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lz-win-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 0;
}
.lz-win-filters select,
.lz-win-filters input {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  min-height: 44px;
  max-width: 100%;
}
.lz-win-class-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  grid-column: 1 / -1;
}
.lz-win-class-list .lz-win-chip { position: relative; }
.lz-win-class-list input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lz-win-map-wrap {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.55rem;
  min-height: 0;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(42, 53, 60, 0.08);
  margin: 0 0 0.35rem;
}
.lz-win-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0 0.4rem;
  min-width: 0;
}
.lz-win-seg {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.lz-win-seg button {
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2rem;
  padding: 0 0.45rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.lz-win-seg button:last-child { border-right: 0; }
.lz-win-seg button[aria-pressed="true"],
.lz-win-seg button.is-on {
  background: #2a353c;
  color: #f5da14;
}
.lz-win-zoom {
  display: flex;
  gap: 0.2rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.lz-win-zoom button {
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-width: 2rem;
  min-height: 2rem;
  width: 2rem;
  padding: 0;
  line-height: 1;
}
.lz-win-zoom-reset {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: 0.2rem 0.2rem 0 -0.12rem currentColor;
}
.lz-win-zoom-overlay {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  right: auto;
  z-index: 6;
  display: none;
  flex-direction: column;
  margin: 0;
  gap: 0.2rem;
}
.lz-win-zoom-overlay button {
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.lz-win-map-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  touch-action: pan-y;
  min-width: 0;
  user-select: none;
  -webkit-user-select: none;
}
.lz-win-map-viewport.is-zoomed { touch-action: none; cursor: grab; }
.lz-win-map-viewport.is-panning { cursor: grabbing; }
.lz-win-map-inner {
  transform-origin: 50% 50%;
  will-change: transform;
  position: relative;
}
.lz-win-map { width: 100%; min-width: 0; }
.lz-win-map[hidden] { display: none; }
.lz-win-map svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 32rem);
  overflow: visible;
  filter: drop-shadow(0 6px 16px rgba(42, 53, 60, 0.12));
}
.lz-win-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lz-win-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  background: rgba(42, 53, 60, 0.92);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.28rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.lz-win-bubble.is-md { font-size: 0.72rem; padding: 0.32rem 0.48rem; }
.lz-win-bubble.is-lg { font-size: 0.8rem; padding: 0.38rem 0.55rem; }
html[data-theme="dark"] .lz-win-bubble { background: rgba(245, 218, 20, 0.94); color: #171d21; }
.lz-win-map .lz-map-region {
  stroke-width: 0.8;
  cursor: pointer;
  outline: none;
}
.lz-win-map .lz-map-participating {
  fill: var(--lz-win-zero);
  stroke: var(--lz-win-zero-stroke);
}
.lz-win-map .lz-map-other {
  fill: var(--lz-win-other);
  stroke: var(--lz-win-other-stroke);
  cursor: default;
  fill-opacity: 1;
  stroke-dasharray: none;
}
.lz-win-map .lz-map-other {
  fill: url(#lz-win-hatch) var(--lz-win-other);
}
.lz-win-map .lz-map-participating.is-zero { fill: var(--lz-win-zero); stroke: var(--lz-win-zero-stroke); }
.lz-win-map .lz-map-participating.is-s1 { fill: var(--lz-win-s1); stroke: #c4a20d; }
.lz-win-map .lz-map-participating.is-s2 { fill: var(--lz-win-s2); stroke: #d39a12; }
.lz-win-map .lz-map-participating.is-s3 { fill: var(--lz-win-s3); stroke: #c0560a; }
.lz-win-map .lz-map-participating.is-s4 { fill: var(--lz-win-s4); stroke: #7a1d08; }
.lz-win-map .lz-map-participating.is-s5 { fill: var(--lz-win-s5); stroke: #111; color: var(--lz-win-s5-fg); }
.lz-win-map .lz-map-region.is-active,
.lz-win-map .lz-map-participating.is-active {
  stroke: #111;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 0.35rem rgba(42, 53, 60, 0.55));
}
.lz-win-map .lz-map-participating.is-dim { opacity: 0.78; }
.lz-win-map .lz-map-region:focus-visible {
  stroke: #0b57d0;
  stroke-width: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .lz-win-map .lz-map-participating { transition: fill 180ms ease, stroke 180ms ease, opacity 180ms ease, filter 180ms ease; }
}
.lz-win-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
}
.lz-win-legend-scale {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 9rem;
  min-width: 0;
}
.lz-win-legend-bar {
  display: block;
  flex: 1 1 5.5rem;
  height: 0.5rem;
  min-width: 3.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(to right, var(--lz-win-s1), var(--lz-win-s2), var(--lz-win-s3), var(--lz-win-s4), var(--lz-win-s5));
}
.lz-win-legend-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.65rem;
  flex: 0 1 auto;
}
.lz-win-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  vertical-align: -0.1em;
  margin-right: 0.3rem;
  border: 1px solid var(--line);
}
.lz-win-swatch.is-other {
  background: repeating-linear-gradient(-45deg, #d0d5d8, #d0d5d8 1px, #f6f7f8 1px, #f6f7f8 4px);
}
.lz-win-swatch.is-zero { background: var(--lz-win-zero); }
.lz-win-swatch.is-s1 { background: var(--lz-win-s1); }
.lz-win-swatch.is-s2 { background: var(--lz-win-s2); }
.lz-win-swatch.is-s3 { background: var(--lz-win-s3); }
.lz-win-swatch.is-s4 { background: var(--lz-win-s4); }
.lz-win-swatch.is-s5 { background: var(--lz-win-s5); }
.lz-win-tip {
  position: absolute;
  z-index: 6;
  max-width: min(18rem, calc(100% - 1rem));
  padding: 0.7rem 2.1rem 0.7rem 0.8rem;
  border-radius: 12px;
  background: #2a353c;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.lz-win-tip.is-card { pointer-events: auto; }
.lz-win-tip.is-hover { pointer-events: none; }
html[data-theme="dark"] .lz-win-tip {
  background: #f5da14;
  color: #171d21;
}
.lz-win-tip[hidden] { display: none; }
.lz-win-tip strong { display: block; margin-bottom: 0.15rem; }
.lz-win-tip-close {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.lz-win-drill { margin-top: 0.55rem; width: 100%; }
.lz-win-table-wrap { margin: 0 0 1rem; min-width: 0; max-width: 100%; }
.lz-win-table td, .lz-win-table th { vertical-align: top; }
.lz-win-table td.origin, .lz-win-table th.origin {
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lz-win-company {
  display: block;
  font-size: 0.8125rem;
  color: #5c686e;
  font-weight: 400;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 16rem;
}
.lz-win-sources,
.lz-win-insights,
.lz-win-acc-body {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.lz-win-sources a,
.lz-win-sources li,
.lz-win-sources .ext-link {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
html[data-theme="dark"] .lz-win-company { color: #9aa3a8; }
.lz-win-empty { margin: 0.5rem 0 0; }
.lz-win-acc { margin: 0 0 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 1rem; min-width: 0; }
.lz-win-acc > summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}
.lz-win-acc > summary::-webkit-details-marker { display: none; }
.lz-win-acc > summary::after {
  content: "";
  margin-left: auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.lz-win-acc[open] > summary::after { transform: rotate(225deg); }
.lz-win-acc .lz-win-acc-body { padding: 0 0 1rem; }
.lz-win-sheet[hidden] { display: none; }
.lz-win-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 20, 22, 0.45);
  z-index: 70;
}
.lz-win-sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 71;
  background: var(--bg);
  color: inherit;
  border-radius: 16px 16px 0 0;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  max-height: min(86vh, 40rem);
  overflow: auto;
  box-shadow: 0 -12px 32px rgba(0,0,0,0.2);
}
@media (min-width: 860px) {
  .lz-win-sheet-backdrop { display: none; }
  .lz-win-sheet-panel {
    position: static;
    max-height: none;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid var(--line);
    padding: 1rem;
    overflow: visible;
  }
  .lz-win-sheet[hidden] { display: none; }
}
.lz-win-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.lz-win-related { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0 0 1rem; }
.lz-win-related a { min-height: 44px; display: inline-flex; align-items: center; }
.lz-win-list-more { margin: 0.6rem 0 0; }
body.lz-win-sheet-open { overflow: hidden; }

/* Prevent the winner pages (and cramped header/crumbs) from overflowing on small screens */
html, body { max-width: 100%; }
.site-head .wrap,
.crumbs .wrap,
.lz-win .wrap {
  max-width: 100%;
  min-width: 0;
}
.head-row, .crumbs ol { max-width: 100%; }
.crumbs ol { overflow-wrap: anywhere; }

.lz-win-rank { margin: 0 0 1.1rem; min-width: 0; }
.lz-win-rank [data-lz-rank-panel] { min-width: 0; max-width: 100%; }
.lz-win-rank h2 { margin: 0 0 0.6rem; }
.lz-win-rank-tabs { display: flex; flex-wrap: nowrap; gap: 0.3rem; margin: 0 0 0.55rem; min-width: 0; }
.lz-win-rank-tabs .btn { min-height: 2.25rem; flex: 1 1 auto; font-size: 0.875rem; padding: 0 0.6rem; }
.lz-win-rank-tabs .btn[aria-selected="true"] {
  background: #2a353c;
  color: #f5da14;
  border-color: transparent;
}
.lz-win-rank table { width: max-content; max-width: 100%; }
.lz-win-rank tr { cursor: pointer; }
.lz-win-rank tr.is-active th,
.lz-win-rank tr.is-active td { background: color-mix(in srgb, #f5da14 28%, var(--card)); }

.lz-win-tip span { display: block; }
.lz-win-src {
  display: inline-block;
  margin: 0.2rem 0 0;
  margin-right: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
}
.lz-win-src.is-press { background: #e8f4ea; border-color: #9cc9a6; }
.lz-win-src.is-media { background: #f3efe4; border-color: #d3c7a2; }
html[data-theme="dark"] .lz-win-src.is-press { background: #1d3a24; border-color: #3d6b48; }
html[data-theme="dark"] .lz-win-src.is-media { background: #3a3420; border-color: #6b5e30; }
.lz-win-official {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 600;
}
.lz-win-insights h3 { font-size: 1.05rem; margin: 1rem 0 0.4rem; }
.lz-win-trend {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 0.4rem 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.lz-win-barcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 2.1rem;
  gap: 0.15rem;
}
.lz-win-barcol i {
  display: block;
  width: 1.15rem;
  background: #f5da14;
  border: 1px solid #c9b00c;
  border-radius: 4px 4px 0 0;
}
.lz-win-barcol b { font-size: 0.72rem; font-weight: 700; }
.lz-win-barcol em { font-size: 0.68rem; font-style: normal; color: var(--muted); }
.lz-win-pop-note { font-size: 0.8125rem; }
.lz-win-map-caption,
.lz-win-unlocated-row,
.lz-win-legend,
.lz-win-bar,
.lz-win-quick,
.lz-win-kpis {
  margin-right: calc(5.25rem + env(safe-area-inset-right, 0px));
  max-width: calc(100% - 5.25rem - env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .lz-win {
    padding-bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
  }
  .lz-win-map-toolbar .lz-win-zoom-toolbar { display: none; }
  .lz-win-zoom-overlay { display: flex; }
  .lz-win-map svg { max-height: min(46vh, 18.5rem); }
  .lz-win-map-wrap { padding: 0.4rem; padding-right: 0.45rem; }
  .lz-win-bar .lz-win-reset { display: none; }
  .lz-win-kpis {
    gap: 6px;
    margin: 0.45rem 0 0.65rem;
  }
  .lz-win-kpi { padding: 0.4rem 0.45rem; border-radius: 8px; }
  .lz-win-kpi dt { font-size: 0.65rem; }
  .lz-win-kpi dd { font-size: 0.92rem; white-space: nowrap; overflow-wrap: normal; }
  .lz-win-rank { padding-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px)); }
  .lz-win-rank-tabs { padding-right: 0; }
  .lz-win-rank table { display: block; width: 100%; max-width: 100%; }
  .lz-win-table-wrap,
  .lz-win-acc-body.table-scroll { overflow-x: auto; max-width: 100%; }
  .lz-win-rank-tabs .btn { min-height: 2rem; font-size: 0.8rem; }
  .lz-win-seg button { min-height: 1.85rem; font-size: 0.7rem; padding: 0 0.38rem; }
  .lz-win-hero h1 { font-size: 1.35rem; }
  .lz-win-lead { margin: 0 0 0.6rem; font-size: 0.9rem; }
  .lz-win-class-select select { min-height: 2.75rem; }
}
@media (min-width: 721px) {
  .lz-win-zoom-overlay { display: none; }
  .lz-win-map-toolbar .lz-win-zoom-toolbar { display: flex; }
}
@media (max-width: 400px) {
  .lz-win-seg button { font-size: 0.68rem; padding: 0 0.3rem; }
}

.lz-win-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  min-width: 0;
  margin: 0 0 0.2rem;
}
.lz-win-class-select {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  width: 100%;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5c686e;
}
html[data-theme="dark"] .lz-win-class-select { color: #9aa3a8; }
.lz-win-class-select-label { line-height: 1.2; }
.lz-win-class-select select {
  appearance: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  padding: 0 1.85rem 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232a353c' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.7rem 0.45rem;
  min-height: 2.75rem;
  width: 100%;
  min-width: 0;
  max-width: none;
  cursor: pointer;
}
html[data-theme="dark"] .lz-win-class-select select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5da14' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E");
}
.lz-win-map-caption {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}
.lz-win-map-caption[hidden] { display: none; }

.lz-win-unlocated-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}
.lz-win-unlocated-row[hidden] { display: none; }
.lz-win-unlocated-row .lz-win-chip {
  min-height: 1.85rem;
  font-size: 0.75rem;
  padding: 0 0.65rem;
}
.lz-win-unlocated-note {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
}
.lz-win-unlocated-note[hidden] { display: none; }
.lz-win-map-state path.lz-map-kreis {
  stroke: var(--lz-win-kreis-stroke, #6b757b);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
html[data-theme="dark"] .lz-win-map-state path.lz-map-kreis {
  stroke: var(--lz-win-kreis-stroke, #9aa3a8);
}
.lz-win-rank-tabs .btn,
.lz-win-seg button,
.lz-win-index-chip {
  touch-action: manipulation;
}
@media (min-width: 721px) {
  .lz-win-quick {
    display: flex;
    flex-wrap: wrap;
  }
  .lz-win-class-select {
    width: auto;
    flex: 1 1 11rem;
    max-width: 16rem;
  }
  .lz-win-date-range {
    flex: 1 1 16rem;
    max-width: 22rem;
  }
}
.lz-win-date-range { min-width: 0; }
.lz-win-date-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.35rem;
}
.lz-win-class-select input[type="date"],
.lz-win-filters input[type="date"] {
  appearance: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--card);
  min-height: 2.75rem;
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  color-scheme: light dark;
}
.lz-win-filters input[type="date"] { background: var(--bg); }
.lz-win-range-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  min-width: 0;
  grid-column: 1 / -1;
}
.lz-win-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .lz-win-date-range { grid-column: 1 / -1; }
  .lz-win-range-block { grid-template-columns: 1fr; }
}
.lz-win-rank td.amount,
.lz-win-rank th.amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lz-win-index { margin: 0 0 1rem; }
.lz-win-index h2 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.lz-win-index-list,
.lz-win-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}
.lz-win-index-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}
.lz-win-index-chip:hover,
.lz-win-index-chip:focus-visible {
  border-color: #2a353c;
  background: color-mix(in srgb, #f5da14 22%, var(--card));
}
.lz-win-sheet .lz-win-official { margin: 0.2rem 0; }


/* Shared form-field focus (name-field pattern): one subtle outer ring, no bold inner rectangle. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none;
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 2px rgba(245, 218, 20, 0.28);
}
.le-lookup-field input:focus,
.le-lookup-field input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0;
  background: transparent;
}
.lz-field {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}
.lotto-filter .lz-field,
.draw-filter .lz-field,
form .lz-field {
  flex: 1 1 12rem;
}
.lz-field input,
.lz-field textarea {
  width: 100%;
  padding-inline-end: 2.75rem;
}
.lz-field-clear {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}
.lz-field-clear[hidden] { display: none; }
.lz-field-clear:hover,
.lz-field-clear:focus-visible {
  color: var(--ink);
  background: rgba(42, 53, 60, 0.08);
  outline: none;
  box-shadow: none;
  border: 0;
}
input.lz-no-manager::-webkit-credentials-auto-fill-button,
input.lz-no-manager::-webkit-contacts-auto-fill-button,
input.lz-no-manager::-webkit-strong-password-auto-fill-button,
textarea.lz-no-manager::-webkit-credentials-auto-fill-button,
textarea.lz-no-manager::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  display: none;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

button.lz-field-clear,
.lotto-filter button.lz-field-clear,
.draw-filter button.lz-field-clear {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  box-shadow: none;
}
button.lz-field-clear:hover,
button.lz-field-clear:focus-visible,
.lotto-filter button.lz-field-clear:hover,
.lotto-filter button.lz-field-clear:focus-visible,
.draw-filter button.lz-field-clear:hover,
.draw-filter button.lz-field-clear:focus-visible {
  color: var(--ink);
  background: rgba(42, 53, 60, 0.08);
  outline: none;
  box-shadow: none;
  border: 0;
}


/* Account language setting (footer language picker removed) */
.account-lang {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.account-lang legend {
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 0 0.4rem;
  padding: 0;
}
.account-lang-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}
.account-lang-opt {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  background: var(--card);
}
.account-lang-opt:hover,
.account-lang-opt:focus-visible {
  border-color: var(--ink);
}
.account-lang-opt.is-active,
.account-lang-opt[aria-current="true"] {
  font-weight: 700;
  border-color: var(--ink);
}


/* Footer language picker removed — copyright uses the full width. */
.foot-legal-row { display: block; width: 100%; padding-right: 0; }
.foot-legal-row .foot-legal-line { display: block; width: 100%; }
.foot-lang, .foot-lang-menu, .foot-legal-row .foot-lang, .foot-legal-row .lang-menu { display: none !important; }

/* Lottery overview search: hide the native cancel, show a clean custom X, instant filter */
.lotto-filter input[type="search"]::-webkit-search-cancel-button,
.lotto-filter input[type="search"]::-webkit-search-decoration,
.lotto-filter input[type="search"]::-webkit-search-results-button,
.lz-field input[type="search"]::-webkit-search-cancel-button,
.lz-field input[type="search"]::-webkit-search-decoration,
.lz-field input[type="search"]::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.lotto-filter.is-instant [type="submit"] { display: none; }
.lotto-filter-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.lotto-filter-empty[hidden] { display: none; }
.lotto-filter .lz-field-clear svg,
.lz-field-clear svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 16px;
}
[data-theme="dark"] .lz-field-clear:hover,
[data-theme="dark"] .lz-field-clear:focus-visible,
[data-theme="dark"] .lotto-filter button.lz-field-clear:hover,
[data-theme="dark"] .lotto-filter button.lz-field-clear:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
}

/* New Year lotteries table only: no %-widths (those stretch the table to the wrap and leave slack). */
@media (min-width: 701px) {
  .table-scroll > table.ny-table,
  table.ny-table {
    width: auto;
    max-width: 100%;
  }
  .ny-table col.col-date,
  .ny-table th.date,
  .ny-table td.date,
  .ny-table col.col-country,
  .ny-table thead th:nth-child(2),
  .ny-table tbody td:nth-child(2) {
    width: 0;
    white-space: nowrap;
  }
  .ny-table col.col-name,
  .ny-table thead th:first-child,
  .ny-table tbody th:first-child,
  .ny-table tbody td:nth-child(1) {
    width: 0;
    white-space: nowrap;
  }
  .ny-table col.col-organizer {
    width: auto;
  }
  .ny-table col.col-amount,
  .ny-table th.amount,
  .ny-table td.amount {
    width: 11.5rem;
  }
  .ny-table td.amount.jp-cell {
    white-space: normal;
  }
}

/* Photo recognition: mark uncertain fields without changing other form chrome. */
.tips-field.is-uncertain input,
.tips-field.is-uncertain select,
.tips-field.is-uncertain textarea,
.tips-field.is-uncertain [data-game-search] {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #b88700 80%, var(--line));
}
.tips-field.is-uncertain > label,
.tips-field.is-uncertain > span:first-child {
  color: color-mix(in srgb, #8a6500 70%, var(--ink));
}

/* t799 Konto: Bereiche aus einer Quelle (links auf Desktop, Leiste auf Mobil) + Benachrichtigungen */
.account-section-head { margin: 0 0 1.1rem; }
.account-section-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.account-section-head p { margin: 0.2rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.account-nav-group { display: none; }
.account-nav-icon { display: none; }
.account-nav .tablist { scroll-behavior: smooth; }
@media (min-width: 860px) {
  .auth-page.account-page { max-width: 60rem; }
  .account-page .account-tabs {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 0 2.75rem;
    align-items: start;
  }
  .account-page .account-tabs .tablist-wrap {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    margin: 0;
    background: none;
    border-bottom: 0;
  }
  .account-page .account-nav .tablist {
    flex-direction: column;
    overflow: visible;
    gap: 2px;
  }
  .account-nav-group {
    display: block;
    margin: 1.1rem 0 0.35rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .account-nav-group:first-child { margin-top: 0.1rem; }
  .tablist a.tab.account-nav-item {
    justify-content: flex-start;
    gap: 0.65rem;
    min-height: 40px;
    padding: 0 0.75rem;
    border-bottom: 0;
    border-radius: 6px;
    font-weight: 500;
    white-space: normal;
    color: var(--ink);
  }
  .tablist a.tab.account-nav-item:hover { background: var(--soft); }
  .account-nav-icon { display: block; flex: 0 0 18px; color: var(--muted); }
  .tablist a.tab.account-nav-item.is-active,
  .tablist a.tab.account-nav-item[aria-selected="true"] {
    background: color-mix(in srgb, var(--ink) 7%, var(--bg));
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--yellow-deep);
  }
  .tablist a.tab.account-nav-item.is-active .account-nav-icon { color: var(--ink); }
  .account-page .account-tab-panels { min-width: 0; padding-top: 0.1rem; }
}

.account-alerts { margin: 0.25rem 0 1.5rem; }
.account-alerts-head { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.25rem; }
.account-alerts-head h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); }
.account-alerts .account-consent-lead { margin: 0 0 0.9rem; }
.account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: help;
  font-variant-numeric: tabular-nums;
}
.account-chip.is-on {
  background: color-mix(in srgb, var(--green) 10%, var(--card));
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
  color: var(--green);
}
html[data-theme="dark"] .account-chip.is-on {
  background: color-mix(in srgb, #6fd39b 14%, var(--card));
  border-color: color-mix(in srgb, #6fd39b 40%, var(--line));
  color: #8fe0b2;
}
.account-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.account-alert-group {
  margin: 0.6rem 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}
.account-alert-group > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.account-alert-group > summary::-webkit-details-marker { display: none; }
.account-alert-group > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.account-alert-group[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.account-alert-group > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.account-alert-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.account-alert-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.account-alert-row + .account-alert-row { border-top: 1px solid var(--line); }
.account-alert-row .tips-game-logo { width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; }
.account-alert-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.account-alert-name { font-weight: 600; line-height: 1.3; }
.account-alert-meta { font-size: 0.8125rem; line-height: 1.3; color: var(--muted); }
.account-alert-switch.inbox-setting-switch { margin: 0; }
.account-alert-switch:disabled { opacity: 0.55; cursor: progress; }
.account-alerts .account-consent-status { margin-top: 0.6rem; }
@media (prefers-reduced-motion: reduce) {
  .account-alert-group > summary::after { transition: none; }
  .account-nav .tablist { scroll-behavior: auto; }
}

/* ==========================================================================
   v172 Formular-System (Single Source): Tokens + einheitliche Optik für alle
   Eingabefelder, Dropdowns, Textfelder, Checkboxen und Schalter.
   Nur Optik: Höhe, Breite, Abstände und Positionen der Controls bleiben wie sie sind.
   Präfix html:not(#lz-forms) hebt die Spezifität über alle Komponenten-Regeln,
   damit diese Werte die eine Quelle sind.
   ========================================================================== */
:root {
  --field-h: 44px;
  --field-h-sm: 32px;
  --field-radius: 8px;
  --field-bw: 1px;
  --field-bg: #ffffff;
  --field-bg-hover: #ffffff;
  --field-bg-disabled: #f1f3f4;
  --field-fg: #2a353c;
  --field-placeholder: #6b767c;
  --field-border: #c9ced2;
  --field-border-hover: #98a2a8;
  --field-border-focus: #b39d0a;
  --field-ring: 0 0 0 3px rgba(245, 218, 20, 0.42);
  --field-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --field-error: #b10e0e;
  --field-error-ring: 0 0 0 3px rgba(177, 14, 14, 0.16);
  --field-warn: #b88700;
  --field-check-bg: #f5da14;
  --field-check-border: #2a353c;
  --field-fs-min: 16px;
  --field-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b666c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.25 8 10.25 12 6.25'/%3E%3C/svg%3E");
  --field-transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
html[data-theme="dark"] {
  --field-bg: #1b2227;
  --field-bg-hover: #1e262c;
  --field-bg-disabled: #20282d;
  --field-fg: #e8ecee;
  --field-placeholder: #95a1a7;
  --field-border: #435158;
  --field-border-hover: #66767e;
  --field-border-focus: #f5da14;
  --field-ring: 0 0 0 3px rgba(245, 218, 20, 0.30);
  --field-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --field-error: #ff8a8a;
  --field-error-ring: 0 0 0 3px rgba(255, 138, 138, 0.22);
  --field-warn: #e0b23a;
  --field-check-bg: #f5da14;
  --field-check-border: #f5da14;
  --field-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23aeb9be' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.25 8 10.25 12 6.25'/%3E%3C/svg%3E");
  /* alte Pfeil-Variable zeigt auf den neuen Chevron (eine Quelle) */
  --control-arrow: var(--field-chevron);
}
:root { --control-arrow: var(--field-chevron); }

/* Textfelder, Zahlen, Datum, Suche, Dropdowns, Textbereiche */
html:not(#lz-forms) :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="date"], input[type="tel"], input[type="url"], input[type="password"], input[type="time"], input[type="month"], select, textarea):not(.le-lookup-field *):not(.inbox-alias-select) {
  border-color: var(--field-border);
  border-style: solid;
  border-radius: var(--field-radius);
  background-color: var(--field-bg);
  color: var(--field-fg);
  -webkit-text-fill-color: var(--field-fg);
  box-shadow: var(--field-shadow);
  caret-color: var(--field-fg);
  color-scheme: inherit;
  transition: var(--field-transition);
}
html:not(#lz-forms) :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="date"], input[type="tel"], input[type="url"], input[type="password"], input[type="time"], input[type="month"], textarea):not(.le-lookup-field *)::placeholder {
  color: var(--field-placeholder);
  -webkit-text-fill-color: var(--field-placeholder);
  opacity: 1;
}
/* Native Optik (grau, eckig, dunkle UA-Farben) überall abschalten */
html:not(#lz-forms) :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="tel"], input[type="url"], input[type="password"]):not(.le-lookup-field *) {
  -webkit-appearance: none;
  appearance: none;
}
html:not(#lz-forms) input[type="number"]:not(.le-lookup-field *) { -moz-appearance: textfield; }
html:not(#lz-forms) input[type="number"]::-webkit-inner-spin-button,
html:not(#lz-forms) input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
html:not(#lz-forms) :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="tel"], input[type="url"], input[type="password"]):not(.le-lookup-field *):autofill {
  box-shadow: inset 0 0 0 1000px var(--field-bg), var(--field-shadow);
  -webkit-text-fill-color: var(--field-fg);
}
html:not(#lz-forms) input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.7; cursor: pointer; }
html[data-theme="dark"]:not(#lz-forms) input[type="date"] { color-scheme: dark; }

/* Dropdowns: eigener Chevron, gleiche Position */
html:not(#lz-forms) select:not(.inbox-alias-select) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--field-chevron);
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem 1rem;
  cursor: pointer;
}
html:not(#lz-forms) select:not(.inbox-alias-select) option,
html:not(#lz-forms) select:not(.inbox-alias-select) optgroup {
  background-color: var(--field-bg);
  color: var(--field-fg);
}

/* Hover */
html:not(#lz-forms) :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="date"], input[type="tel"], input[type="url"], input[type="password"], input[type="time"], input[type="month"], select, textarea):not(.le-lookup-field *):not(.inbox-alias-select):hover:not(:disabled):not(:focus) {
  border-color: var(--field-border-hover);
  background-color: var(--field-bg-hover);
}

/* Fokus: ein weicher Ring, gleiche Farbe überall */
html:not(#lz-forms) :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="date"], input[type="tel"], input[type="url"], input[type="password"], input[type="time"], input[type="month"], select, textarea):not(.le-lookup-field *):not(.inbox-alias-select):is(:focus, :focus-visible) {
  outline: none;
  border-color: var(--field-border-focus);
  box-shadow: var(--field-ring);
}

/* Fehler: erst nach Nutzereingabe (:user-invalid) oder explizit per aria-invalid */
html:not(#lz-forms) :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not(.le-lookup-field *):is([aria-invalid="true"], :user-invalid) {
  border-color: var(--field-error);
}
html:not(#lz-forms) :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not(.le-lookup-field *):is([aria-invalid="true"], :user-invalid):is(:focus, :focus-visible) {
  border-color: var(--field-error);
  box-shadow: var(--field-error-ring);
}

/* Unsicher erkannte Foto-Felder behalten ihre Markierung */
html:not(#lz-forms) .tips-field.is-uncertain :is(input, select, textarea, [data-game-search]) {
  border-color: var(--field-warn);
  box-shadow: inset 0 0 0 1px var(--field-warn), var(--field-shadow);
}

/* Deaktiviert */
html:not(#lz-forms) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="range"]):not([type="hidden"]), select, textarea):not(.le-lookup-field *):not(.inbox-alias-select):is(:disabled, [aria-disabled="true"]) {
  background-color: var(--field-bg-disabled);
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  border-color: var(--field-border);
  box-shadow: none;
  opacity: 0.7;
  cursor: not-allowed;
}

/* Checkboxen und Radios: gleiche Linie, gleicher Fokus */
html:not(#lz-forms) :is(input[type="checkbox"], input[type="radio"]) {
  border-color: var(--field-border);
  background-color: var(--field-bg);
  box-shadow: var(--field-shadow);
  transition: var(--field-transition);
}
html:not(#lz-forms) input[type="checkbox"] { border-radius: 5px; }
html:not(#lz-forms) :is(input[type="checkbox"], input[type="radio"]):hover:not(:disabled) { border-color: var(--field-border-hover); }
html:not(#lz-forms) :is(input[type="checkbox"], input[type="radio"]):checked {
  background-color: var(--field-check-bg);
  border-color: var(--field-check-border);
}
html:not(#lz-forms) :is(input[type="checkbox"], input[type="radio"]):focus-visible {
  outline: none;
  border-color: var(--field-border-focus);
  box-shadow: var(--field-ring);
}
html[data-theme="dark"]:not(#lz-forms) :is(input[type="checkbox"], input[type="radio"]):checked:focus-visible { border-color: var(--field-check-border); }

/* Schalter (Toggle) */
html:not(#lz-forms) .inbox-setting-switch {
  border-color: var(--field-border-hover);
  background-color: var(--field-bg);
  transition: var(--field-transition);
}
html:not(#lz-forms) .inbox-setting-switch::after { background: var(--field-border-hover); }
html:not(#lz-forms) .inbox-setting-switch:hover:not(:disabled) { border-color: var(--field-fg); background-color: var(--field-bg); outline: none; }
html:not(#lz-forms) .inbox-setting-switch:focus-visible { outline: none; border-color: var(--field-border-focus); box-shadow: var(--field-ring); background-color: var(--field-bg); }
html:not(#lz-forms) .inbox-setting-switch[aria-checked="true"] { background-color: var(--field-check-bg); border-color: var(--on-yellow); }
html:not(#lz-forms) .inbox-setting-switch[aria-checked="true"]::after { background: var(--on-yellow); }
html:not(#lz-forms) .inbox-setting-switch[aria-checked="true"]:focus-visible { border-color: var(--on-yellow); }

/* Kompakte Variante (Zeitraum-Filter): gleiche Linie/Radius/Fokus, nur 32px hoch */
html:not(#lz-forms) .tips-period-select {
  min-height: var(--field-h-sm);
  background-position: right 0.5rem center;
  background-size: 0.875rem 0.875rem;
}
/* nur ein Chevron: der alte Pseudo-Pfeil am Label entfällt */
.tips-period-field::after { content: none; display: none; }

/* Inbox-Suche: skaliert auf Touch-Geräten, Radius mitskalieren */
@media (max-width: 859px), (pointer: coarse) {
  html:not(#lz-forms) .inbox-search-input { border-radius: calc(var(--field-radius) / 0.8125); border-width: calc(1px / 0.8125); }
  html:not(#lz-forms) .inbox-search-input:is(:focus, :focus-visible) { box-shadow: 0 0 0 calc(3px / 0.8125) rgba(245, 218, 20, 0.42); }
  html[data-theme="dark"]:not(#lz-forms) .inbox-search-input:is(:focus, :focus-visible) { box-shadow: 0 0 0 calc(3px / 0.8125) rgba(245, 218, 20, 0.30); }
}

/* Mobil: mindestens 16px Schrift, damit iOS beim Antippen nicht zoomt */
@media (max-width: 859px), (pointer: coarse) {
  html:not(#lz-forms) :is(.tips-period-select, .lz-win-sort select, .lz-win-filters select, .lz-win-filters input, .lotto-filter input[type="search"], .draw-filter input[type="search"]) {
    font-size: var(--field-fs-min);
  }
  html:not(#lz-forms) :is(input:not([type]), input[type="email"], input[type="tel"], input[type="url"], input[type="password"], textarea) {
    font-size: max(var(--field-fs-min), 1em);
  }
  html:not(#lz-forms) .tips-period-select { font-weight: 600; }
}
/* Felder ohne Komponenten-Regel (z. B. Losnummer im Scanner) bekommen die Standardgröße */
html:not(#lz-forms) .scanner-page input:not([type]) {
  font: inherit;
  min-height: var(--field-h);
  padding: 4px 10px;
  border-width: var(--field-bw);
  width: 15.5rem;
  max-width: 100%;
}
/* Einheitliche Linienstärke */
html:not(#lz-forms) :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="date"], input[type="tel"], input[type="url"], input[type="password"], input[type="time"], input[type="month"], select, textarea):not(.le-lookup-field *):not(.inbox-alias-select):not(.inbox-search-input) {
  border-width: var(--field-bw);
}

/* Dropdowns mit eigener Breite: 1px Linie statt 2px, Innenabstand +1px, damit Breite und Text exakt bleiben */
html:not(#lz-forms) :is(.apps-filter select, .lz-win-sort select, .gen-toolbar select, .field select, .lotto-filter select) {
  padding: 5px calc(2.35rem + 1px) 5px 11px;
}

/* Sprache im Konto: Dropdown */
.account-lang-field { display: block; margin: 0; max-width: 20rem; }
html:not(#lz-forms) .account-lang-select {
  display: block;
  width: 100%;
  min-height: var(--field-h);
  padding: 4px 2.35rem 4px 11px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  html:not(#lz-forms) :is(input, select, textarea, .inbox-setting-switch) { transition: none; }
}

/* t800 news-shared (Hotfix v175): Teile der News-Komponenten, die auch AUSSERHALB von /news/ erscheinen
   (Teaser-Box „Millionengewinne im …“ auf den Lotterieseiten). Einzige Quelle; wird beim Build an styles.css
   angehängt, weil styles.css auf jeder Seite geladen wird. news.css enthält diese Regeln nicht mehr. */
.news-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px 2px 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: help;
}
a.news-chip { cursor: pointer; }
a.news-chip:hover { border-color: var(--ink); }
.news-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Teaser-Box auf den Lotterieseiten (/lotto/, /eurojackpot/) – nutzt das .card-Pattern */
/* t822u: Abstand Box -> Kurzinfos = Sektionsabstand der Lotterieseite (.hub-links margin-bottom 14px), ein Token */
:root { --hub-section-gap: 14px; }
.news-hubbox { margin: 0 0 var(--hub-section-gap); }
.news-hubbox-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.news-hubbox-item { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.news-hubbox-item:first-child { border-top: 0; padding-top: 2px; }
.news-hubbox-link { font-weight: 700; line-height: 1.35; color: var(--ink); text-decoration: none; }
.news-hubbox-link:hover, .news-hubbox-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.news-hubbox-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.86rem; color: var(--muted); }
.news-chip-amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.news-hubbox-more { margin: 8px 0 0; font-size: 0.92rem; }
.news-hubbox-more a { font-weight: 600; }
/* t826u: auf Lotterie-Detailseiten folgt die Box direkt auf die Fakten-Karte -> gleicher Sektionsabstand (Token) */
.lotto-detail + .news-hubbox { margin-top: var(--hub-section-gap); }

/* GLU-73: Spieleinsätze – Intro in voller Breite, Bedienelemente in einer kompakten Toolbar.
   Nur Seiten mit .stakes-intro / .stakes-lottery; Tokens aus dem Formular-System (--field-*). */
.intro.stakes-intro { max-width: none; }
.stakes-lottery .stakes-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 10px; }
.stakes-lottery .stakes-head h2 { margin: 0; }
.stakes-lottery .stakes-head .jp-odds-legend { margin: 0; }
.stakes-lottery .stakes-head .stakes-other { margin: 0 0 0 auto; }
.stakes-lottery .stakes-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 0 0 4px; }
.stakes-bar .apps-filter.stakes-year { flex-wrap: nowrap; align-items: center; gap: 8px; margin: 0; }
.stakes-bar .apps-filter.stakes-year label { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.stakes-bar .stakes-day-filter { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.stakes-bar .stakes-label { font-size: 0.95rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.stakes-bar .stakes-info { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 44px; margin: 0 0 0 -8px; padding: 0; border: 0; border-radius: var(--field-radius, 8px); background: transparent; color: var(--muted); cursor: help; touch-action: manipulation; }
.stakes-bar .stakes-info > span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; font-style: normal; line-height: 1; }
.stakes-bar .stakes-info:hover { color: var(--ink); }
.stakes-bar .stakes-info:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
@supports selector(:has(*)) {
  .stakes-bar .stakes-day-options { display: inline-flex; flex-wrap: nowrap; align-items: stretch; gap: 0; min-width: 0; overflow: hidden; border: var(--field-bw, 1px) solid var(--field-border, var(--line)); border-radius: var(--field-radius, 8px); background: var(--field-bg, var(--bg)); box-shadow: var(--field-shadow, none); }
  .stakes-bar .stakes-day-options label.choice { position: relative; flex: 0 0 auto; justify-content: center; gap: 0; min-height: calc(var(--field-h, 44px) - 2px); margin: 0; padding: 0 16px; border-right: 1px solid var(--field-border, var(--line)); color: var(--field-fg, var(--ink)); font-size: 1rem; font-weight: 600; line-height: 1.2; white-space: nowrap; user-select: none; transition: background-color 0.15s ease, color 0.15s ease; }
  .stakes-bar .stakes-day-options label.choice:last-child { border-right: 0; }
  .stakes-bar .stakes-day-options label.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .stakes-bar .stakes-day-options label.choice:hover { background: var(--soft); }
  .stakes-bar .stakes-day-options label.choice:has(input:checked) { background: #2a353c; color: #f5da14; }
  html[data-theme="dark"] .stakes-bar .stakes-day-options label.choice:has(input:checked) { background: #f5da14; color: #2a353c; }
  .stakes-bar .stakes-day-options label.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -4px; }
}
@media (max-width: 640px) {
  .stakes-lottery .stakes-head .stakes-other { margin-left: 0; flex-basis: 100%; }
  .stakes-lottery .stakes-bar { gap: 8px 12px; }
  .stakes-bar .apps-filter.stakes-year { width: 100%; }
  .stakes-bar .apps-filter.stakes-year label { flex: 1 1 auto; min-width: 0; }
  .stakes-bar .apps-filter.stakes-year select { flex: 1 1 auto; min-width: 0; }
  .stakes-bar .stakes-day-filter { width: 100%; flex-wrap: wrap; gap: 0 8px; }
  .stakes-bar .stakes-label { order: 1; }
  .stakes-bar .stakes-info { order: 2; margin: 0; }
  .stakes-bar .stakes-day-options { order: 3; flex: 1 1 100%; }
}
@supports selector(:has(*)) {
  @media (max-width: 640px) {
    .stakes-bar .stakes-day-options { display: flex; flex-wrap: wrap; width: 100%; }
    .stakes-bar .stakes-day-options label.choice { flex: 1 1 auto; padding: 0 10px; }
    .stakes-bar .stakes-day-options label.choice:first-child { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--field-border, var(--line)); }
  }
}

/* GLU-80 news-home (Startseiten-Slider „Millionengewinner“). Einzige Quelle; wird beim Build an styles.css angehängt
   (Startseite lädt news.css nicht). Alles unter .nsl gekapselt, nutzt die Marken-Variablen aus styles.css. */
.nsl { margin-top: 20px; margin-bottom: 8px; }
.nsl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 36px; margin: 0 0 10px; }
.nsl-head h2 { margin: 0; flex: 0 1 auto; font-size: 1.2rem; line-height: 1.25; }
.nsl-head .news-more { margin-left: auto; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
@media (min-width: 40rem) { .nsl-head h2 { font-size: 1.25rem; } .nsl-head .news-more { font-size: 1rem; } }
.nsl-nav { display: none; gap: 6px; }
.nsl-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.nsl-btn:hover:not(:disabled) { border-color: var(--ink); }
.nsl-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nsl-btn:disabled { opacity: 0.38; cursor: default; }
@media (min-width: 48rem) { .nsl-nav { display: inline-flex; } }

.nsl-frame { position: relative; }
.nsl-track {
  --nsl-n: 1.18; --nsl-gap: 12px;
  display: grid; grid-auto-flow: column; gap: var(--nsl-gap);
  grid-auto-columns: calc((100% - var(--nsl-gap) * (var(--nsl-n) - 1)) / var(--nsl-n));
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 1px 6px; scroll-padding-inline: 1px;
}
.nsl-track::-webkit-scrollbar { display: none; }
@media (min-width: 40rem) { .nsl-track { --nsl-n: 2; --nsl-gap: 16px; } }
@media (min-width: 48rem) { .nsl-track { --nsl-n: 3; } }
@media (min-width: 70rem) { .nsl-track { --nsl-n: 5; } }

.nsl-slide {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  scroll-snap-align: start; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.nsl-slide:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); box-shadow: 0 8px 22px rgba(42, 53, 60, 0.12); }
html[data-theme="dark"] .nsl-slide:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.nsl .news-img { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.nsl .news-img picture { display: block; width: 100%; height: 100%; }
.nsl .news-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nsl .news-img-empty { background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%); }
.nsl .news-ai-badge { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; line-height: 1.3; color: #fff; background: rgba(17, 21, 24, 0.72); border: 1px solid rgba(255, 255, 255, 0.28); cursor: help; }
.nsl .news-ai-badge:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.nsl .news-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 12px 14px 14px; }
.nsl .news-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: relative; z-index: 2; }
.nsl .news-chip-class { padding-left: 10px; }
.nsl .news-chip-class.is-jackpot { background: var(--yellow); border-color: var(--yellow-deep); color: var(--on-yellow); }
.nsl .news-game-logo.tips-game-logo { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 999px; }
.nsl .news-game-logo .tips-game-logo-abbr { font-size: 0.5rem; letter-spacing: -0.04em; }
.nsl .news-amount { margin: 0; font-weight: 800; font-size: 1.375rem; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; position: relative; z-index: 2; }
.nsl .news-amount > span { cursor: help; border-radius: 4px; }
.nsl .news-amount [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nsl .news-amount-per { font-size: 0.5em; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.nsl .news-card-title { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nsl .news-card-link { color: inherit; text-decoration: none; }
.nsl .news-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.nsl .news-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nsl .news-card-link:focus-visible { outline: none; }
.nsl .news-card-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
.nsl .news-meta { margin: auto 0 0; color: var(--muted); font-size: 0.875rem; }

/* GLU-82: geteilter Sortier-Helper (Quelle t841/src/seo-sort.css, Main-Scope) */
/* Sortable SEO table headers: reserved indicator, no layout shift, Stripe/Linear-quiet. */
table[data-sort-table] th[data-sort-col] { white-space: nowrap; }
table[data-sort-table] .seo-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-align: inherit;
  white-space: nowrap;
  max-width: 100%;
  border-radius: 3px;
}
table[data-sort-table] th.num .seo-sort { justify-content: flex-end; width: 100%; }
table[data-sort-table] .seo-sort-ind {
  position: relative;
  display: inline-block;
  width: 0.5rem;
  height: 0.7rem;
  flex: 0 0 0.5rem;
  opacity: 0;
  color: currentColor;
  vertical-align: middle;
}
table[data-sort-table] .seo-sort-ind::before,
table[data-sort-table] .seo-sort-ind::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -0.16rem;
  border-left: 0.16rem solid transparent;
  border-right: 0.16rem solid transparent;
}
table[data-sort-table] .seo-sort-ind::before {
  top: 0.06rem;
  border-bottom: 0.2rem solid currentColor;
}
table[data-sort-table] .seo-sort-ind::after {
  bottom: 0.06rem;
  border-top: 0.2rem solid currentColor;
}
table[data-sort-table] th[data-sort-col] .seo-sort:hover .seo-sort-ind,
table[data-sort-table] th[data-sort-col] .seo-sort:focus-visible .seo-sort-ind { opacity: 0.45; }
table[data-sort-table] th[aria-sort] .seo-sort-ind { opacity: 0.8; }
table[data-sort-table] th[aria-sort="ascending"] .seo-sort-ind::after { visibility: hidden; }
table[data-sort-table] th[aria-sort="descending"] .seo-sort-ind::before { visibility: hidden; }
table[data-sort-table] th[aria-sort] { color: var(--ink); }
table[data-sort-table] .seo-sort:focus { outline: none; }
table[data-sort-table] .seo-sort:focus-visible { outline: 2px solid var(--seo-accent, #3b82f6); outline-offset: 2px; }

/* GLU-82: /lotterien/anbieter – legale Lotterieanbieter. Nur .prov-* und table[data-sort-table] im Main; Tokens aus :root. */
.prov-intro .prov-stand { margin: 8px 0 0; color: var(--muted); font-size: 0.9375rem; }
.prov-intro .prov-stand a { color: inherit; text-underline-offset: 3px; }
.prov-warn {
  margin: 12px auto 16px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--yellow-deep);
  border-radius: var(--radius);
}
.prov-warn h2 { margin: 0 0 4px; font-size: 1.05rem; }
.prov-warn p { margin: 0; max-width: var(--prose); }
.prov-list { margin: 16px auto; }
.prov-filter ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 0 2px; list-style: none; }
.prov-filter-item {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; margin: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: inherit; font-weight: 600; font-size: 0.9375rem; line-height: 1.2; white-space: nowrap; cursor: pointer;
}
.prov-filter-item:hover { border-color: var(--ink); }
.prov-filter-item.is-active { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.prov-filter-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.prov-filter-count { font-variant-numeric: tabular-nums; font-size: 0.8125rem; opacity: 0.7; }
.prov-count { margin: 8px 0 10px; color: var(--muted); font-size: 0.9375rem; }
.prov-empty { margin: 8px 0; color: var(--muted); }
.prov-table { width: 100%; }
.prov-table td, .prov-table th { vertical-align: top; }
.prov-table tr[hidden] { display: none !important; }
.prov-table thead th { white-space: nowrap; }
.prov-name { font-weight: 600; }
.prov-chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 1px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: help;
}
.prov-chip:focus-visible, .prov-table [data-tip-tap]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.prov-chip-dltb { border-color: var(--yellow-deep); background: var(--yellow); color: var(--on-yellow); }
.prov-chip-more, .prov-chip-auth { font-variant-numeric: tabular-nums; }
.prov-web { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.prov-ext { overflow-wrap: anywhere; text-underline-offset: 3px; }
.prov-lots { display: inline; }
.prov-lots a { text-underline-offset: 3px; white-space: nowrap; }
.prov-sep { color: var(--muted); }
.prov-muted { color: var(--muted); cursor: help; }
.prov-wiki { margin-top: 20px; }
@media (min-width: 701px) {
  .prov-scroll > table.prov-table { display: table; width: 100%; }
  .prov-table .col-name { width: 26%; }
  .prov-table .col-cat { width: 15%; }
  .prov-table .col-seat { width: 13%; }
  .prov-table .col-web { width: 17%; }
  .prov-table .col-lots { width: 21%; }
  .prov-table .col-auth { width: 8%; }
}
@media (max-width: 700px) {
  .prov-table td[data-label] > .prov-lots, .prov-table td[data-label] > .prov-web { justify-content: flex-end; text-align: end; }
  .prov-filter-item { min-height: 34px; padding: 4px 11px; font-size: 0.875rem; }
}

/* GLU-81: Hilfe-Hinweise an Jackpot-/Ziehungsangaben (Tooltip kommt aus [data-tip]) */
.jp-help {
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}
.jp-help:focus-visible { outline: 2px solid var(--accent, #1a6b4a); outline-offset: 2px; border-radius: 3px; }
