@font-face {
  font-family: "Aptos";
  src: url("../../resources/fonts/Aptos.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anonymous Pro";
  src: url("../../resources/fonts/AnonymousPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anonymous Pro";
  src: url("../../resources/fonts/AnonymousPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fd-bg: #0b0f1a;
  --fd-bg-soft: #11182a;
  --fd-panel: rgba(28, 38, 64, 0.88);
  --fd-panel-strong: rgba(34, 48, 76, 0.96);
  --fd-border: rgba(120, 142, 190, 0.2);
  --fd-text: #ffffff;
  --fd-muted: rgba(190, 208, 255, 0.94);
  --fd-accent: #46caff;
  --fd-accent-2: #3fffc4;
  --fd-warn: #ffc832;
  --fd-good: #35ffab;
  --fd-bad: #ff4444;
  --fd-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --fd-radius: 18px;
  --fd-mono: "Anonymous Pro", ui-monospace, "Segoe UI Variable", "Segoe UI", monospace;
  --fd-sans: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
}

body {
  font-family: var(--fd-sans);
  background: radial-gradient(1200px 800px at 10% 10%, rgba(122, 215, 255, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 90% 10%, rgba(155, 255, 207, 0.1), transparent 55%),
    var(--fd-bg);
  color: var(--fd-text);
}

.fd-landing {
  padding: 48px 24px 32px;
}

.fd-landing-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(18, 26, 45, 0.95), rgba(12, 18, 32, 0.85));
  border: 1px solid var(--fd-border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--fd-shadow);
  position: relative;
  overflow: hidden;
}

.fd-landing-inner::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(122, 215, 255, 0.35), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.fd-landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(122, 215, 255, 0.1);
  border: 1px solid rgba(122, 215, 255, 0.35);
  color: var(--fd-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd-landing h1 {
  margin: 18px 0 8px;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.02em;
}

.fd-landing p {
  margin: 0 0 20px;
  color: var(--fd-muted);
  max-width: 70ch;
}

.fd-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fd-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(122, 215, 255, 0.9), rgba(155, 255, 207, 0.9));
  color: #08111f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(122, 215, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fd-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(122, 215, 255, 0.32);
}

.fd-page {
  max-width: 1266px;
  margin: 0 auto 80px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fd-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(160deg, rgba(34, 50, 80, 0.92) 0%, rgba(20, 30, 55, 0.88) 100%);
  border: 1px solid rgba(122, 215, 255, 0.24);
  border-radius: var(--fd-radius);
  padding: 28px;
  box-shadow:
    var(--fd-shadow),
    inset 0 1px 0 rgba(122, 215, 255, 0.22),
    0 0 48px rgba(122, 215, 255, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.fd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--hx, 50%) var(--hy, 30%),
    rgba(122, 215, 255, 0.18) 0%,
    rgba(155, 255, 207, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
  transition: background 0.08s ease;
}

.fd-hero::after {
  content: "";
  position: absolute;
  inset: -35% -8% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(122, 215, 255, 0.28), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  animation: fd-hero-breathe 7s ease-in-out infinite alternate;
}

@keyframes fd-hero-breathe {
  from { opacity: 0.35; transform: scale(0.94) translateY(8px); }
  to   { opacity: 0.75; transform: scale(1.06) translateY(-8px); }
}

.fd-hero-title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.fd-hero-subtitle {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(220, 238, 255, 0.98);
  letter-spacing: 0.015em;
  line-height: 1.55;
}

.fd-grid {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .fd-grid {
    grid-template-columns: 1fr;
  }
}

.fd-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fd-col--right {
  align-items: flex-start;
}

.fd-col--right .fd-card {
  width: 100%;
  max-width: 880px;
}

.fd-card {
  background: var(--fd-panel);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius);
  padding: 18px;
  box-shadow: var(--fd-shadow);
}

.fd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.fd-card-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fd-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fd-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6e40c9 0%, #2196f3 50%, #00bcd4 100%);
  background-size: 200% 200%;
  color: #fff;
  animation: fd-ai-badge-shimmer 3s ease infinite, fd-ai-badge-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 0 8px rgba(110, 64, 201, 0.5), 0 0 16px rgba(33, 150, 243, 0.25);
}

.fd-ai-badge__label {
  position: relative;
  top: 0.5px;
}

