/*
 * my.lab — beta (includes/beta.php): σήμα, παράθυρο εξήγησης / αναφοράς, μήνυμα σφάλματος.
 */

/* Σήμα BETA */
.ml-beta {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1.5px solid var(--pink, #F0145A);
  border-radius: 999px;
  background: transparent;
  color: var(--pink, #F0145A);
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
button.ml-beta:hover,
button.ml-beta:focus-visible {
  background: var(--pink, #F0145A);
  color: #fff;
}
.ml-beta.is-static {
  cursor: default;
}
.ml-auth-card > .ml-beta {
  align-self: flex-start;
  margin-bottom: 14px;
}
.ml-top-r .ml-beta {
  margin-right: 10px;
}

/* Παράθυρο */
.ml-beta-open,
.ml-beta-open body {
  overflow: hidden;
}
.ml-beta-dlg {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ml-beta-dlg[hidden] {
  display: none;
}
.ml-beta-dlg > .bd {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 17, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ml-beta-dlg .card {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 30px 28px 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: ml-beta-in 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ml-beta-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ml-beta-dlg .card {
    animation: none;
  }
}
.ml-beta-dlg .x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2, #f2f1ed);
  color: var(--ink, #1f1e1b);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.ml-beta-dlg h2 {
  margin: 12px 0 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink, #1f1e1b);
}
.ml-beta-dlg h2 .dot {
  color: var(--pink, #F0145A);
}
.ml-beta-dlg form h2,
.ml-beta-dlg [data-beta-pane="done"] h2 {
  margin-top: 0;
  padding-right: 44px;
}
.ml-beta-dlg .lead {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2, #55524b);
}
.ml-beta-dlg .pts {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.ml-beta-dlg .pts li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--border, #ecebe6);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2, #55524b);
}
.ml-beta-dlg .pts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink, #F0145A);
}
.ml-beta-dlg .pts strong {
  color: var(--ink, #1f1e1b);
}
.ml-beta-dlg .acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.ml-beta-dlg .acts a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.ml-beta-dlg .fld {
  display: block;
  margin-top: 16px;
}
.ml-beta-dlg .fld > span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1f1e1b);
}
.ml-beta-dlg textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--input-border, #d7d5cf);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  resize: vertical;
}
.ml-beta-dlg textarea:focus {
  outline: 2px solid var(--pink, #F0145A);
  outline-offset: 1px;
}
.ml-beta-dlg input[type="file"] {
  max-width: 100%;
  font-size: 14px;
}
.ml-beta-dlg .ctx {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted, #6f6c64);
}
.ml-beta-dlg .ctx summary {
  cursor: pointer;
}
.ml-beta-dlg .ctx pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2, #f2f1ed);
  font-family: var(--mono, monospace);
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.ml-beta-dlg .err {
  margin: 12px 0 0;
  color: var(--error, #b32d2e);
  font-size: 14px;
}

/* Μήνυμα σφάλματος της σελίδας */
.ml-beta-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 205;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 40px);
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: var(--ink, #1f1e1b);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}
.ml-beta-toast[hidden] {
  display: none;
}
.ml-beta-toast .go {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--pink, #F0145A);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ml-beta-toast .x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
/* Στο κινητό πάνω από το κάτω μενού του my.lab */
@media only screen and (max-width: 767px) {
  .ml-beta-toast {
    left: 12px;
    right: 12px;
    bottom: 84px;
    max-width: none;
    border-radius: 18px;
  }
  .ml-beta-toast span {
    flex: 1;
  }
  .ml-beta-dlg .card {
    padding: 26px 20px 20px;
  }
  .ml-beta-dlg h2 {
    font-size: 24px;
  }
}
