:where(.kb-slug-frontend){
  --kb-bg: #0f172a;
  --kb-card: #111827;
  --kb-muted: #94a3b8;
  --kb-fg: #e5e7eb;
  --kb-acc: #60a5fa;
}


:where(.kb-slug-frontend){
  padding-left: 22px;
  padding-right: 22px;
}
.kb-slug-frontend {
  width: clamp(150px, 92vw, 900px);
	margin: auto;
  padding:22px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
	border: none;
  border-radius: 18px;
	background: rgba(244, 51, 1, 1);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: white;
   box-sizing: border-box;
}
:where(.kb-slug-frontend) .kb-slug-frontend textarea{
	width:100%;
	height:90px;
	margin-bottom:15px;
}
:where(.kb-slug-frontend) .kb-btn {
  cursor: pointer;
  background: rgba(20, 20, 20, 0.9);
  color: var(--kb-fg);
  padding: 10px 18px;
  border-radius: 14px;       
  font-weight: 600;
  /*border: 1px solid rgba(148, 163, 184, 0.35);*/
  border: 0px;
  outline: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.12s ease-out;
}
:where(.kb-slug-frontend) .kb-btn:hover {
  background: rgba(20, 20, 20, 0.9);
}

:where(.kb-slug-frontend) code.badge {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 2px 6px;
  border-radius: 8px;
  transition: opacity 0.2s, background 0.2s, border 0.2s;
  opacity: 1;
  cursor: pointer;
}

:where(.kb-slug-frontend) code.badge:not(.is-active) {
  opacity: 0.7;
  text-decoration: line-through;
  border: 1px solid var(--kb-muted);
}

:where(.kb-slug-frontend) code.badge.is-active:hover {
  opacity: 0.8;
}
:where(.kb-slug-frontend) .kb-logo{
	margin-bottom:10px;
}
:where(.kb-slug-frontend) p.helper {
  margin: 0 0 18px;
  color: white;
  padding-top: 20px;
}
:where(.kb-slug-frontend) label {
  display: block;
  margin: 14px 0 6px;
  color: white;
  font-weight: 600;
}

:where(.kb-slug-frontend) textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(145, 32, 32, 0.25);
  background: rgba(20, 20, 20, 0.7);
  color: white;
  outline: none;
  font: 500 15px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

:where(.kb-slug-frontend) textarea:focus {
  border-color: rgba(145, 32, 32, 1);
  box-shadow: 0 0 0 3px rgba(145, 32, 32, 0.2);
}
:where(.kb-slug-frontend) #kb-slug-rules-front{
  margin-top: 14px;
  color: var(--kb-muted);
  font-size: 13px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

:where(.kb-slug-frontend) .kb-fav-btn{
  width: 30px !important;
  height: 30px !important;
  display: inline-grid  !important;
  place-items: center !important;
  border-radius: 6px !important;        
  border: 1px solid rgba(0,0,0,0.25) !important;
  background: rgba(244, 51, 1, 1) !important;
  cursor: pointer !important;
  margin: 0 0 12px 0 !important;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease !important;
}
:where(.kb-slug-frontend) .kb-fav-btn:focus{
  outline: none !important !important;
  box-shadow: none !important !important;
}

:where(.kb-slug-frontend) .kb-fav-btn:hover{
  transform: translateY(-2px) !important;
  background: rgba(244, 51, 1, 1) !important;
}

:where(.kb-slug-frontend) .kb-fav-btn:active{
  transform: translateY(0) !important;
}

:where(.kb-slug-frontend) .kb-header{
  display: flex;
  align-items: center;     
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}


:where(.kb-slug-frontend) .kb-logo{
  margin: 0;            
  max-height: 34px;    
  height: auto;
  width: auto;
}


:where(.kb-slug-frontend) .kb-fav-btn:focus:not(:focus-visible){
  outline: none;
  box-shadow: none;
}
:where(.kb-slug-frontend) .kb-fav-btn:focus-visible{
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 1px;
}

:where(.kb-slug-frontend) .mps-square{ position: relative; width:80px; height:80px; }
:where(.kb-slug-frontend) .mps-square > .mps-heart{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}
