/* =========================================================================
   PAD-CLOUD · Stylesheet (Neuaufbau 10/2026)
   Basis: Bootstrap 4.5 für Raster, Modals und Formular-Grundlagen.
   Farben, Abstände und Schriften nur über die Variablen in :root.
   Dunkelmodus: body.displaymode-dark überschreibt nur Variablen.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design-Tokens
   ------------------------------------------------------------------------- */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f7;
  --line: #e2e7ef;
  --line-strong: #cfd7e3;

  --ink: #111c2e;
  --ink-2: #3a4759;
  --muted: #6b778a;

  --primary: #1d5fd6;
  --primary-hover: #174fb4;
  --primary-soft: #e8f0fd;
  --primary-ink: #ffffff;

  --ok: #15a35a;
  --ok-soft: #e4f6ec;
  --warn: #c98a0b;
  --warn-soft: #fdf3dc;
  --danger: #d23b3b;
  --danger-soft: #fdeaea;
  --off: #8b96a8;

  --nav-bg: #ffffff;
  --nav-ink: #3a4759;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 28, 46, .06);
  --shadow: 0 1px 2px rgba(17, 28, 46, .05), 0 6px 18px rgba(17, 28, 46, .06);
  --shadow-lg: 0 20px 50px rgba(17, 28, 46, .18);

  --topbar-h: 64px;
  --sidebar-w: 232px;
  --sidebar-w-collapsed: 68px;
  --gap: 20px;
}

body.displaymode-dark {
  --bg: #0c1220;
  --surface: #131b2c;
  --surface-2: #172135;
  --surface-3: #1d2840;
  --line: #243149;
  --line-strong: #31405c;

  --ink: #e6ebf3;
  --ink-2: #b9c3d3;
  --muted: #8592a8;

  --primary: #4d8dff;
  --primary-hover: #6aa0ff;
  --primary-soft: rgba(77, 141, 255, .14);
  --primary-ink: #ffffff;

  --ok: #34c77b;
  --ok-soft: rgba(52, 199, 123, .14);
  --warn: #e3a72f;
  --warn-soft: rgba(227, 167, 47, .14);
  --danger: #f06363;
  --danger-soft: rgba(240, 99, 99, .14);
  --off: #6b778a;

  --nav-bg: #101828;
  --nav-ink: #b9c3d3;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);

  color-scheme: dark;
}

/* -------------------------------------------------------------------------
   2. Grundlagen
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
small { font-size: 12px; }
b, strong { font-weight: 650; }
img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

.text-muted { color: var(--muted) !important; }
.text-success { color: var(--ok) !important; }
.text-danger { color: var(--danger) !important; }

/* Kleine Überschrift über Titeln */
.eyebrow,
.dash-kicker,
.dash-label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.empty-state {
  padding: 18px 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   3. Bootstrap-Anpassungen (Buttons, Formulare, Tabellen, Modals)
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }

.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):active { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }

.btn-secondary,
.btn-outline-secondary { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2); }
.btn-secondary:hover, .btn-outline-secondary:hover,
.btn-secondary:focus, .btn-outline-secondary:focus,
.btn-outline-secondary:not(:disabled):active { background: var(--surface-3); border-color: var(--line-strong); color: var(--ink); }

