/* «Коды 2FA» (/inside/2fa-settings). Design: canvas «DigiHelper — кабинет», page «2FA» v31 (approved 2026-11-24).
   Uses dha- (ai-page.css), sk- (stock-page.css), dx-/ac- (account-page.css), InfoTip. Prefix: tf-. */

/* app.css sets a font on every element, so it is set back here (before the mono rules below). */
.tf *, .tf-lr *, .tf-lim *, .tf-empty * { font-family: var(--dhs-body); }
.tf-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.tf-lbl { display: inline-flex; align-items: center; gap: 8px; }
.tf-link { --c: #1fa1f1; display: flex; gap: 20px 32px; align-items: center; flex-wrap: wrap; padding: 28px 32px; }
.tf-link > .dha-grow { min-width: 260px; }
.tf-link h2 { margin: 0; font: 600 24px/30px var(--dhs-display); letter-spacing: -.01em; color: var(--dhs-on-night); display: flex; align-items: center; gap: 12px; }
.tf-url { margin-top: 10px; min-height: 22px; font: 500 15px/22px "JetBrains Mono", ui-monospace, Consolas, monospace; color: #8fd0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tf-card { padding: 0; background: var(--dhs-surface); border: 1px solid var(--dhs-line); border-radius: 24px; box-shadow: var(--dhs-shadow-sm); }
.tf-bar { display: flex; align-items: center; gap: 16px; padding: 20px 24px; flex-wrap: wrap; }
.tf-bar .sk-search { width: 360px; }
.tf-cnt { margin-left: auto; font: 400 14px/20px var(--dhs-body); color: var(--dhs-muted); }
.tf-empty { padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tf-empty p { margin: 0; font: 400 15px/22px var(--dhs-body); color: var(--dhs-muted); }
.tf-acc .tf-empty { padding: 20px; }
table.tf { width: 100%; border-collapse: collapse; table-layout: fixed; font: 400 15px/22px var(--dhs-body); color: var(--dhs-ink); }
.tf-c1 { width: 130px; } .tf-c2 { width: 170px; } .tf-c3 { width: 164px; }
.tf th { height: 44px; padding: 0 12px; border-top: 1px solid var(--dhs-line); font: 400 13.5px/18px var(--dhs-body); color: var(--dhs-muted); text-align: left; }
.tf td { height: 68px; padding: 0 12px; border-top: 1px solid var(--dhs-line); white-space: nowrap; vertical-align: middle; }
.tf th:first-child, .tf td:first-child { padding-left: 24px; }
.tf th:last-child, .tf td:last-child { padding-right: 20px; }
.tf-n { display: block; font: 500 15px/21px var(--dhs-body); overflow: hidden; text-overflow: ellipsis; }
.tf-id, .tf-l2 { display: block; font: 400 13px/18px var(--dhs-body); color: var(--dhs-muted); }
.tf-exp { width: 100%; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tf-exp > span { min-width: 0; }
.dha .tf-exp .dhs-ic { width: 18px; height: 18px; flex: none; color: var(--dhs-muted); transition: transform 200ms var(--dhs-ease); }
.dha .tf-open .tf-exp .dhs-ic { transform: rotate(90deg); }
.tf-open td { background: var(--dhs-bg); }
.tf tr.tf-in > td { height: auto; padding: 0 20px 20px 24px; border-top: 0; background: var(--dhs-bg); }
.tf tr.tf-in:last-child > td { border-radius: 0 0 24px 24px; }
.tf tr.tf-open:last-child td:first-child { border-bottom-left-radius: 24px; }
.tf-acc { background: var(--dhs-surface); border: 1px solid var(--dhs-line); border-radius: 18px; overflow: hidden; }
.tf-a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 190px 88px; gap: 16px; align-items: center; min-height: 60px; padding: 0 12px 0 20px; }
.tf-a + .tf-a { border-top: 1px solid var(--dhs-line); }
.tf-a > span { overflow: hidden; text-overflow: ellipsis; }
.tf-k { font: 500 14px/20px "JetBrains Mono", ui-monospace, Consolas, monospace; color: var(--dhs-muted); }
.tf-code { display: flex; align-items: center; gap: 12px; font: 600 20px/26px "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.tf-code small { font: 400 13px/18px var(--dhs-body); letter-spacing: 0; color: var(--dhs-muted); font-variant-numeric: tabular-nums; }
.tf-bad { font: 500 14px/20px var(--dhs-body); color: var(--dhs-danger); }
.tf-lim { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 24px 32px; border-radius: 28px; background: var(--dhs-surface); border: 1px solid var(--dhs-line); }
.tf-lim h2 { margin: 0; flex: 1; min-width: 260px; display: flex; align-items: center; gap: 12px; font: 600 20px/26px var(--dhs-display); color: var(--dhs-ink); }
.tf-lim .dha-inp { height: 48px; border-radius: 12px; width: 140px; }
.tf-lim .tf-inv { width: 200px; }
.tf-lim .dha-btn { height: 48px; }
.tf-lim .ac-err { flex-basis: 100%; }
.tf-ctx { margin: -8px 0 0; font: 400 14px/20px var(--dhs-body); color: var(--dhs-muted); }
.tf-lims { border: 1px solid var(--dhs-line); border-radius: 16px; }
.tf-lr { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; font: 500 14.5px/20px var(--dhs-body); color: var(--dhs-ink); }
.tf-lr + .tf-lr { border-top: 1px solid var(--dhs-line); }
.tf-lr input[type=checkbox] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--dhs-brand); }
.tf-lr label { flex: 1; min-width: 0; white-space: nowrap; }
.tf-lr .dha-inp { width: 76px; text-align: center; padding: 0 6px; }
.tf-lr .dha-sel { width: 136px; padding: 0 8px; }
.tf-lr :disabled { opacity: .5; }
.tf-ta .blazored-typeahead { border: 1px solid var(--dhs-line-strong); border-radius: 8px; background: var(--dhs-surface); color: var(--dhs-ink); min-height: 44px; }
.tf-ta .blazored-typeahead__input { width: 100%; border: 0; }
.tf-ta .blazored-typeahead__input, .tf-ta .blazored-typeahead__input-mask { background: transparent; color: var(--dhs-ink); font: 400 15px/20px var(--dhs-body); }
.tf-ta .blazored-typeahead__results { background: var(--dhs-surface); color: var(--dhs-ink); border: 1px solid var(--dhs-line); border-radius: 12px; max-height: 260px; overflow-y: auto; }
.tf-ta .blazored-typeahead__result { background: transparent; color: var(--dhs-ink); font: 400 14px/20px var(--dhs-body); }
.tf-ta .blazored-typeahead__result:hover { background: var(--dhs-surface-2); color: var(--dhs-ink); }

.tf-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.tf-a--steam { grid-template-columns: minmax(0, 1.4fr) 110px 150px 210px 88px; padding-top: 8px; padding-bottom: 8px; }
.tf-a--steam .tf-code { font-size: 18px; }
.tf-a-err { grid-column: 1 / -1; white-space: normal; }
.ac-modal { max-height: calc(100vh - 32px); overflow-y: auto; }

/* one account in several shops */
.ms { border: 1px solid var(--dhs-line); border-radius: 16px; }
.ms-r { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.ms-r + .ms-r { border-top: 1px solid var(--dhs-line); }
.ms-h { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 500 14.5px/20px var(--dhs-body); color: var(--dhs-ink); }
.ms-h input { width: 20px; height: 20px; margin: 0; accent-color: var(--dhs-brand); flex: none; }
.ms-h .dhs-plat { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; flex: none; }
.ms-h small { margin-left: auto; font: 400 13px/18px var(--dhs-body); color: var(--dhs-muted); }
.ms-new { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--dhs-surface-2); }
.ms-new > span, .ms-note { font: 400 13px/18px var(--dhs-body); color: var(--dhs-muted); }
.ms-opt { border: 0; border-radius: 9px; padding: 8px 10px; background: var(--dhs-surface); color: var(--dhs-ink); font: 400 14px/20px var(--dhs-body); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-opt:hover { background: var(--dhs-brand-soft); }
.ms-picked { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 500 14px/20px var(--dhs-body); color: var(--dhs-ink); }
.ms-res { flex-direction: row; justify-content: space-between; gap: 16px; font: 400 14.5px/20px var(--dhs-body); color: var(--dhs-ink); }
.ms-ok { color: var(--dhs-success); } .ms-bad { color: var(--dhs-danger); text-align: right; }

@media (max-width: 1100px) {
    .tf-wrap { overflow-x: auto; }
    table.tf { min-width: 860px; }
}
@media (max-width: 640px) {
    .tf-link, .tf-lim { padding: 20px; border-radius: 24px; }
    .tf-bar { padding: 16px; }
    .tf-lim .dha-inp, .tf-lim .tf-inv, .tf-lim .dha-btn, .tf-bar .sk-search { width: 100%; }
    .tf-lr .dha-sel { width: 112px; }
    .tf-lr .dha-inp { width: 60px; }
}
