.tf-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:18px;align-items:start;margin-top:18px}
.tf-card{padding:20px;border:1px solid #3d3355;border-radius:16px;background:#221b33;min-width:0}
.tf-sys{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.tf-sys button,.tf-copy{min-height:36px;padding:4px 14px;border:1px solid #57497a;border-radius:99px;background:#2f2545;color:#f4edff;font:inherit;cursor:pointer}
.tf-sys button[aria-pressed=true]{background:#a874f0;border-color:#a874f0;color:#160d24;font-weight:700}
.tf-layout .tf-card label{display:block;margin-bottom:14px;color:#d9cce6;font-weight:600}
.tf-layout .tf-card label input:not([type=checkbox]){display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #57497a;border-radius:10px;background:#15101f;color:#fff;font:inherit}
.tf-layout .tf-card label.tf-check{display:flex;gap:10px;align-items:center;color:#f4edff}
.tf-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tf-error{margin:0;padding:14px 16px;border:1px solid #d9a441;border-radius:12px;background:#3a2c14;color:#ffe2a8}
.tf-answer{padding:24px;border:1px solid #a874f0;border-radius:16px;background:#34214f;color:#f4edff}
.tf-answer small{letter-spacing:.08em;color:#d9cce6}
.tf-answer>strong{display:block;font-size:clamp(3rem,7vw,4.6rem);line-height:1.05;color:#fff;overflow-wrap:anywhere}
.tf-each{color:#d8b9ff;font-weight:700}
.tf-route{display:flex;align-items:center;gap:8px;margin:20px 0 6px;font-weight:700}
.tf-route i{flex:1;height:0;border-top:3px dashed #a874f0}
.tf-route b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#a874f0;color:#160d24}
.tf-road{margin:0 0 14px;color:#d9cce6;text-align:center}
.tf-back{color:#d8b9ff}
.tf-lines{list-style:none;margin:0 0 14px;padding:10px 0 0;border-top:1px solid #57497a}
.tf-lines li{display:flex;justify-content:space-between;gap:12px;padding:5px 0}
.tf-copy{border-radius:10px;min-height:40px;font-weight:600}
@media(max-width:860px){.tf-layout{grid-template-columns:1fr}}
