/* ============================================================
   style.css — Auth pages & base shell
   Aligned to client_to_copy design system
   ============================================================ */

:root {
  --primary:        #2563eb;
  --primary-dark:   #1e40af;
  --primary-light:  #dbeafe;
  --primary-50:     #eff6ff;

  --green:          #16a34a;
  --blue:           #2563eb;

  --bg:             #f5f7fa;
  --bg2:            #ffffff;
  --bg3:            #f8fafc;
  --text:           #1e293b;
  --muted:          #64748b;
  --muted2:         #94a3b8;
  --border:         #e2e8f0;
  --border2:        #cbd5e1;

  --danger:         #dc2626;
  --danger-bg:      #fee2e2;
  --danger-bd:      #fecaca;

  --mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius:         6px;
  --radius-lg:      10px;
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.05);
  --shadow:         0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --transition:     0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

/* ── Site header (minimal shell) ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  height: 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}

.brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--primary); text-decoration: none; }

.site-nav { font-size: 0.875rem; }
.nav-current { color: var(--muted); }

.site-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.site-main.fullscreen {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - 56px);
}

body.auth-layout {
  overflow: hidden;
}

body.auth-layout .site-header {
  display: none;
}

body.auth-layout .site-main.fullscreen {
  min-height: 100dvh;
}

.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  border-top: 1px solid var(--border);
}

.site-footer.is-hidden {
  display: none;
}

/* ── Utilities ── */
.muted { margin: 0; font-size: 0.85rem; color: var(--muted); }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: var(--bg3);
  color: var(--primary);
  border: 1px solid var(--border);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform 0.12s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--border2); color: var(--text); background: var(--bg3); }

/* ── Flash messages ── */
.flash-list { margin: 0 0 1.25rem; padding-left: 0; list-style: none; }
.flash {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid;
  border-left-width: 3px;
}
.flash-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: var(--danger-bd);
  border-left-color: var(--danger);
}
.flash-info {
  color: var(--primary);
  background: var(--primary-light);
  border-color: #bfdbfe;
  border-left-color: var(--primary);
}

/* ── Nav links ── */
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: all var(--transition);
}
.site-nav a:hover {
  border-color: #93c5fd;
  color: var(--primary);
  background: var(--primary-50);
  text-decoration: none;
}

/* ============================================================
   LOGIN — Split-panel layout
   ============================================================ */

.login-page {
  background: var(--bg);
  color: var(--text);
}

.login-page .wrapper {
  display: flex;
  min-height: 100dvh;
}

/* Brand panel (left) */
.login-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 44%;
  min-height: 100dvh;
  padding: 4rem 3.5rem;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.login-brand-panel::before {
  content: '';
  position: absolute; top: -120px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.login-brand-panel::after {
  content: '';
  position: absolute; bottom: -80px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.login-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.login-brand-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}

.login-brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.login-brand-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 360px;
}

.login-brand-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.login-brand-features li {
  display: flex; align-items: center; gap: 0.875rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
}
.login-feature-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Form panel (right) */
.login-form-panel {
  width: 56%;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Auth card */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  animation: fadeUp 0.45s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.auth-card-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* Auth form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg3);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}

.checkbox-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
}

.auth-form .btn-primary { margin-top: 0.25rem; width: 100%; height: 46px; font-size: 15px; border-radius: 10px; }

/* ============================================================
   SELECT TENANT — reuse auth-card + extra
   ============================================================ */

.tenant-select-card {
  max-width: 520px;
}

