* {
  box-sizing: border-box;
}

:root {
  --bg: #070a0f;
  --text: #f8fafc;
  --muted: #b7c1cf;
  --orange: #ff7a18;
  --gold: #ffbd35;
  --border: rgba(255, 255, 255, .11);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 122, 24, .17), transparent 28%),
    radial-gradient(circle at 88% 20%, rgba(255, 196, 0, .10), transparent 26%),
    linear-gradient(135deg, #070a0f 0%, #0f1724 48%, #080b10 100%);
  min-height: 100vh;
}

.bg-logo {
  position: fixed;
  inset: 0;
  background: url('/leaderboard/assets/osp-folwarki.png') center 58% / 620px auto no-repeat;
  opacity: .055;
  pointer-events: none;
  z-index: 0;
}

/* HEADER */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 24px;
  background: rgba(8, 12, 18, .90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45));
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: #ffba42;
  font-weight: 1000;
}

h1 {
  margin: 4px 0 0;
  font-size: 32px;
  letter-spacing: .2px;
}

h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

p {
  margin: 0;
  color: var(--muted);
}

/* NAV */

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  background: #1d2737;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: .18s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

nav a:hover,
.button-link:hover,
button:hover {
  transform: translateY(-1px);
  background: #283548;
}

nav a.active,
.button-link,
button {
  background: linear-gradient(135deg, #ffbd35, #ff6a00);
  color: #111;
}

/* LAYOUT */

main {
  position: relative;
  z-index: 1;
  padding: 28px 18px 45px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 20px;
  max-width: 1180px;
}

.section-head.centered {
  align-items: center;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* LEADERBOARD */

.leaderboard-list.one-column {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.card.gold {
  background: linear-gradient(135deg, rgba(255, 211, 0, .35), rgba(255, 255, 255, .04));
  border-color: rgba(255, 211, 0, .9);
}

.card.silver {
  background: linear-gradient(135deg, rgba(210, 218, 229, .32), rgba(255, 255, 255, .04));
  border-color: rgba(230, 235, 242, .75);
}

.card.bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, .32), rgba(255, 255, 255, .04));
  border-color: rgba(205, 127, 50, .85);
}

.photo,
.placeholder {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, .16);
}

.photo {
  object-fit: cover;
  background: #273244;
}

.placeholder {
  background: #273244;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 1000;
  color: #dbe4f1;
}

.rank {
  font-size: 14px;
  color: #d9e2ef;
  font-weight: 1000;
}

.name {
  font-size: 21px;
  font-weight: 1000;
  margin: 3px 0;
}

.medal {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .34);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.total {
  min-width: 86px;
  text-align: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .3);
}

.total strong {
  display: block;
  font-size: 31px;
  line-height: 1;
}

.total span {
  font-size: 10px;
  color: #dbe4f1;
  font-weight: 1000;
}

/* TABELA */

.table-section {
  margin-top: 42px;
}

.table-wrap {
  overflow: visible;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(16, 24, 35, .78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  backdrop-filter: blur(6px);
}

.table-wrap.compact {
  max-width: 1180px;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
}

table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: #f8fafc;
}

th,
td {
  border: 1px solid rgba(255, 255, 255, .075);
  padding: 4px 3px;
  text-align: center;
  font-size: 12px;
}

th {
  background: rgba(255, 255, 255, .07);
  color: #e9eef6;
  font-size: 11px;
  font-weight: 700;
}

th.name-cell,
td.name-cell {
  width: 230px;
  min-width: 230px;
  text-align: left;
  font-weight: 900;
  background: #17202b;
  position: static;
  left: auto;
  z-index: 20;
  overflow: hidden;
  white-space: nowrap;
}

.sum-cell {
  width: 55px;
  background: rgba(255, 148, 28, .18);
  font-weight: 1000;
}

/* INPUTY */

input {
  width: 100%;
  max-width: 34px;
  border: 0;
  border-radius: 7px;
  padding: 5px 2px;
  background: rgba(0, 0, 0, .22);
  color: #fff;
  text-align: center;
  font-size: 12px;
  outline: 1px solid rgba(255, 255, 255, .09);
}