.fd-ai-badge__star {
  font-size: 7px;
  opacity: 0.9;
}

.fd-ai-badge__star--left {
  animation: fd-ai-star-pulse 2.4s ease-in-out infinite;
}

.fd-ai-badge__star--right {
  animation: fd-ai-star-pulse 2.4s ease-in-out infinite 0.8s;
}

@keyframes fd-ai-badge-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fd-ai-badge-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fd-ai-star-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50%       { opacity: 1;   transform: scale(1.35) rotate(20deg); }
}

.fd-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fd-status--idle {
  color: var(--fd-muted);
  background: rgba(255, 255, 255, 0.06);
}

.fd-status--running {
  color: #08111f;
  background: var(--fd-accent);
}

.fd-status--done {
  color: #08111f;
  background: var(--fd-good);
}

.fd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.fd-field label {
  font-size: 13px;
  color: var(--fd-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fd-field select,
.fd-field input[type="text"],
.fd-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(120, 142, 190, 0.3);
  background: rgba(10, 16, 30, 0.7);
  color: var(--fd-text);
  padding: 10px 12px;
  font-family: var(--fd-sans);
}

.fd-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fd-muted);
}

.fd-toggle input {
  accent-color: var(--fd-accent);
}

.fd-button {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  background: linear-gradient(120deg, rgba(122, 215, 255, 0.85), rgba(155, 255, 207, 0.85));
  color: #08111f;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fd-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.fd-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(122, 215, 255, 0.25);
}

.fd-button-text {
  line-height: 1;
}

.fd-flask {
  position: relative;
  width: 18px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 6px 6px;
  box-sizing: border-box;
  overflow: hidden;
  transform-origin: 50% 80%;
  animation: fd-flask-shake 1.2s ease-in-out infinite;
}

.fd-flask::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 8px;
  height: 7px;
  transform: translateX(-50%);
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  box-sizing: border-box;
}

.fd-flask::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 9px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, rgba(8, 17, 31, 0.15), currentColor);
  animation: fd-liquid-slosh 1.2s ease-in-out infinite;
}

@keyframes fd-flask-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-6deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(4deg); }
}

@keyframes fd-liquid-slosh {
  0%, 100% { transform: translateX(0); height: 9px; }
  25% { transform: translateX(-1px); height: 7px; }
  50% { transform: translateX(1px); height: 10px; }
  75% { transform: translateX(-1px); height: 8px; }
}

.fd-editor {
  border-radius: 16px;
  border: none;
  background: transparent;
  padding: 0;
}

.code-mirror-editor {
  min-height: 320px;
  margin: 0;
  resize: vertical;
  overflow: hidden;
}

.code-mirror-editor .cm-editor {
  font-family: var(--fd-mono);
  height: 100%;
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid rgba(120, 142, 190, 0.35);
  background: rgba(10, 16, 30, 0.7);
  box-shadow: inset 0 0 0 1px rgba(10, 16, 30, 0.45);
}

.code-mirror-editor .cm-scroller {
  border-radius: 16px;
}

.code-mirror-editor .CodeMirror {
  height: 100%;
  min-height: 320px;
  border-radius: 16px;
  border: 1px solid rgba(120, 142, 190, 0.35);
  background: rgba(10, 16, 30, 0.7) !important;
  color: var(--fd-text);
  box-shadow: inset 0 0 0 1px rgba(10, 16, 30, 0.45);
}

.code-mirror-editor .CodeMirror-gutters {
  background: rgba(10, 16, 30, 0.7) !important;
  border-right: 1px solid rgba(120, 142, 190, 0.2);
}

.code-mirror-editor .CodeMirror-scroll {
  min-height: 320px;
  background: rgba(10, 16, 30, 0.7) !important;
}


