.fctc-token-calculator {
  --fctc-ink: #1f2540;
  --fctc-muted: #667085;
  --fctc-line: #d8deea;
  --fctc-panel: #ffffff;
  --fctc-soft: #f7f9fc;
  --fctc-accent: #129982;
  max-width: 520px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid rgba(31, 37, 64, 0.12);
  border-radius: 8px;
  background: var(--fctc-panel);
  color: var(--fctc-ink);
  box-shadow: 0 14px 32px rgba(31, 37, 64, 0.08);
}

.fctc-token-calculator h2 {
  margin: 0 0 14px;
  color: var(--fctc-ink);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.fctc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: center;
}

.fctc-size,
.fctc-unit {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--fctc-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--fctc-ink);
  font: inherit;
  box-shadow: none;
}

.fctc-size {
  padding: 0 12px;
}

.fctc-unit {
  padding: 0 10px;
}

.fctc-size:focus,
.fctc-unit:focus {
  border-color: var(--fctc-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(18, 153, 130, 0.14);
}

.fctc-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 153, 130, 0.22);
  border-radius: 8px;
  background: #f4fbfa;
}

.fctc-total strong {
  color: var(--fctc-ink);
}

.fctc-result {
  color: var(--fctc-accent);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.fctc-note {
  margin: 10px 0 0;
  color: var(--fctc-muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .fctc-row,
  .fctc-total {
    grid-template-columns: 1fr;
  }

  .fctc-total {
    align-items: flex-start;
    flex-direction: column;
  }
}