input:focus {
  outline: 2px solid #ff9b16;
  background: rgba(0, 0, 0, .36);
}

.name-input {
  width: 100%;
  max-width: 190px;
  text-align: left;
}

/* ZAPIS */

.save-bar {
  max-width: 1180px;
  margin: 16px auto 0;
  text-align: right;
}

/* KOMUNIKATY */

.success,
.error {
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 900;
}

.success {
  background: rgba(22, 163, 74, .18);
  border: 1px solid rgba(22, 163, 74, .35);
  color: #bbf7d0;
}

.error {
  background: rgba(220, 38, 38, .18);
  border: 1px solid rgba(220, 38, 38, .35);
  color: #fecaca;
}

.delete-link {
  color: #fecaca;
  font-weight: 900;
  text-decoration: none;
}

/* ZDJĘCIA */

.photo-manager {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.photo-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .11);
}

.photo-row img,
.photo-row .placeholder {
  width: 62px;
  height: 62px;
  border-radius: 14px;
}

.photo-row-name {
  font-weight: 1000;
  font-size: 18px;
}

.photo-row-path {
  font-size: 12px;
  color: #aeb8c5;
  margin-top: 3px;
  word-break: break-all;
}

.upload-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.upload-form input[type="file"] {
  width: 210px;
  max-width: 210px;
  background: rgba(0, 0, 0, .2);
  padding: 8px;
}

/* LOGOWANIE */

.login-page {
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-box {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 30px;
  border-radius: 28px;
  background: rgba(16, 24, 35, .83);
  border: 1px solid var(--border);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
  text-align: center;
}

.login-box img {
  width: 130px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, .4));
}

.login-box h1 {
  font-size: 32px;
  margin: 15px 0 8px;
}

.login-box form {
  margin-top: 20px;
  text-align: left;
  display: grid;
  gap: 12px;
}

.login-box label {
  font-weight: 900;
  color: #e9eef6;
}

.login-box input {
  width: 100%;
  max-width: 100%;
  text-align: left;
  margin-top: 7px;
  padding: 13px;
  border-radius: 12px;
}

.login-box button {
  width: 100%;
  margin-top: 4px;
}

.back-link {
  display: inline-flex;
  margin-top: 18px;
  color: #ffc46b;
  text-decoration: none;
  font-weight: 900;
}

/* MOBILE / TABLET */

@media (max-width: 1050px) {
  .topbar,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .leaderboard-list.one-column,
  .table-wrap.compact,
  .photo-manager {
    max-width: 100%;
  }

  .photo-row {
    grid-template-columns: 62px 1fr;
  }

  .upload-form {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .table-wrap,
  .table-wrap.compact {
    overflow-x: auto;
  }

  table {
    min-width: 860px;
    table-layout: auto;
  }

th.name-cell,
td.name-cell {
  position: sticky;
  left: 0;
  z-index: 20;
  min-width: 210px;
  background: #17202b;
  box-shadow: 8px 0 16px rgba(0, 0, 0, .35);
  overflow: hidden;
  white-space: nowrap;
}

  .name-input {
    max-width: 190px;
  }
}

@media (max-width: 640px) {
  .card {
    grid-template-columns: 58px 1fr;
    gap: 12px;
  }

  .photo,
  .placeholder {
    width: 58px;
    height: 58px;
  }

  .total {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .topbar {
    padding: 14px;
  }

  h1 {
    font-size: 24px;
  }
}
/* =========================
   ANIMOWANE RAMKI PODIUM
========================= */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card.gold,
.card.silver,
.card.bronze {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* warstwa z animowaną ramką */

.card.gold::before,
.card.silver::before,
.card.bronze::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  pointer-events: none;
  z-index: 2;
  animation: spinBorder 4s linear infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* złoto */

.card.gold::before {
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 260deg,
    #ffd700 300deg,
    #fff4a3 330deg,
    #ffd700 350deg,
    transparent 360deg
  );
}

/* srebro */

.card.silver::before {
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 260deg,
    #cfd8dc 300deg,
    #ffffff 330deg,
    #cfd8dc 350deg,
    transparent 360deg
  );
}

/* brąz */

.card.bronze::before {
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 260deg,
    #cd7f32 300deg,
    #f0b27a 330deg,
    #cd7f32 350deg,
    transparent 360deg
  );
}

