[v-cloak] {
  display: none !important;
}

.kg-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.22);
}

.kg-skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(14, 165, 233, 0.45);
}

.kg-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 8500;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 28px));
  pointer-events: none;
}

.kg-toast {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 12px 12px 0;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #1f2937;
  box-shadow: 0 24px 56px -32px rgba(17, 24, 39, 0.48);
  pointer-events: auto;
}

.kg-toast::before {
  content: "";
  align-self: stretch;
  border-radius: 8px 0 0 8px;
  background: #2563eb;
}

.kg-toast[data-tone="success"]::before {
  background: #0f766e;
}

.kg-toast[data-tone="warning"]::before {
  background: #b45309;
}

.kg-toast[data-tone="error"]::before {
  background: #be123c;
}

.kg-toast-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.kg-toast-message {
  margin: 2px 0 0;
  color: #4b5563;
  font-size: 0.86rem;
  line-height: 1.45;
}

.kg-toast-close {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #374151;
  box-shadow: none;
  font-weight: 800;
}

.kg-toast-close:hover {
  transform: none;
  background: #f9fafb;
  color: #111827;
}

.kg-form-assist {
  min-height: 22px;
  margin-top: 8px;
  color: #4b5563;
  font-size: 0.88rem;
}

.kg-form-assist strong {
  color: #1f2937;
}

.kg-file-summary {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #4b5563;
  font-size: 0.8rem;
  line-height: 1.35;
}

.kg-vue-ready [data-vue-pending] {
  display: none !important;
}

button[data-kg-busy="true"],
.button[data-kg-busy="true"] {
  cursor: progress;
  opacity: 0.82;
}

button[data-kg-busy="true"]::after,
.button[data-kg-busy="true"]::after {
  content: "";
  width: 0.85em;
  height: 0.85em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: kg-spin 0.72s linear infinite;
}

@keyframes kg-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .kg-toast-stack {
    right: 14px;
    bottom: 14px;
  }
}
