.sgl-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;line-height:1.6;font-weight:600}
.sgl-badge-danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.sgl-badge-ok{background:#dcfce7;color:#065f46;border:1px solid #bbf7d0}

.sgl-act.sgl-report{border:1px solid rgba(255,255,255,0.14);background:transparent;border-radius:12px;padding:8px 10px;margin-left:6px;cursor:pointer}
.sgl-act.sgl-report:hover{transform:translateY(-1px)}

/* Modal */
#sgl-report-modal{position:fixed;inset:0;display:none}
#sgl-report-modal.is-open{display:block}
#sgl-report-modal .sgl-report-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
#sgl-report-modal .sgl-report-modal__dialog{position:relative;max-width:420px;margin:10vh auto;background:#111827;color:#e5e7eb;border-radius:12px;padding:16px;border:1px solid rgba(255,255,255,.12);box-shadow:0 10px 30px rgba(0,0,0,.35)}
#sgl-report-modal .sgl-report-modal__title{margin:0 0 6px;font-size:16px;font-weight:700}
#sgl-report-modal .sgl-report-modal__text{margin:0 0 12px;font-size:14px;opacity:.95}
#sgl-report-modal .sgl-report-modal__actions{display:flex;gap:8px;justify-content:flex-end}

/* In-card modal, sized to the card with a subtle glass effect + animation */
.sgl-has-report{position:relative}
.sgl-report-incard{position:absolute; inset:0; display:none; z-index:30}
.sgl-report-incard.is-open{display:block}
.sgl-report-incard__backdrop{position:absolute; inset:0; background:rgba(0,0,0,.45); backdrop-filter: blur(2px)}
.sgl-report-incard__dialog{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) scale(.96);
  width:min(92%, 460px); background:rgba(17,24,39,.9); color:#e5e7eb;
  border-radius:16px; padding:16px; border:1px solid rgba(255,255,255,.12);
  box-shadow:0 20px 40px rgba(0,0,0,.35); opacity:0;
  animation: sgl-pop .18s ease-out forwards;
}
.sgl-report-incard__title{margin:0 0 8px; font-size:16px; font-weight:800}
.sgl-report-incard__text{margin:0 0 12px; font-size:14px; opacity:.95}
.sgl-report-incard__actions{display:flex; gap:8px; justify-content:flex-end}
@keyframes sgl-pop{
  from{ transform:translate(-50%,-50%) scale(.96); opacity:0 }
  to{ transform:translate(-50%,-50%) scale(1); opacity:1 }
}

/* In-card modal adapted to SG theme */
.sgl-report-incard__dialog {
  background: rgba(24, 24, 27, 0.92); /* dark neutral with transparency */
  backdrop-filter: blur(6px);
  border: 1px solid #78c86b; /* green accent border */
  color: #f9fafb;
  border-radius: 14px;
}
.sgl-report-incard__title {
  font-weight: 700;
}
.sgl-report-incard__actions .button-primary {
  background-color: #ef4444; /* red alert */
  border-color: #dc2626;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.sgl-report-incard__actions .button-primary:hover {
  background-color: #dc2626;
  border-color: #b91c1c;
  box-shadow: 0 0 10px rgba(239,68,68,0.4);
}
.sgl-report-incard__actions .button {
  background-color: #374151; /* dark neutral */
  border-color: #4b5563;
  color: #e5e7eb;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color .2s ease;
}
.sgl-report-incard__actions .button:hover {
  background-color: #4b5563;
}


/* === Brand styling for in-card confirm === */
.sgl-report-incard__dialog{
  background: rgba(24,24,27,0.92) !important; /* dark translucent */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid #78c86b !important;        /* accent green */
  color: #f9fafb !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(120,200,107,0.08);
}
.sgl-report-incard__title{ color:#f9fafb }
.sgl-report-incard__text{ color:#e5e7eb }

/* Primary = critical (red) */
.sgl-report-incard .sgl-report-incard__actions .button-primary{
  background-color:#ef4444 !important;
  border-color:#dc2626 !important;
  color:#ffffff !important;
  text-shadow:none;
  box-shadow:0 1px 0 rgba(0,0,0,.15);
  transition: transform .06s ease, box-shadow .12s ease, background-color .12s ease;
}
.sgl-report-incard .sgl-report-incard__actions .button-primary:hover{
  background-color:#dc2626 !important;
  border-color:#b91c1c !important;
  transform: translateY(-1px);
  box-shadow:0 6px 16px rgba(220,38,38,.35);
}
.sgl-report-incard .sgl-report-incard__actions .button-primary:focus{
  outline:2px solid rgba(120,200,107,.7);
  outline-offset:2px;
}

/* Secondary = neutral dark */
.sgl-report-incard .sgl-report-incard__actions .button:not(.button-primary){
  background-color:#374151 !important;
  border-color:#4b5563 !important;
  color:#e5e7eb !important;
  text-shadow:none;
}
.sgl-report-incard .sgl-report-incard__actions .button:not(.button-primary):hover{
  background-color:#4b5563 !important;
  border-color:#6b7280 !important;
}

/* Subtle green glow on dialog when hovering primary */
.sgl-report-incard__dialog:hover{
  box-shadow: 0 22px 44px rgba(0,0,0,.4), 0 0 0 1px rgba(120,200,107,0.12), 0 0 14px rgba(120,200,107,0.08);
}