@keyframes spinBorder {
  from {
    --angle: 0deg;
  }

  to {
    --angle: 360deg;
  }
}
.topbar{
    transition:
        transform .3s ease,
        opacity .3s ease;
}

.topbar-hidden{
    transform:translateY(-100%);
    opacity:0;
}
.counter-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.counter-box div {
  padding: 14px 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .1);
}

.counter-box strong {
  display: block;
  font-size: 32px;
  color: #ffbd35;
  line-height: 1;
}

.counter-box span {
  display: block;
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.joke-text {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 900;
  color: #f8fafc;
}

@media (max-width: 640px) {
  .counter-box {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =========================
   STREFA STRAŻAKA / MINI CMS
========================= */

.topbar-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.dashboard-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dashboard-card,
.post-card,
.download-card,
.admin-card,
.admin-list-item {
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.dashboard-card {
  display: block;
  padding: 22px;
  color: #fff;
  text-decoration: none;
  transition: .18s;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 189, 53, .18), rgba(255, 255, 255, .04));
}

.dashboard-card span,
.post-date,
.admin-list-item span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 122, 24, .14);
  color: #ffc46b;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.dashboard-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 22px;
}

.dashboard-card p,
.post-card p,
.download-card p,
.admin-list-item p {
  line-height: 1.6;
}

.split-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.compact-head {
  margin-bottom: 12px;
}

.post-list,
.download-list,
.admin-list {
  display: grid;
  gap: 12px;
}

.post-card {
  overflow: hidden;
  padding: 20px;
}

.announcement-card {
  background: linear-gradient(135deg, rgba(255, 189, 53, .14), rgba(255, 255, 255, .035));
  border-color: rgba(255, 189, 53, .25);
}

.post-card h3,
.download-card h3,
.admin-card h3,
.admin-list-item strong {
  display: block;
  margin: 12px 0 8px;
  color: #fff;
  font-size: 21px;
}

.post-image {
  display: block;
  width: calc(100% + 40px);
  height: 210px;
  margin: -20px -20px 16px;
  object-fit: cover;
  background: rgba(0, 0, 0, .24);
  border-bottom: 1px solid var(--border);
}

.download-list {
  max-width: 980px;
  margin: 0 auto;
}

.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

/* =========================
   ADMIN
========================= */

.admin-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 16px;
  align-items: start;
}

.admin-card {
  padding: 20px;
}

.admin-card.narrow {
  max-width: 560px;
  margin: 0 auto;
}

.admin-form {
  display: grid;
  gap: 13px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #e9eef6;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  text-align: left;
  font-size: 14px;
  outline: 1px solid rgba(255, 255, 255, .10);
  font-family: Arial, Helvetica, sans-serif;
}

.admin-form input[type="file"] {
  padding: 10px;
}

.admin-form textarea {
  resize: vertical;
  min-height: 130px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.admin-item-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.current-file {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .10);
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

@media (max-width: 1050px) {
  .dashboard-grid,
  .split-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .download-card,
  .admin-list-item {
    grid-template-columns: 1fr;
  }

  .admin-item-actions {
    justify-content: flex-start;
  }
}


/* =========================
   STQC LIVE
========================= */
.stqc-live-section {
  max-width: 1180px;
  margin: 32px auto 0;
}

.stqc-live-shell {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(9, 15, 24, .96), rgba(17, 27, 41, .88));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.30);
}

.stqc-live-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.stqc-live-kicker {
  margin-bottom: 5px;
  color: #ffbd35;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 2.5px;
}

.stqc-live-head h2 {
  margin-bottom: 5px;
}

.stqc-live-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.28);
  color: #fecaca;
}

.stqc-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239,68,68,.10);
}

.stqc-live-status.is-online {
  color: #bbf7d0;
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.30);
}

