.totp-tool { width:100%; margin:0 auto; color:var(--dz-text,#111318); }
.totp-tool [hidden] { display:none !important; }
.totp-card { min-width:0; padding:24px; border-radius:var(--tools-radius,20px); background:var(--dz-card,#fff); }
.totp-field-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; }
.totp-tool label { font-size:15px; font-weight:750; }
.totp-field-heading > span { color:var(--dz-muted,#5f6672); font-size:12px; }
.totp-secret-row { display:flex; align-items:stretch; min-width:0; padding:4px; border:1px solid #d9dfea; border-radius:14px; background:#f7f8fa; }
.totp-secret-row:focus-within { border-color:var(--dz-accent,#3b5bdb); outline:3px solid #e8edff; }
.totp-tool #totp-secret { flex:1; width:0; min-width:0; min-height:46px; padding:9px 10px; border:0; border-radius:10px; background:transparent; color:var(--dz-text,#111318); font:inherit; font-size:16px; line-height:1.6; }
.totp-tool #totp-secret::placeholder { color:#657084; opacity:1; }
.totp-tool #totp-secret:focus-visible { outline:0; }
.totp-tool button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:10px 18px; border:0; border-radius:12px; font:inherit; font-size:14px; font-weight:750; line-height:1.6; cursor:pointer; }
.totp-tool button:focus-visible { outline:3px solid #7188ec; outline-offset:3px; }
.totp-help { margin:9px 0 0; color:var(--dz-muted,#5f6672); font-size:12px; line-height:1.8; }
.totp-actions { display:flex; gap:10px; margin-top:18px; }
.totp-tool #totp-start { flex:1; background:var(--dz-accent,#3b5bdb); color:#fff; }
.totp-tool #totp-clear { min-width:92px; background:#eef1f6; color:#46516b; }
.totp-tool #totp-start:hover:not(:disabled) { background:#2f4bc0; }
.totp-tool #totp-clear:hover { background:#e5eaf2; }
.totp-tool button:disabled { opacity:.5; cursor:default; }
.totp-tool #totp-error { margin:10px 0 0; color:#b42318; font-size:13px; line-height:1.8; }
.totp-tool #totp-error:empty { display:none; }
.totp-display { min-height:210px; margin-top:22px; padding:18px; border-radius:16px; background:#f3f5fc; }
.totp-empty { display:flex; min-height:174px; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.totp-code-label { margin:0; color:#556078; font-size:13px; font-weight:700; line-height:1.8; }
.totp-placeholder { margin:14px 0; color:#a0abc4; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:40px; line-height:1.3; letter-spacing:.05em; white-space:nowrap; }
.totp-empty > p { margin:0; color:#667188; font-size:12px; line-height:1.8; }
.totp-result-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.totp-timing { display:inline-flex; align-items:center; gap:4px; color:#3552af; font-size:12px; font-weight:700; line-height:1.8; white-space:nowrap; }
.totp-countdown-label { font-weight:500; }
.totp-tool #totp-code { display:block; width:100%; min-height:0; margin:16px 0 12px; padding:0; border:0; border-radius:8px; background:transparent; color:#253b8d; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:clamp(34px,10vw,52px); font-weight:750; text-align:center; line-height:1.3; letter-spacing:.045em; white-space:nowrap; user-select:all; touch-action:manipulation; }
.totp-tool #totp-code:hover:not(:disabled) { color:#3b5bdb; }
.totp-tool #totp-code:disabled { opacity:1; cursor:default; }
html[data-theme="dark"] .totp-tool #totp-code { color:#b5c4ff; }
html[data-theme="dark"] .totp-tool #totp-code:hover:not(:disabled) { color:#dbe3ff; }
html[data-theme="dark"] .totp-tool :is(#totp-settings,#totp-copy-status) { color:var(--dz-muted,#a3aec1); }
.totp-tool #totp-progress { display:block; width:100%; height:5px; overflow:hidden; border:0; border-radius:999px; background:#e0e5f2; color:var(--dz-accent,#3b5bdb); appearance:none; }
.totp-tool #totp-progress::-webkit-progress-bar { border-radius:999px; background:#e0e5f2; }
.totp-tool #totp-progress::-webkit-progress-value { border-radius:999px; background:var(--dz-accent,#3b5bdb); }
.totp-tool #totp-progress::-moz-progress-bar { border-radius:999px; background:var(--dz-accent,#3b5bdb); }
.totp-tool[data-expiring] .totp-timing { color:#945000; }
.totp-tool[data-expiring] #totp-progress::-webkit-progress-value { background:#b86a0b; }
.totp-tool[data-expiring] #totp-progress::-moz-progress-bar { background:#b86a0b; }
.totp-tool #totp-settings { margin:8px 0 0; color:#667188; font-size:11px; text-align:center; line-height:1.7; }
.totp-tool #totp-copy-status { min-height:1.7em; margin:4px 0 0; color:#3552af; font-size:11px; text-align:center; line-height:1.7; }
.totp-privacy { display:flex; align-items:flex-start; justify-content:center; gap:7px; margin:16px 0 0; color:#667188; font-size:12px; line-height:1.8; }
.totp-privacy svg { flex:none; width:15px; height:15px; margin-top:3px; }
@media(max-width:540px) {
 .totp-card { padding:20px 18px; }
 .totp-field-heading { flex-wrap:wrap; gap:4px 12px; }
 .totp-field-heading > span { font-size:11px; }
 .totp-display { padding:16px; margin-top:18px; min-height:186px; }
 .totp-empty { min-height:154px; }
 .totp-result-heading { gap:6px; }
 .totp-code-label,.totp-timing { font-size:12px; }
 .totp-tool #totp-clear { min-width:80px; }
}