.fd-page .CodeMirror .cm-keyword    { color: #c792ea !important; font-weight: 600; }
.fd-page .CodeMirror .cm-def        { color: #ffcb6b !important; font-weight: 600; }
.fd-page .CodeMirror .cm-variable   { color: #eeffff !important; }
.fd-page .CodeMirror .cm-variable-2 { color: #89ddff !important; }
.fd-page .CodeMirror .cm-property   { color: #80cbc4 !important; }
.fd-page .CodeMirror .cm-operator   { color: #89ddff !important; }
.fd-page .CodeMirror .cm-number     { color: #f78c6c !important; }
.fd-page .CodeMirror .cm-string     { color: #c3e88d !important; }
.fd-page .CodeMirror .cm-string-2   { color: #a5d6a7 !important; font-style: italic; }
.fd-page .CodeMirror .cm-comment    { color: #7986a8 !important; font-style: italic; }
.fd-page .CodeMirror .cm-builtin    { color: #82aaff !important; }
.fd-page .CodeMirror .cm-atom       { color: #ff9cac !important; font-weight: 600; }
.fd-page .CodeMirror .cm-meta       { color: #ffd580 !important; }
.fd-page .CodeMirror .cm-punctuation { color: #aabfd6 !important; }
.fd-page .CodeMirror .cm-bracket    { color: #ffd700 !important; }
.fd-page .CodeMirror .cm-error      { color: #ff5555 !important; text-decoration: underline dotted #ff5555; }
.fd-page .CodeMirror .cm-qualifier  { color: #b2ccd6 !important; }
.fd-page .CodeMirror-matchingbracket    { color: #ffd700 !important; font-weight: 700; background: rgba(255,215,0,0.18) !important; border-bottom: 2px solid #ffd700; }
.fd-page .CodeMirror-nonmatchingbracket { color: #ff5555 !important; background: rgba(255,85,85,0.18) !important; }
.fd-page .cm-editor .cm-keyword      { color: #c792ea !important; font-weight: 600; }
.fd-page .cm-editor .cm-def          { color: #ffcb6b !important; font-weight: 600; }
.fd-page .cm-editor .cm-variableName { color: #eeffff !important; }
.fd-page .cm-editor .cm-propertyName { color: #80cbc4 !important; }
.fd-page .cm-editor .cm-operator     { color: #89ddff !important; }
.fd-page .cm-editor .cm-number       { color: #f78c6c !important; }
.fd-page .cm-editor .cm-string       { color: #c3e88d !important; }
.fd-page .cm-editor .cm-comment      { color: #7986a8 !important; font-style: italic; }
.fd-page .cm-editor .cm-builtin      { color: #82aaff !important; }
.fd-page .cm-editor .cm-attributeName{ color: #80cbc4 !important; }
.fd-page .cm-editor .cm-typeName     { color: #82aaff !important; }
.fd-page .cm-editor .cm-bool         { color: #ff9cac !important; font-weight: 600; }
.fd-page .cm-editor .cm-null         { color: #ff9cac !important; font-weight: 600; }
.fd-page .cm-editor .cm-punctuation  { color: #aabfd6 !important; }
.fd-page .cm-editor .cm-brace        { color: #ffd700 !important; }
.fd-page .cm-editor .cm-invalid      { color: #ff5555 !important; text-decoration: underline dotted #ff5555; }
.fd-page .cm-editor .cm-decorator    { color: #ffd580 !important; }

/* Inline code-token highlighting in feedback */
.fd-token-def {
  color: #DCDCAA;
  font-family: 'Consolas', 'Fira Mono', monospace;
  font-size: 0.88em;
  letter-spacing: 0.01em;
}
.fd-token-var {
  color: #9CDCFE;
  font-family: 'Consolas', 'Fira Mono', monospace;
  font-size: 0.88em;
  letter-spacing: 0.01em;
}

.fd-textarea {
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  border: 1px solid rgba(120, 142, 190, 0.3);
  background: rgba(10, 16, 30, 0.9);
  color: var(--fd-text);
  font-family: var(--fd-mono);
  padding: 12px;
}

.fd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fd-list-item {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 16, 30, 0.7);
  border: 1px solid rgba(120, 142, 190, 0.2);
  font-size: 13px;
  color: var(--fd-muted);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.fd-feedback-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.fd-feedback-card > * {
  position: relative;
  z-index: 1;
}

.fd-feedback-card--good {
  --fd-glow-color: rgba(125, 255, 178, 0.9);
}

.fd-feedback-card--warn {
  --fd-glow-color: rgba(255, 211, 122, 0.9);
}

.fd-feedback-card--bad {
  --fd-glow-color: rgba(255, 139, 139, 0.95);
}

.fd-feedback-card--active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--fd-radius) + 2px);
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    color-mix(in srgb, var(--fd-glow-color) 85%, transparent) 0deg,
    var(--fd-glow-color) 120deg,
    color-mix(in srgb, var(--fd-glow-color) 45%, transparent) 220deg,
    var(--fd-glow-color) 320deg,
    color-mix(in srgb, var(--fd-glow-color) 85%, transparent) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: fd-glow-outline 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--fd-glow-color));
  pointer-events: none;
  z-index: 0;
}

@keyframes fd-glow-outline {
  0% { opacity: 0.55; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.fd-statement {
  color: var(--fd-text);
  line-height: 1.5;
}

.fd-inline-code {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 6px;
  border: 1px solid rgba(122, 215, 255, 0.35);
  background: rgba(122, 215, 255, 0.08);
  color: var(--fd-accent);
  font-family: var(--fd-mono);
  font-size: 0.95em;
}

.fd-list-item strong {
  color: var(--fd-text);
}

.fd-list-item--pass {
  border-color: rgba(53, 255, 171, 0.40);
  color: rgba(53, 255, 171, 0.98);
}

.fd-list-item--fail {
  border-color: rgba(255, 68, 68, 0.40);
  color: rgba(255, 68, 68, 0.98);
}

.fd-feedback {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--fd-text);
}

.fd-feedback p {
  margin: 0;
}

/* Blinking cursor: a real inline span injected directly after the last typed character */
.fd-cursor {
  display: inline;
  color: var(--fd-accent);
  animation: fd-cursor-blink 0.55s steps(1) infinite;
  user-select: none;
  pointer-events: none;
}
.fd-cursor::before {
  content: "▋";
}

@keyframes fd-cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.fd-feedback ul {
  margin: 0;
  padding-left: 18px;
  color: var(--fd-muted);
}

.fd-event-log {
  max-height: 240px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--fd-mono);
  font-size: 12px;
  color: var(--fd-muted);
}

.fd-event-log span {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(10, 16, 30, 0.6);
  border: 1px solid rgba(120, 142, 190, 0.15);
  overflow-wrap: break-word;
  word-break: break-word;
}

.fd-card pre {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 16, 30, 0.7);
  border: 1px solid rgba(120, 142, 190, 0.15);
  font-family: var(--fd-mono);
  font-size: 12px;
  color: var(--fd-muted);
  /* Wrap long lines instead of overflowing */
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow-x: auto;
  max-width: 100%;
}

.fd-empty {
  color: var(--fd-muted);
  font-size: 13px;
}

.CodeMirror .CodeMirror-selected {
  background: rgba(122, 215, 255, 0.28) !important;
}
.CodeMirror-focused .CodeMirror-selected {
  background: rgba(122, 215, 255, 0.40) !important;
}

#fdBackBtn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4em 0.9em;
  border-radius: 8px;
  background: rgba(10, 20, 40, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(122, 215, 255, 0.25);
  color: #7ad7ff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  box-shadow: 0 0 12px rgba(122, 215, 255, 0.15);
  transition: box-shadow 0.2s ease, border-color 0.2s ease,
              background 0.30s ease, color 0.20s ease;
}
#fdBackBtn:hover {
  box-shadow: 0 0 22px rgba(122, 215, 255, 0.42);
  border-color: rgba(122, 215, 255, 0.55);
}

.fd-theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(122, 215, 255, 0.26);
  box-shadow: 0 0 14px rgba(122, 215, 255, 0.14), 0 4px 14px rgba(0, 0, 0, 0.30);
  cursor: pointer;
  outline: none;
  transition: background 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.fd-theme-toggle:hover {
  box-shadow: 0 0 22px rgba(122, 215, 255, 0.32), 0 6px 18px rgba(0, 0, 0, 0.34);
}

.fd-tt-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 60px;
  height: 30px;
}

.fd-tt-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(122, 215, 255, 0.20);
  border: 1px solid rgba(122, 215, 255, 0.44);
  box-shadow: 0 0 10px rgba(122, 215, 255, 0.24);
  transition:
    left          0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    background    0.32s ease,
    border-color  0.32s ease,
    box-shadow    0.32s ease;
  pointer-events: none;
}

.fd-tt-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  color: rgba(122, 215, 255, 0.90);
}
.fd-tt-icon::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}

.fd-tt-icon--dark  { opacity: 1;    transform: scale(1);    }
.fd-tt-icon--dark::before {
  -webkit-mask-image: url(../../src/main/scala/interactionPlugins/blockEnvironment/feedback/ui/moon.svg);
          mask-image: url(../../src/main/scala/interactionPlugins/blockEnvironment/feedback/ui/moon.svg);
}
.fd-tt-icon--light {
  opacity: 0.35;
  transform: scale(0.80);
  color: rgba(255, 210, 80, 0.80);
}
.fd-tt-icon--light::before {
  -webkit-mask-image: url(../../src/main/scala/interactionPlugins/blockEnvironment/feedback/ui/sun.svg);
          mask-image: url(../../src/main/scala/interactionPlugins/blockEnvironment/feedback/ui/sun.svg);
}

[data-theme="light"] .fd-theme-toggle {
  background: rgba(238, 245, 255, 0.90);
  border-color: rgba(60, 130, 220, 0.28);
  box-shadow: 0 0 14px rgba(60, 130, 220, 0.14), 0 4px 14px rgba(0, 0, 0, 0.10);
}
[data-theme="light"] .fd-theme-toggle:hover {
  box-shadow: 0 0 22px rgba(60, 130, 220, 0.28), 0 6px 18px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .fd-tt-thumb {
  left: 30px;
  background: rgba(255, 185, 30, 0.26);
  border-color: rgba(255, 185, 30, 0.54);
  box-shadow: 0 0 10px rgba(255, 185, 30, 0.30);
}
[data-theme="light"] .fd-tt-icon--dark  {
  opacity: 0.35;
  transform: scale(0.80);
  color: rgba(80, 130, 220, 0.60);
}
[data-theme="light"] .fd-tt-icon--light {
  opacity: 1;
  transform: scale(1);
  color: rgba(200, 130, 0, 0.95);
}

.fd-theme-switching,
.fd-theme-switching *,
.fd-theme-switching *::before,
.fd-theme-switching *::after {
  transition:
    background-color  0.30s ease,
    background        0.30s ease,
    color             0.22s ease,
    border-color      0.26s ease,
    box-shadow        0.26s ease !important;
}

[data-theme="light"] {
  --fd-bg:           #f0f4ff;
  --fd-bg-soft:      #e5ecf8;
  --fd-panel:        rgba(255, 255, 255, 0.92);
  --fd-panel-strong: rgba(248, 251, 255, 0.97);
  --fd-border:       rgba(70, 100, 170, 0.18);
  --fd-text:         #02091a;
  --fd-muted:        rgba(22, 48, 120, 0.90);
  --fd-accent:       #0470cc;
  --fd-accent-2:     #00934a;
  --fd-warn:         #a85a00;
  --fd-good:         #007a3d;
  --fd-bad:          #cc0000;
  --fd-shadow:       0 18px 50px rgba(0, 0, 0, 0.09);
}

[data-theme="light"] body {
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(80, 160, 255, 0.09), transparent 55%),
    radial-gradient(1000px 700px at 90% 10%, rgba(40, 195, 135, 0.07), transparent 55%),
    var(--fd-bg);
}

[data-theme="light"] #fdBackBtn {
  background: rgba(242, 247, 255, 0.92);
  border-color: rgba(60, 120, 200, 0.28);
  color: #0878c2;
  box-shadow: 0 0 12px rgba(60, 120, 200, 0.12);
}
[data-theme="light"] #fdBackBtn:hover {
  box-shadow: 0 0 22px rgba(60, 120, 200, 0.28);
  border-color: rgba(60, 120, 200, 0.52);
}

[data-theme="light"] .fd-hero {
  background: linear-gradient(160deg, rgba(224, 236, 255, 0.96) 0%, rgba(208, 226, 255, 0.92) 100%);
  border-color: rgba(80, 130, 210, 0.28);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    0 0 48px rgba(80, 130, 210, 0.06);
}
[data-theme="light"] .fd-hero::before {
  background: radial-gradient(
    360px circle at var(--hx, 50%) var(--hy, 30%),
    rgba(60, 130, 230, 0.10) 0%,
    rgba(40, 190, 140, 0.05) 45%,
    transparent 70%
  );
}
[data-theme="light"] .fd-hero::after {
  background: radial-gradient(circle, rgba(60, 130, 230, 0.18), transparent 70%);
}
[data-theme="light"] .fd-hero-title   { color: #02091a; }
[data-theme="light"] .fd-hero-subtitle { color: rgba(15, 35, 95, 0.96); }

[data-theme="light"] .fd-landing-inner {
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(236, 244, 255, 0.95) 100%);
  border-color: rgba(80, 130, 200, 0.20);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.90);
}
[data-theme="light"] .fd-landing-inner::after {
  background: radial-gradient(circle, rgba(60, 130, 230, 0.16), transparent 70%);
  opacity: 0.55;
}
[data-theme="light"] .fd-landing-badge {
  background: rgba(60, 130, 220, 0.08);
  border-color: rgba(60, 130, 220, 0.28);
}

[data-theme="light"] .fd-field select,
[data-theme="light"] .fd-field input[type="text"],
[data-theme="light"] .fd-field textarea {
  background: rgba(248, 251, 255, 0.96);
  border-color: rgba(80, 110, 175, 0.28);
  color: var(--fd-text);
}
[data-theme="light"] .fd-field select option {
  background: #f0f4ff;
  color: #0d1626;
}

[data-theme="light"] .fd-status--idle {
  background: rgba(0, 0, 0, 0.07);
  color: var(--fd-muted);
}
[data-theme="light"] .fd-status--running {
  background: var(--fd-accent);
  color: #ffffff;
}
[data-theme="light"] .fd-status--done {
  background: var(--fd-good);
  color: #ffffff;
}

[data-theme="light"] .fd-textarea {
  background: rgba(248, 251, 255, 0.96);
  border-color: rgba(80, 110, 175, 0.28);
  color: var(--fd-text);
}

[data-theme="light"] .fd-list-item {
  background: rgba(235, 242, 255, 0.80);
  border-color: rgba(70, 100, 170, 0.22);
  color: rgba(10, 25, 70, 0.88);
}
[data-theme="light"] .fd-list-item--pass {
  border-color: rgba(0, 120, 58, 0.55);
  color: rgba(0, 112, 54, 1.0);
  background: rgba(0, 130, 60, 0.10);
  font-weight: 600;
}
[data-theme="light"] .fd-list-item--fail {
  border-color: rgba(200, 0, 0, 0.48);
  color: rgba(185, 0, 0, 1.0);
  background: rgba(200, 0, 0, 0.09);
  font-weight: 600;
}
[data-theme="light"] .fd-list-item strong { color: var(--fd-text); }

[data-theme="light"] .fd-feedback-card--good { --fd-glow-color: rgba(0, 160, 80, 0.95);  }
[data-theme="light"] .fd-feedback-card--warn { --fd-glow-color: rgba(195, 130, 0, 0.95); }
[data-theme="light"] .fd-feedback-card--bad  { --fd-glow-color: rgba(210, 0, 0, 0.98);   }

[data-theme="light"] .fd-feedback-card.fd-feedback-card--good {
  background: rgba(0, 140, 65, 0.06);
}
[data-theme="light"] .fd-feedback-card.fd-feedback-card--warn {
  background: rgba(185, 120, 0, 0.06);
}
[data-theme="light"] .fd-feedback-card.fd-feedback-card--bad {
  background: rgba(200, 0, 0, 0.06);
}

[data-theme="light"] .fd-inline-code {
  background: rgba(4, 98, 176, 0.10);
  border-color: rgba(4, 112, 204, 0.40);
  color: #0460b4;
}

[data-theme="light"] .fd-event-log span {
  background: rgba(228, 238, 255, 0.72);
  border-color: rgba(80, 110, 175, 0.16);
}

[data-theme="light"] .fd-card pre {
  background: rgba(235, 242, 255, 0.75);
  border-color: rgba(80, 110, 175, 0.16);
}

[data-theme="light"] .code-mirror-editor .cm-editor {
  background: #f6f9ff;
  border-color: rgba(80, 110, 175, 0.28);
  box-shadow: inset 0 0 0 1px rgba(80, 110, 175, 0.10);
}
[data-theme="light"] .code-mirror-editor .CodeMirror {
  background: #f6f9ff !important;
  color: var(--fd-text);
  border-color: rgba(80, 110, 175, 0.28);
  box-shadow: inset 0 0 0 1px rgba(80, 110, 175, 0.10);
}
[data-theme="light"] .code-mirror-editor .CodeMirror-gutters {
  background: #edf2ff !important;
  border-right-color: rgba(80, 110, 175, 0.18);
}
[data-theme="light"] .code-mirror-editor .CodeMirror-scroll {
  background: #f6f9ff !important;
}
[data-theme="light"] .code-mirror-editor .CodeMirror-linenumber {
  color: rgba(80, 110, 175, 0.55);
}

[data-theme="light"] .fd-page .CodeMirror .cm-keyword    { color: #7c00d4 !important; font-weight: 600; }
[data-theme="light"] .fd-page .CodeMirror .cm-def        { color: #654a00 !important; font-weight: 600; }
[data-theme="light"] .fd-page .CodeMirror .cm-variable   { color: #0d1626 !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-variable-2 { color: #0055aa !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-property   { color: #006068 !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-operator   { color: #333333 !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-number     { color: #c05000 !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-string     { color: #267a00 !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-string-2   { color: #186000 !important; font-style: italic; }
[data-theme="light"] .fd-page .CodeMirror .cm-comment    { color: #5a7a00 !important; font-style: italic; }
[data-theme="light"] .fd-page .CodeMirror .cm-builtin    { color: #006b91 !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-atom       { color: #aa0030 !important; font-weight: 600; }
[data-theme="light"] .fd-page .CodeMirror .cm-meta       { color: #7a5000 !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-punctuation { color: #445566 !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-bracket    { color: #8a6000 !important; }
[data-theme="light"] .fd-page .CodeMirror .cm-error      { color: #cc0000 !important; text-decoration: underline dotted #cc0000; }
[data-theme="light"] .fd-page .CodeMirror .cm-qualifier  { color: #445566 !important; }
[data-theme="light"] .fd-page .CodeMirror-matchingbracket    { color: #7a5000 !important; font-weight: 700; background: rgba(180,130,0,0.14) !important; border-bottom: 2px solid #c09000; }
[data-theme="light"] .fd-page .CodeMirror-nonmatchingbracket { color: #cc0000 !important; background: rgba(200,0,0,0.10) !important; }
[data-theme="light"] .fd-page .cm-editor .cm-keyword      { color: #7c00d4 !important; font-weight: 600; }
[data-theme="light"] .fd-page .cm-editor .cm-def          { color: #654a00 !important; font-weight: 600; }
[data-theme="light"] .fd-page .cm-editor .cm-variableName { color: #0055aa !important; }
[data-theme="light"] .fd-page .cm-editor .cm-propertyName { color: #006068 !important; }
[data-theme="light"] .fd-page .cm-editor .cm-operator     { color: #333333 !important; }
[data-theme="light"] .fd-page .cm-editor .cm-number       { color: #c05000 !important; }
[data-theme="light"] .fd-page .cm-editor .cm-string       { color: #267a00 !important; }
[data-theme="light"] .fd-page .cm-editor .cm-comment      { color: #5a7a00 !important; font-style: italic; }
[data-theme="light"] .fd-page .cm-editor .cm-builtin      { color: #006b91 !important; }
[data-theme="light"] .fd-page .cm-editor .cm-attributeName{ color: #006068 !important; }
[data-theme="light"] .fd-page .cm-editor .cm-typeName     { color: #006b91 !important; }
[data-theme="light"] .fd-page .cm-editor .cm-bool         { color: #aa0030 !important; font-weight: 600; }
[data-theme="light"] .fd-page .cm-editor .cm-null         { color: #aa0030 !important; font-weight: 600; }
[data-theme="light"] .fd-page .cm-editor .cm-punctuation  { color: #445566 !important; }
[data-theme="light"] .fd-page .cm-editor .cm-brace        { color: #8a6000 !important; }
[data-theme="light"] .fd-page .cm-editor .cm-invalid      { color: #cc0000 !important; text-decoration: underline dotted #cc0000; }
[data-theme="light"] .fd-page .cm-editor .cm-decorator    { color: #7a5000 !important; }

[data-theme="light"] .fd-token-def { color: #795E26; }
[data-theme="light"] .fd-token-var { color: #001080; }

[data-theme="light"] .fd-cursor { color: var(--fd-accent); }

[data-theme="light"] .CodeMirror .CodeMirror-selected {
  background: rgba(8, 120, 194, 0.18) !important;
}
[data-theme="light"] .CodeMirror-focused .CodeMirror-selected {
  background: rgba(8, 120, 194, 0.30) !important;
}
