.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  z-index: 2147483000;
  max-width: min(92vw, 460px);
  padding: 12px 16px;
  border-radius: 10px;
  background: #151518;
  color: #fff;
  font: 500 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.25);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s;
}

.demo-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.demo-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 2147482999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: rgb(21 21 24 / 0.92);
  color: #fff;
  font: 500 13px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.demo-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5b942;
}


/* Titlurile din lista lucrărilor: link spre lucrare, ca rândul întreg */
.demo-title-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.25s;
}

.demo-row-link {
  cursor: pointer;
}

.demo-row-link .jury-work-link {
  white-space: nowrap;
}

.demo-row-link:hover .demo-title-link,
.demo-title-link:focus-visible {
  background-size: 100% 1px;
}

.demo-row-link:hover > td {
  background: rgb(211 38 50 / 0.04);
}

.demo-empty {
  padding: 28px 16px;
  text-align: center;
  color: #6b6b72;
}

@media (max-width: 760px), (pointer: coarse) {
  .demo-bar {
    position: static;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-bottom: 20px;
    transform: none;
    font-size: 12px;
  }

  input,
  select,
  textarea,
  .split-workspace .jury-copy-grid textarea {
    /* Evită zoom-ul automat la focus în Safari, inclusiv peste stilurile copiei originale. */
    font-size: 16px !important;
  }
}