.tenant-select-lead {
  margin: 0 0 1.5rem;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.tenant-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tenant-list form { margin: 0; }

.tenant-entry {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg3);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tenant-entry:hover { border-color: #93c5fd; box-shadow: var(--shadow); }

.tenant-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tenant-entry-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.tenant-kb-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tenant-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.tenant-card-role {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

.tenant-kb-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted2);
}

.custom-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: var(--bg2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.custom-select-trigger:hover { border-color: #93c5fd; }
.custom-select.is-open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.custom-select-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
}

.custom-select-chevron { font-size: 11px; color: var(--muted); }

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.custom-select.is-open .custom-select-menu { display: block; }

.custom-select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
  padding: 10px 12px;
  cursor: pointer;
}
.custom-select-option:hover { background: var(--primary-50); }
.custom-select-option.is-selected { background: var(--primary-light); }

.custom-select.is-disabled .custom-select-trigger {
  opacity: 0.55;
  cursor: not-allowed;
}

.tenant-kb-select {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: light;
  width: min(100%, 360px);
  min-height: 40px;
  padding: 8px 40px 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--text);
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tenant-kb-select:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.tenant-kb-select:hover { border-color: #93c5fd; }
.tenant-kb-select option { background: #fff; color: var(--text); }

.tenant-enter-btn {
  align-self: auto;
  margin-top: 0;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .tenant-kb-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tenant-kb-select {
    width: 100%;
  }
}

.tenant-entry-no-kb {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.form-inline {
  display: inline;
  margin: 0;
}

/* ============================================================
   CUSTOM ALERT (CA) — modal replacing native alert/confirm
   ============================================================ */
#ca-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
#ca-overlay.ca-show { opacity: 1; pointer-events: all; }
#ca-box {
  background: #fff; border-radius: 16px; border: 1px solid #e5e5e5;
  padding: 2rem 2rem 1.5rem;
  max-width: 380px; width: 90%;
  text-align: center;
  transform: scale(0.88) translateY(12px);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), opacity 0.2s;
  opacity: 0;
}
#ca-overlay.ca-show #ca-box { transform: scale(1) translateY(0); opacity: 1; }
#ca-icon  { font-size: 40px; margin-bottom: 12px; line-height: 1; }
#ca-title { font-size: 17px; font-weight: 600; color: #111; margin: 0 0 8px; }
#ca-text  { font-size: 14px; color: #666; margin: 0 0 1.5rem; line-height: 1.6; }
.ca-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ca-btn {
  padding: 9px 22px; border-radius: 8px; border: 1px solid #ddd;
  font-size: 14px; cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}
.ca-btn:active   { transform: scale(0.97); }
.ca-btn.ca-confirm { background: #378ADD; color: #fff; border-color: #185FA5; }
.ca-btn.ca-danger  { background: #E24B4A; color: #fff; border-color: #A32D2D; }
.ca-btn.ca-cancel  { background: #f5f5f5; color: #555; border-color: #ddd; }
.ca-btn.ca-ok      { background: #1D9E75; color: #fff; border-color: #0F6E56; }
#ca-progress {
  height: 3px; border-radius: 3px; margin-top: 1.2rem;
  background: #eee; overflow: hidden; display: none;
}
#ca-progress-bar {
  height: 100%; width: 100%; border-radius: 3px;
  transition: width linear;
}

/* ── Action Confirmation Widget ───────────────────────────── */

.msg-bubble-interrupt {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.msg.msg-interrupt { max-width: 100%; width: 100%; }


.action-confirmation-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  max-width: 480px;
  font-size: 0.9rem;
}

.action-confirmation-card.resolved {
  opacity: 0.65;
  pointer-events: none;
}

.action-card-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text);
}

.action-card-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.action-card-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.action-doc-chip {
  cursor: default !important;
  font-size: 0.8rem;
}

.action-card-details {
  margin: 0 0 12px 0;
  padding: 0 0 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.action-card-preview {
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.action-card-preview summary {
  cursor: pointer;
  color: var(--muted);
  user-select: none;
  margin-bottom: 6px;
}

.action-card-preview pre {
  background: var(--bg3);
  border-radius: 6px;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text);
}

.action-card-edit-wrap {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-card-edit-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.action-card-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.action-option-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.action-option-btn:hover {
  background: var(--bg3);
}

.action-option-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.action-option-confirm {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.action-option-confirm:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.action-option-cancel {
  color: var(--danger);
  border-color: var(--danger);
}

.action-option-cancel:hover {
  background: var(--danger-bg);
}

.action-card-resolved-banner {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Draft review: clickable preview card + like/unlike radio ── */

.draft-preview-card {
  position: relative;
  margin-bottom: 14px;
  padding: 24px 22px 20px;
  border-radius: 16px;
  border: none;
  background: #dbeafe;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  z-index: 1;
  isolation: isolate;
}

.draft-preview-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -4px;
  bottom: -4px;
  background: #bfdbfe;
  border-radius: 18px;
  z-index: -1;
}

.draft-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.22);
}

.draft-preview-card-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.draft-preview-card-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.draft-preview-dialog-body {
  margin: 12px 0 0;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  font-family: var(--sans);
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.draft-preview-dialog-body p { margin: 0 0 8px; }
.draft-preview-dialog-body p:last-child { margin-bottom: 0; }
.draft-preview-dialog-body strong { font-weight: 700; }
.draft-preview-dialog-body h3 { font-size: 14px; font-weight: 700; margin: 12px 0 6px; }
.draft-preview-dialog-body h4 { font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.draft-preview-dialog-body ul,
.draft-preview-dialog-body ol { margin: 6px 0 8px 18px; padding: 0; }
.draft-preview-dialog-body li { margin-bottom: 4px; }
.draft-preview-dialog-body hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

#draft-preview-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(680px, calc(100vw - 64px));
  max-width: calc(100vw - 64px);
  max-height: calc(100vh - 64px);
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
  overflow-y: auto;
  overflow-x: hidden;
}

#draft-preview-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

#draft-preview-dialog .kb-dialog-panel {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.draft-review-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 14px;
  padding: 8px 0;
  flex-shrink: 0;
}

.draft-review-radio > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.draft-review-radio input[type="radio"].draft-radio-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

.draft-radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--primary);
  transition: color 0.2s ease-in-out;
  user-select: none;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0;
}

.draft-radio-label:hover {
  color: var(--primary);
}

.draft-radio-label .draft-radio-icon {
  width: 27px;
  height: 27px;
  display: block;
  fill: currentColor;
  transition: transform 0.2s ease-in-out;
}

.draft-radio-label:hover .draft-radio-icon {
  transform: scale(1.3);
}

.draft-radio-label span {
  font-size: 14px;
  font-weight: 600;
}

.draft-radio-input:checked + .draft-radio-label {
  color: var(--primary);
}

.draft-radio-input:checked + .draft-radio-label .draft-radio-icon {
  animation: draft-radio-pop 0.2s ease-in-out;
}

@keyframes draft-radio-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(-10deg);
  }
}

/* Clarification / interrupt questionnaire: see kb_chat.css (KB overview loads it). */
