.tfg { margin-bottom: var(--sp-5); }
.tfg-why { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); font-size: 16px; line-height: 1.55; }
.tfg-why b { color: var(--ink); }

.tfg-step + .tfg-step { margin-top: var(--sp-6); }
.tfg-step h2 { font-size: 19px; margin: 0 0 var(--sp-3); outline: none; }
.tfg-step p { font-size: 16px; line-height: 1.55; margin: 0 0 var(--sp-3); }
.tfg-count { font-size: 13px !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); margin: 0 0 var(--sp-1) !important; }
.tfg-why { margin-bottom: var(--sp-4) !important; }

.tfg-progress { display: none; list-style: none; margin: 0 0 var(--sp-5); padding: 0; gap: var(--sp-2); }
.tfg-progress li { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--ink-2); border-top: 3px solid var(--line-strong); padding-top: 8px; }
.tfg-progress li.is-on, .tfg-progress li.is-done { border-top-color: var(--primary); color: var(--ink); }
.tfg-progress li.is-on { font-weight: 600; }
.tfg-nav { display: none; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.tfg.is-wizard .tfg-progress { display: flex; }
.tfg.is-wizard .tfg-nav { display: flex; }
.tfg-formnav { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-4); }
.tfg-formnav .btn-primary { min-width: 200px; }
.tfg-back { display: none; }
.tfg.is-wizard .tfg-back { display: inline-flex; }
.tfg.is-wizard .tfg-step + .tfg-step { margin-top: 0; }
.tfg.is-wizard .tfg-step[hidden] { display: none; }
.tfg-nav .btn-primary { flex: 1 1 auto; }
.tfg-code { max-width: 220px; margin: 0 auto; font-size: 22px; letter-spacing: .2em; text-align: center; }
[data-tfg-step="3"] .field { text-align: center; }

.tfg-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.tfg-app { border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--sp-3); background: var(--paper); }
.tfg-app-name { font-weight: 600; font-size: 16px; margin: 0 0 var(--sp-2) !important; }
.tfg-app-note { font-size: 14px !important; color: var(--ink-2); }
.tfg-tag { font-size: 12px; font-weight: 600; color: var(--primary); background: var(--surface); border-radius: 999px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; }
.tfg-stores { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tfg-alt { margin: 0; padding-left: 18px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.tfg-alt li + li { margin-top: 4px; }

.tfg-qr { display: flex; justify-content: center; margin: 0 0 var(--sp-3); }
.tfg-phone { display: none; }
.tfg-keyhint { font-size: 15px !important; color: var(--ink-2); }
.tfg-key { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.tfg-key code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; letter-spacing: .06em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; word-break: normal; overflow-wrap: normal; }

@media (max-width: 640px) {

	.tfg-desk, .tfg-qr { display: none; }
	.tfg-phone { display: block; }
	a.tfg-phone { display: flex; margin-bottom: var(--sp-3); }
	.tfg-code { max-width: none; width: 100%; }
	.tfg-formnav .btn { flex: 1 1 100%; min-width: 0; }
	.tfg-formnav .btn-primary { order: -1; }
}

.tf-later { border-top: 1px solid var(--line); margin-top: var(--sp-5); padding-top: var(--sp-4); }
.tf-later p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0 0 var(--sp-3); }
.tf-later b { color: var(--ink); }
.tf-tip { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: var(--sp-4) 0 0; text-align: center; }

.tfs-card { max-width: 720px; }
[data-tfg-step="3"] .field label { display: block; margin-bottom: var(--sp-2); }
.tfs-cancel { text-align: center; margin: var(--sp-4) 0 0; }
