/* 2fas.online — small, local, accessible. No external fonts or image dependencies. */
:root{color-scheme:light;--page:#f8fafb;--surface:#fff;--surface-soft:#f3f6f8;--ink:#152227;--muted:#5f7078;--subtle:#657780;--line:#e4e9ec;--accent:#087b64;--accent-hover:#08735f;--accent-soft:#eaf6f1;--primary:#152a31;--primary-text:#fff;--blue:#2563a5;--danger:#b43b43;--danger-soft:#fff0f1;--warning:#8e6011;--warning-soft:#fff7e9;--shadow:0 3px 14px #18323d04;--modal-shadow:0 24px 90px #0c28322e;--radius:16px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-synthesis:none;line-height:1.55;-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
:root[data-theme=dark]{color-scheme:dark;--page:#10181d;--surface:#162127;--surface-soft:#1b292f;--ink:#edf3f5;--muted:#a0b0b8;--subtle:#8fa0aa;--line:#2a3941;--accent:#6ad1b5;--accent-hover:#91e2c9;--accent-soft:#1b3833;--primary:#e2f0ee;--primary-text:#14272c;--blue:#9ac4ff;--danger:#ff9aa2;--danger-soft:#39252a;--warning:#e9be70;--warning-soft:#392f22;--shadow:0 3px 14px #00000012;--modal-shadow:0 24px 90px #0009}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--page);min-width:320px}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,summary{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.42}a{color:inherit;text-decoration:none}a:hover{color:var(--accent-hover)}button{border:0}p,h1,h2,h3{margin:0}button,summary,a,input,select{outline-offset:4px}button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue)}[hidden]{display:none!important}.icon{width:20px;height:20px;display:inline-block;flex:none;vertical-align:middle}svg{overflow:visible}button .icon,summary .icon{pointer-events:none}.skip-link{position:fixed;top:10px;left:10px;z-index:100;background:var(--surface);padding:12px 20px;border-radius:8px;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}
.site-header{height:85px;background:var(--surface);border-bottom:1px solid var(--line)}.header-inner{max-width:1120px;height:100%;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:11px;font-size:25px;font-weight:740;letter-spacing:-1px;white-space:nowrap}.brand-icon{height:35px;width:35px;border-radius:11px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}.brand-icon .icon{height:22px;width:22px}.brand .brand-domain{color:var(--accent)}.header-right{display:flex;align-items:center;gap:24px}.header-nav{display:flex;gap:26px;color:var(--muted);font-size:13px;font-weight:550}.header-nav a[aria-current=page]{color:var(--ink)}.header-controls{display:flex;gap:6px;align-items:center;padding-left:20px;border-left:1px solid var(--line)}.icon-button{width:40px;min-width:40px;height:40px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--muted);padding:0;transition:background .15s,color .15s}.icon-button:hover{background:var(--surface-soft);color:var(--ink)}.language-switch{display:flex;align-items:center;justify-content:center;min-width:42px;min-height:40px;font-size:12px;font-weight:650;border-radius:9px}.language-switch:hover{background:var(--surface-soft)}details>summary{list-style:none}details>summary::-webkit-details-marker{display:none}.popover{position:relative}.menu-items{position:absolute;right:0;top:calc(100% + 7px);min-width:185px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 10px 40px #102c371c;z-index:12}.menu-items button{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:10px 12px;border-radius:7px;background:none;font-size:13px;white-space:nowrap;min-height:40px}.menu-items button .icon{width:16px;height:16px}.menu-items button:not(:disabled):hover{background:var(--surface-soft)}.menu-items button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.theme-dark-icon{display:none}:root[data-theme=dark] .theme-light-icon{display:none}:root[data-theme=dark] .theme-dark-icon{display:block}.danger-text{color:var(--danger)}
.workspace{width:calc(100% - 48px);max-width:810px;margin:51px auto 0}.workspace-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:30px}h1{font-size:36px;font-weight:680;letter-spacing:-1.25px;line-height:1.18}.workspace-subtitle{color:var(--muted);font-size:14px;margin-top:10px}.private-badge{display:flex;gap:6px;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:24px;white-space:nowrap;padding:6px 11px;font-size:11px;color:var(--muted);margin-bottom:3px}.private-badge .icon{width:13px;height:13px;color:var(--accent)}.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;min-height:35px}.profile-count{color:var(--muted);font-size:12px;font-weight:550}.toolbar-actions{display:flex;align-items:center;gap:4px}.text-button{background:transparent;display:inline-flex;gap:7px;align-items:center;justify-content:center;border-radius:8px;padding:8px 10px;min-height:36px;font-size:12px;font-weight:550;color:var(--muted)}.text-button .icon{width:15px;height:15px}.text-button:hover{background:var(--surface-soft);color:var(--ink)}.toolbar-separator{width:1px;height:13px;background:var(--line);margin:0 3px}.profile-list{display:grid;gap:14px}.auth-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 22px 17px;box-shadow:var(--shadow);min-width:0}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.card-identity{display:flex;align-items:center;gap:11px;min-width:0}.account-avatar{width:32px;height:32px;flex:none;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:650}.auth-card:nth-child(3n + 2) .account-avatar{background:var(--surface-soft);color:var(--ink)}.auth-card:nth-child(3n) .account-avatar{background:#edf2fe;color:#4c669f}:root[data-theme=dark] .auth-card:nth-child(3n) .account-avatar{background:#243148;color:#aec9ff}.account-names{min-width:0}.account-name{font-size:15px;font-weight:610;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:-.1px}.account-meta{color:var(--muted);font-size:10px}.card-menu .icon-button{width:32px;min-width:32px;height:32px}.code-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:15px;background:none;padding:13px 0 16px;text-align:left;border-radius:7px;user-select:text}.totp-code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:35px;line-height:1.3;letter-spacing:1.4px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}.copy-feedback{display:flex;align-items:center;gap:7px;color:var(--muted);min-height:32px}.copy-feedback .icon{width:17px;height:17px}.copy-label{font-size:11px;min-width:58px}.code-row:hover .copy-feedback{color:var(--accent)}.code-row.is-copied .copy-feedback{color:var(--accent)}.timer-row{display:flex;align-items:center;gap:12px}.timer-row progress{appearance:none;-webkit-appearance:none;display:block;border:0;border-radius:5px;overflow:hidden;width:100%;height:4px;background:var(--surface-soft);color:var(--accent)}progress::-webkit-progress-bar{background:var(--surface-soft);border-radius:5px}progress::-webkit-progress-value{background:var(--accent);border-radius:5px;transition:width .2s linear}progress::-moz-progress-bar{background:var(--accent);border-radius:5px}.expiring progress{color:var(--warning)}.expiring progress::-webkit-progress-value{background:var(--warning)}.expiring progress::-moz-progress-bar{background:var(--warning)}.timer-text{min-width:27px;text-align:right;font-size:11px;line-height:1.1;color:var(--muted);font-variant-numeric:tabular-nums}.expiring .timer-text{color:var(--warning)}
.add-button{width:100%;display:flex;justify-content:center;align-items:center;gap:8px;min-height:49px;margin-top:16px;font-size:13px;font-weight:600;letter-spacing:.1px}.button-primary{background:var(--primary);color:var(--primary-text);border:1px solid transparent;border-radius:11px;padding:11px 18px;transition:filter .15s,transform .1s}.button-primary:hover:not(:disabled){filter:brightness(1.16)}.button-primary:active:not(:disabled){transform:scale(.99)}.button-secondary{background:var(--surface);border:1px solid var(--line);color:var(--ink);border-radius:10px;padding:10px 16px;font-size:13px;font-weight:550;min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button-secondary:hover{background:var(--surface-soft)}.button-danger{background:var(--danger);color:var(--surface);border-radius:10px;padding:10px 16px;font-size:13px;min-height:43px}:root[data-theme=dark] .button-danger{color:#291519}.device-note{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:11px;margin-top:15px}.device-note .icon{width:13px;height:13px}.backup-note{display:flex;align-items:center;gap:11px;margin-top:23px;padding:13px 16px;background:var(--accent-soft);border-radius:10px;font-size:12px;color:var(--muted)}.backup-note>.icon{color:var(--accent);width:18px;height:18px}.backup-note p{flex:1}.backup-note button{padding:4px 2px;color:var(--accent);font-size:12px;white-space:nowrap}.loading-state{font-size:13px;text-align:center;color:var(--muted);padding:12px}.notice{padding:13px 15px;border-radius:10px;font-size:13px;border:1px solid var(--line);line-height:1.6}.notice-error{background:var(--danger-soft);color:var(--danger);border-color:transparent;margin-bottom:14px}.update-notice{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:30;background:var(--surface);box-shadow:var(--modal-shadow);border:1px solid var(--line);border-radius:12px;padding:12px 18px;display:flex;align-items:center;gap:20px;font-size:13px;max-width:calc(100% - 30px)}.update-notice button{color:var(--accent);background:none;font-weight:600;white-space:nowrap}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:36px 0 35px;border-bottom:1px solid var(--line);margin-top:16px}.benefit{display:flex;align-items:center;gap:10px}.benefit>.icon{width:19px;height:19px;color:var(--muted)}.benefit strong{display:block;font-size:11px;font-weight:620}.benefit span{display:block;font-size:10px;color:var(--muted);margin-top:2px}.learn-section{width:calc(100% - 48px);max-width:810px;margin:48px auto 65px}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:25px}.section-heading h2{font-size:24px;letter-spacing:-.75px;font-weight:640}.section-heading p{color:var(--muted);font-size:13px;margin-top:7px}.small-link{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--accent);white-space:nowrap;font-weight:550}.small-link .icon{width:14px;height:14px}.explain-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px}.explain-grid h3{font-size:14px;font-weight:620;margin-bottom:7px}.explain-grid p{font-size:12px;color:var(--muted);line-height:1.85}.how-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:26px 0 28px;border-bottom:1px solid var(--line)}.step-number{display:inline-grid;place-items:center;border-radius:7px;width:24px;height:24px;font-size:10px;font-weight:650;background:var(--surface-soft);color:var(--muted);margin-bottom:10px}.step h3{font-size:12px;font-weight:620}.step p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:5px}.home-faq{margin-top:18px}.faq-item{border-bottom:1px solid var(--line)}.faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;font-size:13px;font-weight:560;cursor:pointer}.faq-item summary .icon{width:15px;height:15px;color:var(--muted);transition:transform .15s}.faq-item[open] summary .icon{transform:rotate(45deg)}.faq-answer{padding:0 26px 19px 0;font-size:12px;line-height:1.9;color:var(--muted)}.faq-answer a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.site-footer{background:var(--surface);border-top:1px solid var(--line)}.footer-inner{max-width:1120px;margin:auto;padding:30px 28px 24px}.footer-top{display:flex;align-items:center;justify-content:space-between;gap:25px}.footer-brand .brand{font-size:21px}.footer-brand .brand-icon{height:30px;width:30px;border-radius:9px}.footer-brand .brand-icon .icon{width:18px;height:18px}.footer-brand p{font-size:11px;color:var(--muted);margin-top:8px}.footer-links{display:flex;gap:23px;font-size:12px;color:var(--muted)}.footer-bottom{display:flex;justify-content:space-between;gap:20px;margin-top:25px;padding-top:16px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
dialog{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:20px;padding:28px;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;box-shadow:var(--modal-shadow)}dialog::backdrop{background:#0d202b66;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:9px}.dialog-header h2{font-size:22px;letter-spacing:-.6px;line-height:1.25;font-weight:640}.dialog-header .icon-button{margin-right:-9px;margin-top:-7px}.dialog-description{color:var(--muted);font-size:13px;line-height:1.75;margin-bottom:22px}.field{margin-bottom:18px}.field>label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.field input,.field select{background:var(--surface);border:1px solid var(--line);border-radius:9px;width:100%;height:45px;padding:11px 12px;font-size:14px;min-width:0;color:var(--ink)}.field input::placeholder{color:var(--subtle)}.field input[type=file]{height:auto;font-size:12px;line-height:1.8;padding:10px}.field input[type=file]::file-selector-button{background:var(--surface-soft);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:4px 8px;margin-right:8px;cursor:pointer}.field small{display:block;font-size:11px;color:var(--muted);line-height:1.65;margin-top:7px}.input-with-button{position:relative}.input-with-button input{padding-right:50px;font-family:monospace;letter-spacing:.2px}.input-with-button button{position:absolute;top:3px;right:3px}.advanced-grid{display:grid;grid-template-columns:1.3fr .8fr 1fr;gap:10px;margin-top:14px}.advanced-grid .field{margin-bottom:2px}.advanced-grid .field input,.advanced-grid .field select{font-size:12px;padding:9px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.form-actions .button-primary{font-size:13px;font-weight:580;min-height:43px}.field+.notice{margin-top:0}.toast{position:fixed;bottom:27px;left:50%;transform:translate(-50%,12px);background:var(--primary);color:var(--primary-text);font-size:13px;padding:11px 18px;border-radius:10px;max-width:min(520px,calc(100% - 32px));box-shadow:var(--modal-shadow);opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;z-index:100;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast-error{background:var(--danger);color:var(--surface)}.clipboard-fallback{position:fixed;left:-9999px;top:0}.article-page{max-width:810px;width:calc(100% - 48px);margin:52px auto 70px}.breadcrumb{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-bottom:24px}.breadcrumb .icon{width:14px;height:14px}.article-page h1{font-size:38px}.article-lead{font-size:16px;color:var(--muted);line-height:1.85;max-width:670px;margin-top:17px;margin-bottom:35px}.article-body{max-width:710px}.article-body h2{font-size:21px;letter-spacing:-.4px;margin:32px 0 10px;font-weight:630}.article-body h3{font-size:16px;margin:23px 0 8px}.article-body p,.article-body li{font-size:14px;line-height:1.9;color:var(--muted)}.article-body p+p{margin-top:13px}.article-body ul,.article-body ol{padding-left:21px;margin:13px 0 20px}.article-body li{padding-left:4px;margin-bottom:7px}.article-body a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.article-body code{background:var(--surface-soft);padding:2px 5px;border-radius:4px;overflow-wrap:anywhere;font-size:.92em}.article-body strong{font-weight:620;color:var(--ink)}.article-body .notice{margin-top:22px}.article-body .faq-item summary{font-size:15px;padding:21px 0}.article-body .faq-answer{font-size:14px}.article-cta{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;margin-top:38px}.article-cta h2{font-size:17px;letter-spacing:-.3px}.article-cta p{color:var(--muted);font-size:12px;margin-top:5px}.article-cta a{font-size:12px;font-weight:600;white-space:nowrap}.not-found{padding:80px 0;min-height:60vh}.not-found h1{margin-bottom:15px}.not-found a{display:inline-block;margin-top:25px}
@media(min-width:1500px){.workspace{margin-top:65px}}@media(max-width:760px){.header-nav{display:none}.header-controls{border-left:0;padding-left:0}.site-header{height:73px}.header-inner{padding:0 24px}.workspace{margin-top:34px}.workspace-heading{margin-bottom:24px}h1{font-size:32px}.private-badge{display:none}.benefits{gap:15px}.benefit{gap:8px}.benefit strong{font-size:10px}.benefit span{font-size:9px}.learn-section{margin-top:37px}.footer-links{gap:16px;flex-wrap:wrap;justify-content:flex-end}.footer-brand p{max-width:220px}.footer-top{align-items:flex-start}.article-page h1{font-size:32px}.article-page{margin-top:35px}}
@media(max-width:480px){.site-header{height:67px}.header-inner{padding:0 20px}.brand{font-size:23px;gap:9px}.brand-icon{width:32px;height:32px;border-radius:10px}.header-right{gap:10px}.workspace,.learn-section,.article-page{width:calc(100% - 36px)}.workspace{margin-top:29px}.workspace-heading{margin-bottom:21px}h1{font-size:29px;letter-spacing:-1px}.workspace-subtitle{font-size:12px;margin-top:8px}.workspace-toolbar{gap:6px;margin-bottom:11px}.profile-count{font-size:11px}.toolbar-actions{gap:0}.toolbar-actions .text-button{font-size:11px;padding:7px;gap:5px}.toolbar-separator{margin:0 2px}.auth-card{padding:15px 17px 16px;border-radius:14px}.totp-code{font-size:32px;letter-spacing:1px}.copy-label{display:none}.copy-feedback{min-width:31px;justify-content:center}.copy-feedback .icon{width:20px;height:20px}.code-row{padding-top:15px;padding-bottom:17px;gap:8px}.account-name{font-size:14px}.account-avatar{width:30px;height:30px}.add-button{font-size:12px;min-height:48px}.device-note{font-size:10px}.backup-note{align-items:flex-start;flex-wrap:wrap;font-size:11px;gap:8px;padding:12px}.backup-note button{font-size:11px;margin-left:26px;min-height:28px}.backup-note p{flex-basis:calc(100% - 30px)}.benefits{padding:27px 0 25px;gap:15px}.benefit{display:block;text-align:center}.benefit>.icon{margin-bottom:5px;width:18px;height:18px}.benefit strong{font-size:10px}.benefit span{font-size:9px}.section-heading{display:block;margin-bottom:24px}.section-heading h2{font-size:23px}.section-heading p{font-size:12px}.section-heading .small-link{margin-top:12px;font-size:11px}.explain-grid{grid-template-columns:1fr;gap:22px}.explain-grid p{font-size:12px}.how-steps{grid-template-columns:1fr;gap:19px;padding-top:25px}.step{display:grid;grid-template-columns:24px 1fr;column-gap:12px}.step-number{grid-row:span 2;margin-top:2px}.step p{margin-top:4px}.faq-item summary{font-size:12px;line-height:1.6}.learn-section{margin-bottom:40px}.footer-inner{padding:25px 20px 22px}.footer-top{flex-direction:column;gap:24px}.footer-brand p{max-width:none;font-size:11px}.footer-links{gap:15px;justify-content:flex-start;font-size:11px}.footer-bottom{font-size:9px;gap:10px;line-height:1.7;align-items:flex-end}.footer-bottom span:last-child{text-align:right}dialog{padding:23px 20px;width:calc(100% - 24px);border-radius:17px}.dialog-header h2{font-size:20px}.dialog-description{font-size:12px}.field input,.field select{font-size:16px}.advanced-grid{grid-template-columns:1.2fr .8fr 1fr;gap:7px}.advanced-grid label{font-size:10px}.advanced-grid .field input,.advanced-grid .field select{font-size:16px;padding:8px 5px}.form-actions{gap:8px;flex-wrap:wrap}.form-actions .button-primary,.form-actions .button-secondary,.form-actions .button-danger{font-size:12px;flex:1}.article-page h1{font-size:30px;overflow-wrap:anywhere}.article-lead{font-size:14px}.article-body p,.article-body li,.article-body .faq-answer{font-size:13px}.article-body .faq-item summary{font-size:14px}.article-cta{display:block;padding:20px}.article-cta a{display:inline-block;margin-top:18px}.article-cta h2{font-size:17px}.update-notice{font-size:11px;padding:11px 13px;gap:12px;width:calc(100% - 28px)}}
@media(max-width:350px){.workspace,.learn-section,.article-page{width:calc(100% - 28px)}.toolbar-actions .text-button{padding:7px 5px;gap:4px;font-size:10px}.toolbar-actions .icon{width:13px;height:13px}.totp-code{font-size:28px;letter-spacing:.5px}.auth-card{padding-left:14px;padding-right:14px}.footer-links{gap:13px}.header-inner{padding:0 16px}.form-actions{flex-direction:column}.form-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{.header-controls,.toolbar-actions,.card-menu,.add-button,.learn-section,.site-footer,.copy-feedback,.backup-note,dialog,.toast{display:none!important}.workspace{margin:25px auto}.totp-code{visibility:hidden}.totp-code::after{content:'••• •••';visibility:visible}}
/* Shared card controls and profile list. */
.qr-button{padding:0 0 16px;color:var(--accent);font-size:11px;min-height:32px}
.autosave-status{font-size:12px;color:var(--accent);line-height:1.6;flex:1}
.saved-section .add-button{width:100%}.saved-section{margin-bottom:24px}.saved-section h2{font-size:16px;letter-spacing:-.3px;margin-bottom:4px}.saved-section .profile-count{font-size:11px}
.language-picker summary{display:flex;align-items:center;gap:4px;cursor:pointer}.language-picker summary .icon{width:12px;height:12px}.language-picker .menu-items a{display:block;padding:10px 14px;font-size:13px;border-radius:7px;white-space:nowrap}.language-picker .menu-items a:hover,.language-picker .menu-items a[aria-current]{background:var(--surface-soft);color:var(--accent)}
@media(max-width:480px){.saved-section{margin-bottom:20px}.saved-section h2{font-size:14px}.saved-section .toolbar-actions .text-button{padding:7px 5px}}
@media(max-width:350px){.saved-section .workspace-toolbar{flex-wrap:wrap;gap:10px}}

/* Shared cards. The main interface is the compact list. */
.contact-form{max-width:640px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}.contact-form .field{margin-bottom:17px}.contact-form .field textarea{width:100%;min-height:150px;resize:vertical;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);padding:11px 12px;font-size:16px;line-height:1.55}.contact-form .field textarea:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.contact-note{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:19px}.contact-submit{min-height:44px}.contact-honey{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}.contact-page .notice{max-width:640px;margin:0 0 18px}.contact-page .notice-info{background:var(--accent-soft);color:var(--accent);border-color:transparent}
@media(max-width:480px){.contact-form{padding:20px 18px}.contact-submit{width:100%}}
.workspace-heading{flex-wrap:wrap;align-items:center;gap:16px}.workspace-heading>div{min-width:0}.private-badge{max-width:100%;white-space:normal;font-size:11px}
.saved-section .workspace-toolbar{position:sticky;top:0;z-index:20;background:var(--page);padding:12px 0;margin-top:-12px;gap:14px}
.toolbar-heading{min-width:0}.saved-section .toolbar-heading h2{font-size:15px}.toolbar-actions{flex-shrink:0}
.toolbar-add{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:600;min-height:42px;margin-left:8px;padding:10px 14px;white-space:nowrap}.toolbar-add .icon{width:16px;height:16px}
.profile-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}.profile-list.single-profile{grid-template-columns:minmax(0,460px);justify-content:center}
.profile-editor{padding:18px;scroll-margin-top:110px;transition:border-color .16s,box-shadow .16s}.profile-editor.is-collapsible{cursor:pointer}.profile-editor.is-collapsible:hover{border-color:var(--subtle);box-shadow:0 4px 16px #18323d0b}.profile-editor.is-expanded{border-color:var(--accent)}
.profile-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}.profile-editor .card-top{grid-column:1;grid-row:1;min-width:0;margin:0}.profile-editor .card-controls{grid-column:2;grid-row:1;display:flex;align-items:center;gap:2px;min-width:0}.profile-editor .code-panel{grid-column:1/-1;grid-row:2;min-width:0}
.profile-toggle{width:100%;display:flex;align-items:center;gap:10px;padding:0;min-height:42px;text-align:left;background:none;border-radius:8px;color:var(--ink)}.profile-toggle:disabled{opacity:1;cursor:default}.profile-toggle .account-names{flex:1;min-width:0}.profile-toggle .account-name{display:block;font-size:14px}.profile-editor .account-avatar{width:30px;height:30px}.profile-editor .account-meta{display:block;overflow-wrap:anywhere}.expand-indicator{color:var(--muted);line-height:1;flex:none}.expand-indicator .icon{width:14px;height:14px;transition:transform .16s}.is-expanded .expand-indicator .icon{transform:rotate(180deg)}.profile-toggle:disabled .expand-indicator{visibility:hidden}.profile-toggle:hover:not(:disabled) .expand-indicator{color:var(--accent)}
.profile-editor .card-menu .icon-button,.quick-delete{width:40px;min-width:40px;height:40px}.quick-delete{color:var(--danger)}.quick-delete:hover{color:var(--danger);background:var(--danger-soft)}
.profile-editor .card-fields{padding-top:18px;margin-top:12px;border-top:1px solid var(--line);cursor:auto}.profile-editor .field{margin-bottom:15px}.profile-editor .field input,.profile-editor .field select{font-size:14px}.profile-editor .field>label{font-size:12px}.profile-editor .secret-field{margin-bottom:4px}
.qr-control{margin-bottom:10px}.profile-editor .qr-button{padding:4px 0;min-height:36px;font-size:11px;color:var(--accent)}.field-error{font-size:12px;color:var(--danger);line-height:1.6;margin-top:7px;overflow-wrap:anywhere}.qr-control .field-error{margin-top:2px}.field-hint{font-size:11px;color:var(--muted);line-height:1.65;margin:0 0 13px}
.code-settings{border:1px solid var(--line);border-radius:11px;padding:12px;margin:0 0 18px;min-width:0}.code-settings legend{font-size:12px;font-weight:600;padding:0 5px}.code-settings .field-hint{margin:0}.code-settings .advanced-grid{gap:8px}.code-settings .field{margin:0}.code-settings .field>label{font-size:10px}
.code-panel{background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;padding:10px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center}.profile-editor .code-row{width:auto;display:inline-flex;gap:10px;padding:2px 0;text-align:center;justify-content:center;flex-wrap:nowrap;min-height:42px;max-width:100%}.profile-editor .totp-code{font-size:33px;color:var(--accent);font-weight:600;letter-spacing:.6px}.profile-editor .copy-label{display:none}.profile-editor .copy-feedback{min-width:24px;justify-content:center}.profile-editor .copy-feedback .icon{width:20px;height:20px}.profile-editor .code-row:disabled{opacity:1;cursor:default}.profile-editor .code-row:disabled .totp-code{font-size:23px;color:var(--subtle);font-weight:400}.profile-editor .code-row:disabled .copy-feedback{visibility:hidden}.code-prompt{color:var(--muted);font-size:11px;text-align:center}
.profile-editor .timer-copy{display:flex;width:100%;gap:10px;min-height:32px;padding:10px 0 4px;margin-top:4px;border:0;background:none;border-radius:6px;cursor:copy}.profile-editor .timer-copy:disabled{cursor:default;opacity:1}.profile-editor .timer-row progress{flex:1;min-width:0;width:100%;background:var(--line);pointer-events:none}.profile-editor progress::-webkit-progress-bar{background:var(--line)}.timer-copy:hover:not(:disabled) .timer-text{color:var(--accent)}.profile-editor .code-row{cursor:copy}.profile-editor .timer-text{flex:none;min-width:32px}
.card-bottom{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:10px;cursor:auto}.card-bottom .autosave-status{font-size:10px;color:var(--muted)}.card-bottom .done-button{color:var(--accent);min-height:40px;font-size:12px;margin-left:auto}.profile-editor:not(.is-expanded) .card-bottom{display:none}.card-bottom:has(>[hidden]:first-child):has(>[hidden]:last-child){display:none}.autosave-note{font-size:11px;color:var(--muted);text-align:center;line-height:1.7;margin-top:15px}.saved-section .add-button{border-style:dashed;min-height:48px}
body.compact-layout .profile-list{grid-template-columns:minmax(0,1fr)}
body.compact-layout .profile-editor{padding:14px 20px}
body.compact-layout .profile-summary{grid-template-columns:minmax(0,1fr) auto auto;gap:16px}
body.compact-layout .profile-editor .code-panel{grid-column:2;grid-row:1;background:none;border:0;padding:0;align-items:flex-end}
body.compact-layout .profile-editor .card-controls{grid-column:3;grid-row:1}
body.compact-layout .profile-editor .card-fields{max-width:610px;margin-left:auto;margin-right:auto}
@media(max-width:760px){.private-badge{display:flex}.workspace-heading{align-items:flex-start}.workspace-heading .private-badge{font-size:10px}.saved-section .workspace-toolbar{flex-wrap:wrap;gap:5px}.toolbar-actions{flex-wrap:wrap;row-gap:4px}.toolbar-add{margin-left:4px}.profile-editor .totp-code{font-size:29px}.profile-editor .field input{font-size:16px}body.compact-layout .profile-summary{gap:10px}}
@media(max-width:620px){.profile-list,.profile-list.single-profile{grid-template-columns:minmax(0,1fr)}.profile-editor{padding:18px}.toolbar-heading{flex:1 0 100%;display:flex;align-items:baseline;justify-content:space-between;gap:12px}.saved-section .toolbar-heading h2{margin:0;font-size:14px}.toolbar-actions{width:100%}.toolbar-add{margin-left:auto;min-height:42px;font-size:11px;padding:9px 12px}.saved-section .workspace-toolbar{padding:10px 0;gap:7px}.saved-section .toolbar-actions .text-button{padding:8px 7px;min-height:42px;font-size:11px}.profile-editor .advanced-grid .field input,.profile-editor .advanced-grid .field select{font-size:16px}.profile-editor .field input{height:47px}.profile-editor{scroll-margin-top:115px}.profile-editor .card-menu .icon-button,.quick-delete{width:42px;min-width:42px;height:42px}.profile-editor .totp-code{font-size:30px}.profile-editor .code-row[data-digits="8"] .totp-code{font-size:26px}.profile-toggle{min-height:40px}
body.compact-layout .profile-editor{padding:13px 17px}body.compact-layout .profile-summary{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px}body.compact-layout .card-top{grid-column:1/-1;grid-row:1}body.compact-layout .profile-editor .code-panel{grid-column:1;grid-row:2;align-items:flex-start}body.compact-layout .profile-editor .card-controls{grid-column:2;grid-row:2}body.compact-layout .profile-editor .code-row{gap:8px}}
@media(max-width:620px){body.compact-layout .card-top{grid-column:1;grid-row:1}body.compact-layout .profile-editor .card-controls{grid-column:2;grid-row:1}body.compact-layout .profile-editor .code-panel{grid-column:1/-1;grid-row:2;align-items:center}}
@media(max-width:350px){.toolbar-add{font-size:10px;padding:8px}.toolbar-add .icon{width:14px;height:14px}.profile-editor .totp-code{font-size:26px}.profile-editor .code-row[data-digits="8"] .totp-code{font-size:22px;letter-spacing:.2px}.profile-editor,body.compact-layout .profile-editor{padding:13px 14px}.profile-editor .card-controls{gap:0}.profile-editor .card-menu .icon-button,.quick-delete{width:40px;min-width:40px;height:40px}.profile-editor .code-row:disabled .totp-code{font-size:20px}}
@media print{.profile-editor .card-fields,.profile-editor .card-controls,.profile-editor .card-bottom,.expand-indicator,.autosave-note{display:none!important}}
