/* Additions to the prototype styles (dashboard.css): login area in the
   sidebar and the admin import page. Uses the prototype's tokens. */
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--side-ink2); font-size: 12px; }
.who a { color: var(--side-ink); }
.notice { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; background: var(--surface); }
.checks { list-style: none; padding: 0; }
.checks li { display: flex; gap: 8px; padding: 4px 0; }
.checks li.bad { color: var(--dn); }
.imp form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0; }
.imp h2 { font-size: 16px; margin: 24px 0 8px; }
.imp table { border-collapse: collapse; width: 100%; margin-top: 16px; }
.imp caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
.imp th, .imp td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.loading { color: var(--muted); }
.none { color: var(--muted); }

/* Abweichung Nr. 11: under 520 px the episode table becomes a card list
   with title, release and Main KPI (columns: 1 thumb, 2 release, 3 ID,
   4 title, 5 duration, 6 Main KPI, 7 retention, 8 status). */
@media (max-width: 520px) {
  .eptab, .eptab tbody { display: block; width: 100%; }
  .eptab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .eptab tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .eptab td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  .eptab td:nth-child(1), .eptab td:nth-child(3), .eptab td:nth-child(5), .eptab td:nth-child(7), .eptab td:nth-child(8) { display: none; }
  .eptab td:nth-child(4) { grid-column: 1 / -1; grid-row: 1; font-weight: 600; }
  .eptab td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); }
  .eptab td:nth-child(2)::before { content: "Release "; }
  .eptab td:nth-child(6) { grid-column: 2; grid-row: 2; text-align: right; }
  .eptab td:nth-child(6)::before { content: "Main KPI "; color: var(--muted); font-weight: 400; }
  .tw { overflow: visible; }
}

/* Settings: save status and match table */
.cfgst { margin-left: 12px; color: var(--muted); font-size: 12.5px; }
.cfgst.bad { color: var(--dn); }
.mtab { width: 100%; border-collapse: collapse; }
.mtab th, .mtab td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.mtab small { display: block; color: var(--muted); font-size: 12px; }
.mact { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mact select { max-width: 260px; }
.btn.warn { border-color: var(--dn); color: var(--dn); }