.btn-outline-primary { background: var(--surface); border: 1px solid var(--line-strong); color: var(--primary); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

.btn-outline-danger { background: var(--surface); border: 1px solid var(--line-strong); color: var(--danger); }
.btn-outline-danger:hover, .btn-outline-danger:focus { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-success:hover { filter: brightness(.94); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.94); color: #fff; }
.btn-warning { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn-warning:hover { filter: brightness(.94); color: #fff; }

label { display: block; margin-bottom: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

.form-control {
  height: 38px;
  margin-top: 5px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  box-shadow: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea.form-control { height: auto; padding: 9px 11px; }
.form-control-sm { height: 30px; font-size: 13px; padding: 0 9px; }
.form-control:focus {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-control::placeholder { color: var(--muted); opacity: 1; }
.form-control:disabled, .form-control[readonly] { background: var(--surface-3); }
.form-text { margin-top: 5px; font-size: 12px; font-weight: 400; }
select.form-control { padding-right: 28px; }
input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; vertical-align: -3px; }

.table { color: var(--ink); margin-bottom: 0; }
.table th, .table td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table thead th {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table-hover tbody tr:hover { background: var(--surface-2); color: var(--ink); }
.table-responsive { border: 1px solid var(--line); border-radius: var(--radius); }

.alert { border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 13px; }
.alert-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.alert-warning { background: var(--warn-soft); border-color: transparent; color: var(--ink); }

.modal-backdrop.show { opacity: .45; }
.modal-content {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal-header, .modal-footer { border-color: var(--line); padding: 16px 20px; }
.modal-body { padding: 20px; }
.modal-title { font-size: 16px; font-weight: 650; }
.modal-footer { gap: 8px; }
.modal-footer > * { margin: 0; }
.close { color: var(--muted); text-shadow: none; opacity: 1; font-weight: 400; font-size: 24px; }
.close:hover { color: var(--ink); }

/* -------------------------------------------------------------------------
   4. App-Gerüst: Topbar, Sidebar, Inhalt, Fußzeile
   ------------------------------------------------------------------------- */
body.app-page { min-height: 100vh; display: flex; flex-direction: column; }

.app-shell { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Topbar */
.analytics-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(var(--sidebar-w), auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  height: var(--topbar-h);
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.top-brand-meta strong {
  display: block;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--ink);
}
.brand-copyright {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 820px;
  width: 100%;
  justify-self: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.topbar-dls-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--danger);
}
.topbar-dls-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
  animation: pad-onair 2s ease-in-out infinite;
}
@keyframes pad-onair { 50% { opacity: .35; } }
.topbar-dls-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user-lines { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.topbar-user-name { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.topbar-user-role { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.top-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Körper: Sidebar + Inhalt */
.analytics-body { flex: 1; display: flex; min-width: 0; }

.analytics-sidebar {
  position: sticky;
  top: var(--topbar-h);
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  background: var(--nav-bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  transition: width .18s ease, flex-basis .18s ease;
}
.analytics-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.analytics-sidebar-lower { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--nav-ink);
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .12s, color .12s;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.nav-icon { flex: 0 0 20px; display: inline-grid; place-items: center; width: 20px; height: 20px; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-toggle-row { display: flex; justify-content: flex-end; padding: 6px 2px; }
.sidebar-hamburger {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.sidebar-hamburger:hover { color: var(--ink); background: var(--surface-3); }
.sidebar-divider { height: 1px; margin: 6px 4px 8px; background: var(--line); }

/* Sidebar eingeklappt */
body.sidebar-collapsed .analytics-sidebar { flex-basis: var(--sidebar-w-collapsed); width: var(--sidebar-w-collapsed); padding-left: 10px; padding-right: 10px; }
body.sidebar-collapsed .nav-label { display: none; }
body.sidebar-collapsed .nav-link { justify-content: center; padding-left: 0; padding-right: 0; }
body.sidebar-collapsed .sidebar-toggle-row { justify-content: center; }

/* Inhalt */
.app-main {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 22px 28px 32px;
}

.dashboard-headline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dashboard-headline h1 { margin: 2px 0 0; font-size: 22px; font-weight: 700; }

.support-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Lade-Overlay beim Seitenstart */
#pad-global-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .35s ease;
}
#pad-global-loader.fade-out { opacity: 0; pointer-events: none; }
.pad-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: pad-spin .8s linear infinite;
}
@keyframes pad-spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------------
   5. Karten (allgemein)
   ------------------------------------------------------------------------- */
.cardx,
.dash-card,
.sls-panel,
.planner-sls-days-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.cardx { padding: 20px 22px; }
.cardx + .cardx { margin-top: var(--gap); }

.cardx-head,
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cardx h2,
.dash-card h2 { margin: 0; font-size: 16px; font-weight: 650; }
.dash-card h2 { margin-top: 3px; }

.button-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.inline-subcard {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.inline-subcard-head {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   6. Dashboard
   ------------------------------------------------------------------------- */
.dashboard-premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-auto-flow: row dense;
  gap: var(--gap);
  align-items: start;
}
.dash-col-playout { grid-row: span 2; }
.dash-card { padding: 18px 20px; min-width: 0; }

@media (min-width: 1700px) {
  .dashboard-premium-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr); }
  .dash-col-playout { grid-row: auto; }
}

/* Schalter oben rechts */
.dash-switch { display: inline-flex; margin: 0; cursor: pointer; }
.dash-switch input { position: absolute; opacity: 0; pointer-events: none; }
.dash-switch span {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background-color .15s;
}
.dash-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.dash-switch input:checked + span { background: var(--primary); }
.dash-switch input:checked + span::after { transform: translateX(16px); }
.dash-switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Kennzahlen */
.playout-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.playout-stats > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 7px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.playout-stats small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.playout-stats b {
  grid-column: 1 / -1;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-dot { width: 8px; height: 8px; border-radius: 50%; }
.stat-dot.green { background: var(--ok); }
.stat-dot.blue { background: var(--primary); }
.stat-dot.orange { background: var(--warn); }
.stat-dot.red { background: var(--danger); }

/* Playout-Liste */
.playout-table-head,
.playout-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 150px 64px;
  align-items: center;
  gap: 12px;
}
.playout-table-head {
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.playout-table-head span:last-child { text-align: right; }

.playout-list { display: flex; flex-direction: column; }
.playout-row {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color .12s;
}
.playout-row:last-child { border-bottom: 0; }
.playout-row:hover { background: var(--surface-2); }
.playout-row.error { background: var(--danger-soft); }
.playout-row.inactive { opacity: .6; }

.module-icon-wrap { position: relative; display: inline-flex; }
.module-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border-radius: var(--radius-sm);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .03em;
  background: var(--primary-soft);
  color: var(--primary);
}
.module-icon-sls { background: rgba(139, 92, 246, .13); color: #7c4ddb; }
.module-icon-stream { background: rgba(14, 165, 165, .13); color: #0b8f8f; }
body.displaymode-dark .module-icon-sls { color: #b39cff; }
body.displaymode-dark .module-icon-stream { color: #4fd1d1; }

.module-state-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--off);
}
.status-active .module-state-dot { background: var(--ok); }
.status-error .module-state-dot { background: var(--danger); }

.playout-module span { display: flex; flex-direction: column; min-width: 0; }
.playout-module b {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playout-module small,
.playout-activity small {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playout-activity { display: flex; flex-direction: column; min-width: 0; }
.playout-activity b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.playout-row.error .playout-activity small { color: var(--danger); }
.playout-ttair { text-align: right; font-variant-numeric: tabular-nums; }
.playout-ttair b { font-size: 13px; font-weight: 600; }

/* SLS-Karte im Dashboard */
.sls-dashboard-filter {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
}
.sls-dashboard-filter-btn,
.sls-filter-tab {
  height: 28px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
}
.sls-dashboard-filter-btn:hover,
.sls-filter-tab:hover { color: var(--ink); }
.sls-dashboard-filter-btn.active,
.sls-filter-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

.sls-rotation-list { display: flex; flex-direction: column; }
.sls-compact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sls-compact:first-child { padding-top: 0; }
.sls-compact:last-child { border-bottom: 0; padding-bottom: 0; }
.sls-compact img {
  width: 112px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-3);
}
.sls-compact b { display: block; margin: 4px 0 6px; font-size: 13.5px; }
.sls-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sls-meta { font-size: 12.5px; color: var(--ink-2); }
.sls-meta span {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.sls-card-foot { margin-top: 6px; font-size: 12px; color: var(--muted); }

.sls-state-badge,
.sls-state {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sls-state-badge.air, .sls-state.air { background: var(--ok-soft); color: var(--ok); }
.sls-state-badge.pre, .sls-state.pre { background: var(--surface-3); color: var(--muted); }

.sls-previewable { cursor: zoom-in; }

/* DLS-/DL+-Karte */
.premium-dls-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.premium-meta-box {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.premium-meta-box span { display: block; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.premium-meta-box b { display: block; margin-top: 4px; font-size: 13.5px; font-variant-numeric: tabular-nums; }

.cache-value { font-size: 15px; font-weight: 650; white-space: pre-line; }
.cache-small { margin-top: 4px; font-size: 12px; color: var(--muted); }

.dlplus-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dlplus-tags span {
  display: flex;
  flex-direction: column;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.dlplus-tags small {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.dlplus-tags b { font-size: 13px; }
.dlplus-tags em { color: var(--muted); font-size: 13px; }

/* -------------------------------------------------------------------------
   7. DLS-Redaktion
   ------------------------------------------------------------------------- */
.compact-form .form-row { margin: 0; }
.compact-form .form-row > [class*="col-"] { padding: 0; }

.dls-text-label { position: relative; }
.dls-text-label small {
  position: absolute;
  top: 0;
  right: 0;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dls-text-input { height: 44px; font-size: 15px; font-family: var(--font-mono); }
.dls-charbar {
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.dls-charbar-fill { height: 100%; width: 0; background: var(--ok); border-radius: 999px; transition: width .15s, background-color .15s; }
.dls-charbar-fill.full { background: var(--warn); }

.dls-live-date-row { display: flex; gap: 16px; flex-wrap: wrap; }
.dls-live-date-field { flex: 0 1 240px; }
.dls-button-gap { width: 8px; }

/* -------------------------------------------------------------------------
   8. DL/DL+-Planung
   ------------------------------------------------------------------------- */
.timeline-lite {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 6px;
  overflow-x: auto;
}
.tl-day {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.tl-date { margin-bottom: 6px; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.tl-item {
  margin-top: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-text-full { display: block; }
.planner-mask-editor { display: grid; gap: 14px; margin-bottom: 14px; }
.planner-mask-title { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.planner-holiday-check { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* Zeitraster (Wochentage / Stunden), gemeinsam für Planung und SLS */
.sls-time-row { display: flex; flex-wrap: wrap; gap: 3px; }
.time-box {
  min-width: 30px;
  height: 24px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  transition: background-color .1s, color .1s, border-color .1s;
}
.time-box:hover { border-color: var(--primary); color: var(--ink); }
.time-box.active { background: var(--ok); border-color: var(--ok); color: #fff; }
.planner-time-row .time-box { min-width: 38px; height: 30px; font-size: 12.5px; }

/* -------------------------------------------------------------------------
   9. SLS-Dateien
   ------------------------------------------------------------------------- */
/* 30-Tage-Übersicht */
.planner-sls-days-card { padding: 16px 20px; margin-bottom: var(--gap); }
.planner-sls-days-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.planner-sls-days-head strong { font-size: 15px; }
.planner-sls-days-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 8px;
  padding-bottom: 6px;
  overflow-x: auto;
}
.planner-sls-day {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.planner-sls-day:first-child { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.planner-sls-day-date {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
.planner-sls-day-date b { color: var(--primary); }
.planner-sls-day-items { display: flex; flex-direction: column; gap: 6px; }
.planner-sls-day-scrollable .planner-sls-day-items { max-height: 128px; overflow-y: auto; }
.planner-sls-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.planner-sls-item img {
  flex: 0 0 40px;
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.planner-sls-item span {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-sls-day-items em { font-size: 12px; color: var(--muted); }

/* Drei Spalten: Upload | Dateien | Simulation */
.sls-board {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 300px;
  gap: var(--gap);
  align-items: start;
}
.sls-panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.sls-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 52px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.sls-panel-head .form-control { margin-top: 0; text-transform: none; letter-spacing: 0; }

.sls-upload-panel, .sls-sim-panel { position: sticky; top: calc(var(--topbar-h) + 16px); }

.sls-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 220px;
  margin: 14px;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.sls-drop-zone:hover,
.sls-drop-zone.drag { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.drop-icon { font-size: 28px; line-height: 1; color: var(--primary); }
.sls-drop-zone strong { font-size: 13.5px; color: var(--ink); }
.sls-drop-zone span { font-size: 12px; }
.sls-upload-status { padding: 0 14px; font-size: 12px; color: var(--muted); }
.sls-upload-status:empty { display: none; }

.sls-upload-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 14px 14px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}
.sls-upload-tip strong { color: var(--ink); }
.sls-upload-tip-icon { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--warn); }

/* Filterleiste */
.sls-panel-head-filter { justify-content: flex-start; }
.sls-panel-head-filter > span { margin-right: 4px; }
.sls-description-search { flex: 1 1 180px; max-width: 260px; }
.sls-filter-tabs { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: var(--radius-sm); background: var(--surface-3); }
.sls-panel-head-filter #reloadSls { margin-left: auto; }

/* Dateiliste */
.sls-list { padding: 4px 16px; }
.sls-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.sls-row:last-child { border-bottom: 0; }
.sls-row-dirty { position: relative; }
.sls-row-dirty::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--warn);
}
.sls-row-expired .sls-thumb { filter: grayscale(1); opacity: .55; }

/* Bild ersetzen: neue Datei auf eine Bestandsdatei ziehen */
.sls-row { position: relative; transition: background-color .15s; }
.sls-row.sls-drop-target { background: var(--primary-soft); border-radius: var(--radius); }
.sls-row.sls-drop-target .sls-thumb { outline: 2px dashed var(--primary); outline-offset: 3px; }
.sls-row.sls-drop-target .sls-thumb-wrap::after {
  content: "Neues Bild hier ablegen";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(29, 95, 214, .78);
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
  pointer-events: none;
}
.sls-row.sls-row-replaced .sls-thumb { box-shadow: 0 0 0 3px var(--ok); transition: box-shadow .3s; }

.sls-thumb-wrap { position: relative; align-self: start; }
.sls-thumb {
  display: block;
  width: 168px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-3);
}
.sls-state { position: absolute; top: 7px; right: 7px; box-shadow: var(--shadow-sm); }
.sls-state.air { background: var(--ok); color: #fff; }
.sls-state.pre { background: rgba(17, 28, 46, .72); color: #fff; }
.sls-expired-badge {
  position: absolute;
  left: 7px;
  bottom: 7px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .04em;
}

.sls-check { position: absolute; top: 7px; left: 7px; z-index: 2; margin: 0; cursor: pointer; }
.sls-check input { position: absolute; opacity: 0; pointer-events: none; }
.sls-check span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 5px;
  background: rgba(17, 28, 46, .35);
  box-shadow: var(--shadow-sm);
}
.sls-check input:checked + span { background: var(--primary); border-color: var(--primary); }
.sls-check input:checked + span::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.sls-check input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.sls-edit { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sls-edit > .descr { margin-top: 0; font-weight: 600; }
.sls-date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sls-date-grid label { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sls-date-grid .form-control { height: 32px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.sls-edit .sls-time-row.hours { max-width: 420px; }
.sls-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sls-row-actions small { margin-right: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Sammelaktionen */
.sls-bulkbar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.sls-bulk-spacer { flex: 1; }

/* OnAir-Simulation */
.sls-sim-input { flex: 1 1 160px; max-width: 190px; }
.sls-simulation { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; max-height: calc(100vh - var(--topbar-h) - 120px); overflow-y: auto; }
.sls-sim-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.sls-sim-item img {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.sls-sim-item b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sls-sim-meta { font-size: 12px; color: var(--muted); }

/* -------------------------------------------------------------------------
   10. DLS-Rotation
   ------------------------------------------------------------------------- */
.dls-rotation-subline,
.users-subline { margin-top: 3px; font-size: 13px; color: var(--muted); }
.dls-rotation-meta,
.users-meta { margin-bottom: 12px; }

.dls-rotation-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.dls-rotation-table td { font-size: 13px; white-space: nowrap; }
.dls-rotation-table tbody td:first-child { position: relative; padding-left: 22px; font-variant-numeric: tabular-nums; }
.dls-rotation-table tbody td:first-child::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
}
.dls-rotation-row-green td:first-child::before { background: var(--ok); }
.dls-rotation-row-yellow td:first-child::before { background: var(--warn); }
.dls-rotation-textcell { white-space: normal !important; min-width: 280px; max-width: 520px; }

.dls-rotation-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.dls-rotation-status.is-active { background: var(--ok-soft); color: var(--ok); }
.dls-rotation-status.is-inactive { background: var(--surface-3); color: var(--muted); }
.dls-rotation-status.is-unknown { background: var(--warn-soft); color: var(--warn); }

.dls-rotation-icon { font-weight: 700; }
.dls-rotation-icon-yes { color: var(--ok); }
.dls-rotation-icon-no { color: var(--muted); }

.dls-rest-head { display: flex; flex-direction: column; gap: 4px; }
.dls-rest-head-icons { display: flex; gap: 6px; }
.dls-rest-head-icon { font-size: 13px; cursor: help; }
.dls-rest-col-cell { min-width: 150px; }
.dls-rest-cell { display: flex; align-items: center; gap: 6px; }
.dls-rest-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  cursor: help;
}
.dls-rest-glyph { font-size: 14px; line-height: 1; }
.dls-rest-icon.is-active { background: var(--ok-soft); border-color: var(--ok); }
.dls-rest-icon.is-inactive { opacity: .35; filter: grayscale(1); }
.dls-rest-icon.is-unknown { background: var(--warn-soft); border-color: var(--warn); }

/* -------------------------------------------------------------------------
   11. Benutzer & Einstellungen
   ------------------------------------------------------------------------- */
.users-head-actions { display: flex; align-items: center; gap: 8px; }
.users-search { width: 220px; margin-top: 0; }
.users-table td { font-size: 13.5px; }
.users-actions { text-align: right; white-space: nowrap; }
.users-actions .btn + .btn { margin-left: 6px; }
.users-self-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: 1px;
}
.users-role-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}
.users-role-superadmin { background: var(--danger-soft); color: var(--danger); }
.users-role-customeradmin { background: var(--primary-soft); color: var(--primary); }
.users-role-redaktion { background: var(--ok-soft); color: var(--ok); }
.users-role-marketing { background: var(--warn-soft); color: var(--warn); }
.users-field-full { display: block; }

.settings-card { max-width: 640px; }
.settings-message { margin-top: 10px; font-size: 13px; }

/* -------------------------------------------------------------------------
   12. Eigene Dialoge (Hinweis, Vorschau, Upload)
   ------------------------------------------------------------------------- */
.pad-ui-modal,
.sls-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 14, 26, .5);
}
.pad-ui-modal.show,
.sls-upload-modal.show { display: flex; animation: pad-fade .15s ease; }
@keyframes pad-fade { from { opacity: 0; } }

.pad-ui-modal-card,
.sls-upload-modal-card {
  width: 100%;
  max-width: 440px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.pad-ui-modal-title,
.sls-upload-modal-title { font-size: 16px; font-weight: 650; }
.pad-ui-modal-body { margin-top: 10px; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.pad-ui-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.sls-preview-card { max-width: 400px; }
.sls-preview-stage {
  display: grid;
  place-items: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: repeating-conic-gradient(var(--surface-3) 0 25%, var(--surface-2) 0 50%) 0 0 / 16px 16px;
}
.sls-preview-stage img { width: 320px; height: 240px; object-fit: contain; box-shadow: var(--shadow); }

.sls-replace-card { max-width: 560px; }
.sls-replace-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.sls-replace-compare figure { margin: 0; text-align: center; }
.sls-replace-compare img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
}
.sls-replace-compare figcaption { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sls-replace-arrow { font-size: 22px; color: var(--muted); }
@media (max-width: 480px) {
  .sls-replace-compare { grid-template-columns: 1fr; }
  .sls-replace-arrow { transform: rotate(90deg); }
}

.sls-upload-modal-sub { margin-top: 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sls-upload-progress { height: 8px; margin-top: 16px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.sls-upload-progress-fill { height: 100%; width: 0; border-radius: 999px; background: var(--primary); transition: width .2s; }
.sls-upload-progress-text { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------------------
   13. Anmeldeseite
   ------------------------------------------------------------------------- */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(29, 95, 214, .12), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(21, 163, 90, .08), transparent 60%),
    var(--bg);
}
.login-pro-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  width: 100%;
  max-width: 980px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.login-pro-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 44px 36px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(155deg, #0e1a33 0%, #13284f 100%);
}
.login-pro-orb { position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.login-pro-orb-one { width: 280px; height: 280px; top: -90px; left: -70px; background: rgba(61, 132, 255, .45); }
.login-pro-orb-two { width: 220px; height: 220px; right: -60px; bottom: 30px; background: rgba(21, 196, 120, .22); }
.login-pro-brand-panel { position: relative; }
.login-pro-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.login-pro-hero h1 { margin: 10px 0 14px; color: #fff; font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.login-pro-hero p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.6; }
.login-pro-copyright {
  position: relative;
  display: flex;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .55);
}

.login-pro-card { padding: 44px 44px 32px; }
.login-pro-card h2 { margin: 0; font-size: 26px; font-weight: 750; }
.login-pro-sub { margin: 6px 0 24px; color: var(--muted); font-size: 14px; }

.login-pro-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 550;
}
.login-pro-alert-icon {
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.login-pro-field { margin-bottom: 16px; }
.login-pro-input { height: 44px; font-size: 15px; }
.login-pro-password-wrap { position: relative; }
.login-pro-password-wrap .login-pro-input { padding-right: 96px; }
.login-pro-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  height: 32px;
  margin-top: 2px;
  padding: 0 10px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.login-pro-submit {
  position: relative;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  background: var(--primary);
  border: 0;
  color: #fff;
  font-size: 15px;
}
.login-pro-submit:hover { background: var(--primary-hover); color: #fff; }
.login-pro-submit-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pad-spin .8s linear infinite;
}
.login-pro-submit.is-loading .login-pro-submit-text { display: none; }
.login-pro-submit.is-loading .login-pro-submit-loader { display: inline-block; }

.login-pro-divider { height: 1px; margin: 26px 0 18px; background: var(--line); }
.login-pro-security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.login-pro-security-grid > div {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.login-pro-security-grid strong {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.login-pro-security-grid span { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-pro-footnote { margin-top: 14px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* -------------------------------------------------------------------------
   14. Responsiv
   ------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .sls-board { grid-template-columns: 180px minmax(0, 1fr); }
  .sls-sim-panel { grid-column: 1 / -1; position: static; }
  .sls-simulation { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-height: none; }
}

@media (max-width: 1100px) {
  .analytics-topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .brand-copyright { display: none; }
  .dashboard-premium-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-col-playout { grid-row: auto; }
}

@media (max-width: 900px) {
  :root { --topbar-h: auto; --gap: 14px; }

  .analytics-topbar {
    position: static;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    height: auto;
    padding: 12px 14px;
  }
  .topbar-center { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .topbar-user-lines { display: none; }
  .topbar-center { padding: 0 12px; }
  .topbar-dls-label { font-size: 0; gap: 0; }

  .analytics-body { flex-direction: column; }
  .analytics-sidebar,
  body.sidebar-collapsed .analytics-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-direction: row;
    flex-basis: auto;
    width: 100%;
    height: auto;
    padding: 6px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
  }
  .analytics-sidebar nav,
  .analytics-sidebar-lower { flex-direction: row; margin-top: 0; gap: 4px; }
  .sidebar-toggle-row, .sidebar-divider { display: none; }
  .nav-link { flex: 0 0 auto; min-height: 36px; padding: 6px 10px; }
  body.sidebar-collapsed .nav-label { display: inline; }
  .analytics-sidebar-lower { padding-left: 6px; margin-left: 2px; border-left: 1px solid var(--line); }

  .app-main { padding: 16px 14px 24px; }
  .dashboard-headline { margin-bottom: 12px; }
  .dashboard-headline .eyebrow { display: none; }
  .dashboard-headline h1 { font-size: 19px; }

  .cardx, .dash-card { padding: 16px; }
  .playout-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .playout-table-head { display: none; }
  .playout-row { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 4px; }
  .playout-activity { grid-column: 2 / 3; }
  .playout-ttair { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

  .sls-board { grid-template-columns: minmax(0, 1fr); }
  .sls-upload-panel { position: static; }
  .sls-drop-zone { min-height: 110px; }
  .sls-panel-head-filter #reloadSls { margin-left: 0; }

  .users-head-actions { width: 100%; }
  .users-search { flex: 1; width: auto; }
}

@media (max-width: 640px) {
  .playout-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-dls-meta { grid-template-columns: 1fr; }
  .sls-dashboard-head .sls-dashboard-filter { width: 100%; }
  .sls-dashboard-filter-btn { flex: 1; }
  .sls-compact { grid-template-columns: 88px minmax(0, 1fr); }
  .sls-compact img { width: 88px; }

  .sls-row { grid-template-columns: minmax(0, 1fr); }
  .sls-thumb { width: 100%; max-width: 320px; }
  .sls-date-grid { grid-template-columns: 1fr; }
  .sls-description-search { max-width: none; }
  .sls-bulk-spacer { display: none; }

  .dls-live-date-field { flex: 1 1 100%; }

  .login-pro-shell { grid-template-columns: 1fr; }
  .login-pro-hero { gap: 0; padding: 26px 24px; }
  .login-pro-hero h1 { font-size: 32px; margin-bottom: 8px; }
  .login-pro-hero p { font-size: 13.5px; }
  .login-pro-copyright { display: none; }
  .login-pro-card { padding: 26px 24px 22px; }
  .login-pro-security-grid > div { padding: 7px 9px; }
}