.stqc-live-status.is-online .stqc-live-dot {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,.10), 0 0 16px rgba(34,197,94,.55);
  animation: stqcPulse 1.8s ease-in-out infinite;
}

@keyframes stqcPulse {
  50% { transform: scale(.78); opacity: .72; }
}

.stqc-live-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.stqc-live-stats > div {
  padding: 16px 18px;
  background: rgba(8,12,18,.88);
}

.stqc-live-stats span {
  display: block;
  color: #9aa8ba;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.stqc-live-stats strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  color: #fff;
}

.stqc-live-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.stqc-live-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

button.stqc-filter {
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

button.stqc-filter:hover {
  transform: none;
  background: rgba(255,255,255,.10);
}

button.stqc-filter.active {
  color: #101418;
  background: linear-gradient(135deg, #ffbd35, #ff7a18);
}

.stqc-live-updated {
  color: #7f8da0;
  font-size: 11px;
  white-space: nowrap;
}

.stqc-live-feed {
  max-height: 560px;
  overflow-y: auto;
}

.stqc-live-row {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.018);
  transition: background .2s ease, transform .2s ease;
}

.stqc-live-row:last-child { border-bottom: 0; }
.stqc-live-row:hover { background: rgba(255,255,255,.045); }
.stqc-live-row.is-new { animation: stqcNew 1.1s ease-out; }

@keyframes stqcNew {
  0% { background: rgba(255,189,53,.24); transform: translateY(-4px); }
  100% { background: rgba(255,255,255,.018); transform: translateY(0); }
}

.stqc-event-icon {
  width: 8px;
  border-radius: 999px;
  background: #64748b;
  margin: 2px 0;
}

.type-alarm .stqc-event-icon { background: #ef4444; box-shadow: 0 0 16px rgba(239,68,68,.35); }
.type-test .stqc-event-icon { background: #3b82f6; box-shadow: 0 0 16px rgba(59,130,246,.28); }
.type-duplicate .stqc-event-icon { background: #f59e0b; box-shadow: 0 0 16px rgba(245,158,11,.28); }
.type-unknown .stqc-event-icon { background: #94a3b8; }

.stqc-event-main { min-width: 0; }
.stqc-event-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.stqc-event-top strong {
  font-size: 16px;
  color: #f8fafc;
}

.stqc-event-top time {
  flex: 0 0 auto;
  color: #8fa0b4;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.stqc-event-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.stqc-event-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 7px;
  color: #dbe5f1;
  background: rgba(255,255,255,.07);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .7px;
}

.type-alarm .stqc-event-badge { color: #fecaca; background: rgba(239,68,68,.12); }
.type-test .stqc-event-badge { color: #bfdbfe; background: rgba(59,130,246,.12); }
.type-duplicate .stqc-event-badge { color: #fde68a; background: rgba(245,158,11,.12); }

.stqc-event-bottom code,
.stqc-raw {
  color: #aab7c7;
  font-size: 11px;
}

.stqc-event-bottom code {
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.26);
}

.stqc-raw { opacity: .74; }

.stqc-live-empty {
  padding: 34px 20px;
  text-align: center;
  color: #8291a5;
}

@media (max-width: 760px) {
  .stqc-live-head,
  .stqc-live-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .stqc-live-stats { grid-template-columns: repeat(2, 1fr); }
  .stqc-live-updated { white-space: normal; }
  .stqc-event-top { align-items: flex-start; }
  .stqc-event-top strong { font-size: 15px; }
  .stqc-event-top time { font-size: 11px; }
  .stqc-raw { width: 100%; }
}


/* STQC LIVE — kafelek na stronie głównej */
@media (min-width: 1051px) {
  .dashboard-grid-with-alarmy {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dashboard-card-alarmy {
  background: linear-gradient(135deg, rgba(239, 68, 68, .13), rgba(255, 189, 53, .07));
}

.dashboard-card-alarmy:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, .20), rgba(255, 189, 53, .12));
}

.alarmy-page-note {
  max-width: 1180px;
  margin: 0 auto 16px;
}
