/* Layout, pills, statistics and progress use the shared Session styles. */
.twofa-page .retry-action { display:inline-flex; align-items:center; justify-content:center; gap:6px; color:#3466c1; border-color:#c8d8f4; background:#f1f6ff; transition:background .18s,box-shadow .18s; }
.twofa-page .retry-action::before { content:"↻"; font-size:17px; line-height:1; }
.twofa-page .retry-action:hover:not(:disabled) { background:#e4eeff; box-shadow:0 2px 6px #3565b51a; }
.twofa-page .retry-action:focus-visible { outline:2px solid #5d8ee4; outline-offset:2px; }
#retryDialog { box-sizing:border-box; width:min(620px,calc(100vw - 32px)); max-height:85dvh; padding:24px; border:1px solid #e2e7ed; border-radius:20px; color:#17324c; background:#fff; box-shadow:0 20px 70px #172b4d30; }
#retryDialog::backdrop { background:#14202e66; backdrop-filter:blur(3px); }
#retryDialog .dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#retryDialog h2 { margin:0; font-size:18px; }
#retryDialog p { font-size:13px; line-height:1.8; color:#68788d; overflow-wrap:anywhere; }
#retryInput { box-sizing:border-box; width:100%; padding:12px; border:1px solid #d9e2ef; border-radius:10px; font:13px/1.6 Consolas,monospace; resize:vertical; }
#retryDialog #retryFeedback { color:#ad432d; }
#retryFeedback:empty { display:none; }
.twofa-page .result-account-actions { display:flex; flex-basis:100%; justify-content:flex-end; gap:8px; }
@media(max-width:760px) { .twofa-page .result-account-actions { justify-content:flex-start; } }
.twofa-page .state-chip.is-verified { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:5px 10px; border:1px solid #a7dbc2; border-radius:999px; color:#086b45; background:linear-gradient(135deg,#edfdf4,#e1f7ec); box-shadow:0 1px 2px #12673f0d; font-size:12px; font-weight:700; line-height:18px; white-space:nowrap; }
.twofa-page .verified-icon { position:relative; display:inline-block; flex:0 0 16px; width:16px; height:16px; border-radius:50%; background:#159660; box-shadow:inset 0 0 0 1px #08764c26; }
.twofa-page .verified-icon::after { content:""; position:absolute; left:5px; top:3px; width:4px; height:7px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
#passwordConfirmDialog { box-sizing:border-box; width:min(520px,calc(100vw - 32px)); max-height:85dvh; padding:24px; border:1px solid #e2e7ed; border-radius:20px; color:#17324c; background:#fff; box-shadow:0 20px 70px #172b4d30; }
#passwordConfirmDialog::backdrop { background:#14202e66; backdrop-filter:blur(3px); }
#passwordConfirmDialog h2 { margin:0 0 14px; font-size:18px; }
#passwordConfirmDialog p { margin:10px 0; color:#68788d; font-size:13px; line-height:1.8; }
#passwordConfirmDialog #passwordConfirmCount { color:#e8741a; font-weight:600; }
.password-confirm-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.password-confirm-actions .primary-action { min-width:136px; height:40px; font-size:13px; }
.twofa-page .entry-grid { grid-template-areas:"accounts log" "controls controls"; }
@media(max-width:1240px) { .twofa-page .entry-grid { grid-template-areas:"accounts" "log" "controls"; } }
@media(max-width:760px) {
  .session-page.twofa-page.session-layout #accountInput:placeholder-shown { height:440px; }
  @supports (field-sizing:content) {
    .session-page.twofa-page.session-layout #accountInput:placeholder-shown { field-sizing:content; height:auto; width:100%; }
  }
}
.twofa-page .format-pills { grid-template-columns:repeat(5,minmax(0,1fr)); }
.twofa-page .format-pill[data-format-field="ms-client-id"] { --pill-bg:#e7f7fc; --pill-border:#b1dfe9; --pill-color:#176e88; }
.twofa-page .format-pill[data-format-field="ms-refresh-token"] { --pill-bg:#fff1e5; --pill-border:#f0ceac; --pill-color:#9a5b22; }
@media(max-width:760px) {
  .twofa-page .format-pills { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .twofa-page .format-pills > .format-pill:nth-child(4)::after { left:calc(-1 * var(--format-gap) - 1px); top:calc(100% + 12px); }
}
.twofa-page .session-live-log .batch-log-entry[data-level="warning"] .batch-log-dot { background:#d18a22; }
.twofa-page .twofa-export-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 20px; border-top:1px solid #e8ecf1; }
.twofa-page .twofa-export-tools[hidden] { display:none; }
.twofa-page .twofa-export-tools p { margin:0; color:#69788c; font-size:11px; line-height:1.6; }
.twofa-page .twofa-export-tools > div { display:flex; flex:0 0 auto; gap:8px; }
#secretDialog { border:1px solid #e2e7ed; border-radius:16px; padding:24px; width:min(640px,90vw); }
#secretDialog::backdrop { background:rgba(20,30,45,.32); }
#secretStatus { color:#68788d; font-size:13px; line-height:1.7; }
#secretText { display:block; box-sizing:border-box; width:100%; min-height:120px; margin-bottom:16px; border:1px solid #dde4ee; border-radius:10px; padding:12px; font:13px/1.6 Consolas,monospace; }
#historyDialog { box-sizing:border-box; width:min(1080px,calc(100vw - 32px)); max-height:85vh; max-height:85dvh; padding:22px; border:1px solid #e2e7ed; border-radius:20px; color:#17324c; background:#fff; box-shadow:0 20px 70px #172b4d30; }
#historyDialog::backdrop { background:#14202e66; backdrop-filter:blur(3px); }
#historyDialog .dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
#historyDialog h2 { margin:0; font-size:18px; }
.history-note,.history-expiry { color:#69788c; font-size:12px; line-height:1.7; }
.history-expiry { margin-top:6px; font-size:11px; }
.history-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; font-size:12px; }
.history-toolbar > div,.history-confirm > div { display:flex; gap:8px; flex-wrap:wrap; }
.twofa-page .danger-action { color:#bd3535; border-color:#efcaca; background:#fff6f5; }
.twofa-page .danger-action:hover { background:#ffe8e5; }
.history-confirm { padding:12px; margin:8px 0; border:1px solid #efcaca; border-radius:12px; background:#fff8f6; }
.history-confirm p { margin:0 0 10px; font-size:12px; line-height:1.7; }
#historyFeedback { color:#ad432d; font-size:12px; line-height:1.6; }
#historyFeedback:empty { display:none; }
#historyRows { border:1px solid #e8ecf1; border-radius:12px; overflow:hidden; }
#historyRows .result-item { padding:14px; }
@media(max-width:760px) { #historyDialog { width:calc(100vw - 20px); padding:16px; } .history-toolbar { align-items:flex-start; flex-wrap:wrap; } }
@media(max-width:760px) { .twofa-page .twofa-export-tools { align-items:flex-start; flex-direction:column; } .twofa-page .twofa-export-tools > div { flex-wrap:wrap; } }
