.ft-card { padding: 28px; }
.ft-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.ft-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.ft-error { background: var(--site-danger-bg); border: 1px solid var(--site-danger-border); color: var(--site-danger); border-radius: 8px; padding: 10px 14px; font-size: .88em; }
.ft-error.hide { display: none; }

.ft-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 20px; }
.ft-field { display: flex; flex-direction: column; gap: 6px; }
.ft-field label { font-size: .85em; font-weight: 600; color: #374151; }
.ft-field input { border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: .95em; font-family: inherit; }
.ft-field input:focus { outline: none; border-color: var(--site-light); }
.ft-field small { color: #9aa0aa; font-size: .78em; }

.ft-output { background: #f7f8fa; border: 1px solid #eee; border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.ft-output-label { font-size: .85em; font-weight: 700; color: #374151; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.ft-formula { font-family: "Courier New", monospace; font-size: 1.15em; font-weight: 700; color: var(--site-dark); background: #fff; border: 1px solid #e0ece6; border-radius: 8px; padding: 14px 16px; word-break: break-all; }
.ft-css-block { font-family: "Courier New", monospace; font-size: .9em; background: #fff; border: 1px solid #e0ece6; border-radius: 8px; padding: 14px 16px; margin-top: 10px; white-space: pre; overflow-x: auto; }

.ft-preview { border: 1px solid #eee; border-radius: 10px; padding: 24px; text-align: center; background: #fafbfc; }
.ft-preview-text { font-weight: 700; color: #23272f; line-height: 1.3; }
.ft-preview-hint { margin-top: 12px; font-size: .82em; color: #6b7280; }
.ft-preview-slider-wrap { margin-top: 14px; }
.ft-preview-slider-wrap input[type="range"] { width: 100%; }
.ft-preview-slider-label { font-size: .82em; color: #6b7280; display: flex; justify-content: space-between; margin-bottom: 4px; }

.ft-copy-btn { background: none; border: 1px solid var(--site-light); border-radius: 20px; padding: 5px 14px; font-size: .8em; font-weight: 600; color: var(--site-dark); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ft-copy-btn:hover { background: #f0fdfa; }
.ft-copy-btn.ft-copied { background: var(--site-success-bg); border-color: #86efac; color: var(--site-success); }

@media (max-width: 600px) {
    .ft-inputs { grid-template-columns: 1fr; }
}
