.tf { margin: 22px 0 14px; background: #fff; border: 1px solid var(--line, #dde3ec); border-top: 5px solid var(--blue, #2673b4); border-radius: var(--radius, 14px); padding: 6px 24px 24px; }
.tf fieldset { border: 0; margin: 0; padding: 18px 0 4px; border-bottom: 1px solid var(--line, #dde3ec); min-width: 0; }
.tf fieldset:last-of-type { border-bottom: 0; }
.tf legend { font: 600 1.05rem var(--display, inherit); color: var(--ink, #10203a); padding: 0; margin-bottom: 10px; }
.tf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.tf__field { display: block; margin: 0 0 14px; }
.tf [hidden] { display: none !important; }
.tf__field > span { display: block; font-weight: 600; font-size: .92rem; color: var(--ink, #10203a); margin-bottom: 5px; }
.tf__field b { color: var(--red, #c0392b); }
.tf__field small { display: block; font-size: .82rem; color: var(--muted, #5b6676); margin-top: 4px; }
.tf__field input, .tf__field select, .tf__field textarea { width: 100%; box-sizing: border-box; padding: .7em .85em; border: 2px solid #c3ccda; border-radius: 10px; font: 500 1rem var(--text, inherit); background: #fff; color: var(--ink, #10203a); }
.tf__field input[type="file"] { padding: .55em; border-style: dashed; }
.tf__field textarea { resize: vertical; min-height: 3.2em; }
.tf__field input:focus, .tf__field select:focus, .tf__field textarea:focus { border-color: var(--blue, #2673b4); outline: 0; }
.tf__field--bad input, .tf__field--bad select, .tf__field--bad textarea { border-color: var(--red, #c0392b); }
.tf__field--short { max-width: 340px; }
.tf__note { margin: 0 0 12px; font-size: .95rem; }
.tf__critical { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fbe4e1; color: #7a1d10; font-weight: 600; }
.tf__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tf__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 18px; }
.tf__status { margin: 0; font-weight: 600; }
.tf__status--err { color: var(--red, #c0392b); }
.tf__done { margin: 22px 0 14px; padding: 24px; background: #f1f7e6; border: 1px solid #9dc24c; border-radius: var(--radius, 14px); color: #24360a; }
.tf__done h3 { margin-top: 0; }
@media (max-width: 640px) { .tf { padding: 4px 16px 18px; } .tf__grid { grid-template-columns: 1fr; } }
