/* KagNode Authenticator — shared colors, type, controls and responsive shell. */
:root{color-scheme:dark;--bg:#101010;--sidebar:#151515;--surface:#191919;--raised:#222;--hover:#292929;--text:#f4f4f5;--muted:#afafb3;--subtle:#929298;--border:#383838;--line:#2b2b2b;--accent:#8ab4ff;--accent-soft:#3b82f614;--primary:#2563eb;--primary-hover:#1d4ed8;--good:#8fd0af;--danger:#f3a4a4;--warning:#e0c18c;--shadow:0 18px 60px #0005;--sidebar-width:284px;--ease:cubic-bezier(.2,.8,.2,1);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;font-size:14px}
html[data-theme=light]{color-scheme:light;--bg:#fcfcfd;--sidebar:#f5f5f5;--surface:#fff;--raised:#f1f1f2;--hover:#eaeaec;--text:#19191d;--muted:#636369;--subtle:#73737a;--border:#dddde0;--line:#e7e7e9;--accent:#2563eb;--accent-soft:#2563eb0b;--good:#16754c;--danger:#b52e40;--warning:#866321;--shadow:0 18px 60px #18243a18}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);line-height:1.6}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.55;cursor:wait}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:clamp(30px,3vw,42px);font-weight:600;line-height:1.15;letter-spacing:-1.6px}h2{font-size:19px;font-weight:600;letter-spacing:-.5px;line-height:1.4}h3{font-size:16px;font-weight:600}p{color:var(--muted)}svg{width:19px;height:19px;vertical-align:middle;flex-shrink:0;stroke-width:1.7}img{max-width:100%}button,a,input,textarea,summary{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent)}.sr-only,.custom-select>select{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.skip-link{position:fixed;left:18px;top:-80px;z-index:3000;background:var(--surface);border:1px solid var(--accent);padding:12px 20px;border-radius:12px}.skip-link:focus{top:12px}
/* Inputs and actions */
.button,.icon-button,.text-button,.select-trigger,.select-option{transition:background .16s,border-color .16s,color .16s,transform .16s}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:13px;font-size:13px;font-weight:550;line-height:1.5;text-align:center}.button.primary{background:var(--primary);color:white;border-color:var(--primary)}.button.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.button.secondary{background:var(--raised);border-color:var(--border)}.button.secondary:hover{background:var(--hover)}.button.danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 35%,var(--line));background:color-mix(in srgb,var(--danger) 8%,var(--surface))}.button.small{font-size:12px;padding:9px 13px}.button:active,.workspace-card:active{transform:translateY(1px)}.wide{width:100%}.icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;border:0;border-radius:12px;background:transparent;color:var(--muted);padding:10px}.icon-button:hover{background:var(--hover);color:var(--text)}.text-button{display:inline-flex;align-items:center;gap:7px;min-height:40px;border:0;background:transparent;color:var(--accent);padding:6px 0;font-size:12px;font-weight:550}.text-button:hover{color:var(--text)}.text-button svg{width:15px;height:15px}input:not([type=checkbox]):not([type=range]),textarea,.select-trigger{width:100%;min-height:46px;border:1px solid var(--border);border-radius:12px;padding:11px 13px;color:var(--text);background:var(--bg);font-size:16px;line-height:1.5;transition:border-color .16s,box-shadow .16s}input::placeholder,textarea::placeholder{color:var(--subtle)}input:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}textarea{resize:vertical;min-height:88px}label{display:block;font-size:13px;font-weight:550;margin-bottom:8px}label>span:not([data-icon]){font-size:12px;color:var(--muted);font-weight:400;margin-left:4px}input[type=checkbox]{appearance:none;width:20px;height:20px;flex:0 0 20px;margin:0;border:1px solid var(--border);border-radius:6px;background:var(--bg);cursor:pointer;display:inline-grid;place-content:center}input[type=checkbox]:checked{background:var(--primary);border-color:var(--primary)}input[type=checkbox]:checked::after{content:"";width:8px;height:4px;border-left:2px solid white;border-bottom:2px solid white;transform:translateY(-1px) rotate(-45deg)}input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.input-with-action{position:relative}.input-with-action input{padding-right:52px!important}.input-with-action>.icon-button{position:absolute;right:3px;top:2px}.field{margin-bottom:21px}.field-hint,.small-note{font-size:12px;color:var(--muted);line-height:1.7}.field-hint{margin-top:8px}.form-error{padding:12px 14px;margin:15px 0;border-radius:12px;color:var(--danger);border:1px solid color-mix(in srgb,var(--danger) 35%,var(--line));background:color-mix(in srgb,var(--danger) 6%,var(--surface));font-size:13px}.custom-select{position:relative;min-width:140px}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:13px;text-align:left;cursor:pointer}.select-trigger svg{width:15px}.select-options{position:absolute;top:calc(100% + 7px);left:0;right:0;min-width:160px;max-height:min(260px,45dvh);overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:6px;box-shadow:var(--shadow);z-index:80}.custom-select.opens-up .select-options{top:auto;bottom:calc(100% + 7px)}.select-option{display:block;width:100%;padding:11px 12px;min-height:42px;border:0;border-radius:9px;background:transparent;text-align:left;font-size:13px}.select-option[aria-selected=true]{background:var(--accent-soft);color:var(--accent)}.select-option:hover,.select-option:focus{background:var(--hover);outline:0}.pill,.count-pill{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--border);border-radius:99px;padding:4px 9px;line-height:1.4;font-size:11px;font-weight:500;white-space:nowrap;color:var(--muted)}.pill svg{width:13px;height:13px}.pill.blue,.pill.orange{color:var(--accent);background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 25%,var(--line))}.pill.green{color:var(--good)}.pill.weak{color:var(--danger)}.pill.fair{color:var(--warning)}.status-dot,.attention-dot{display:inline-block;width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--good)}.attention-dot{background:var(--warning);margin-left:auto}.eyebrow,.heading-kicker{display:block;color:var(--subtle);font-size:11px;font-weight:550;letter-spacing:.13em;margin-bottom:16px}.brand{display:inline-flex;align-items:center;gap:11px}.brand-mark{width:36px;height:36px;flex:0 0 36px}.brand-copy{display:grid;gap:2px}.brand-copy strong{font-size:24px;line-height:1.2;font-weight:700;letter-spacing:-1.2px}.brand-copy small{font-size:12px;color:var(--muted);font-weight:400;letter-spacing:.015em}.brand-period{color:var(--accent)}.website-link{display:flex;align-items:center;gap:9px;min-height:44px;border:1px solid var(--border);border-radius:13px;padding:10px 12px;font-size:12px;color:var(--muted)}.website-link>span:last-child{margin-left:auto}.website-link:hover{background:var(--hover);color:var(--text)}
/* Full-screen loading stays anchored to the viewport. */
.loading{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;background:var(--bg);color:var(--muted);font-size:15px}.loading-logo{width:70px;height:70px}.loading-strip{position:absolute;inset:0 0 auto;height:3px;background:var(--accent-soft);overflow:hidden}.loading-strip::after{content:"";position:absolute;inset:0;width:45%;background:var(--primary);animation:loading-strip 1.3s ease-in-out infinite}.loading-dots{display:flex;gap:7px}.loading-dots i{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:loading-dot 1.2s infinite}.loading-dots i:nth-child(2){animation-delay:.15s}.loading-dots i:nth-child(3){animation-delay:.3s}@keyframes loading-strip{from{transform:translateX(-100%)}to{transform:translateX(330%)}}@keyframes loading-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
/* Unlock/setup */
.auth-screen{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;max-width:1320px;margin:auto;padding:26px;min-height:100svh}.auth-main{display:flex;flex-direction:column;padding:22px 38px;min-width:0}.auth-brand-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.auth-content{width:100%;max-width:390px;margin:auto;padding:60px 0 44px}.auth-lock{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid var(--line);border-radius:15px;background:var(--accent-soft);color:var(--accent);margin-bottom:25px}.auth-lock svg{width:22px;height:22px}.auth-content h1{font-size:clamp(32px,3.5vw,45px);line-height:1.13;margin-bottom:17px}.auth-content>p{font-size:14px;line-height:1.85}.auth-content form{margin-top:31px}.auth-content input{margin-bottom:17px}.auth-content .input-with-action input{margin-bottom:17px}.auth-submit{width:100%;margin:7px 0 16px;justify-content:space-between;min-height:49px}.auth-content .small-note{font-size:12px}.auth-divider{display:flex;align-items:center;gap:13px;margin:28px 0 16px;font-size:10px;letter-spacing:.1em;color:var(--subtle)}.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:var(--line)}.auth-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--subtle);font-size:11px}.auth-footer>span:last-child{margin-left:auto}.auth-footer svg{width:15px}.preview-note{display:flex;align-items:center;gap:8px;margin-top:19px!important;font-size:11px!important;color:var(--warning)}.auth-art{display:flex;flex-direction:column;justify-content:center;gap:20px;border:1px solid var(--line);border-radius:29px;padding:55px;background:var(--surface);min-width:0}.auth-art>.eyebrow{margin:0}.auth-art>h2{font-size:clamp(30px,3vw,42px);line-height:1.2;letter-spacing:-1.4px}.auth-art>p{max-width:36ch;font-size:14px;line-height:1.85}.auth-example{padding:26px;border-radius:21px;border:1px solid var(--border);background:var(--bg);margin:16px 0}.example-heading{display:flex;align-items:center;gap:12px}.example-heading>div{display:grid;gap:3px;min-width:0}.example-heading strong{font-size:13px}.example-heading small{font-size:11px;color:var(--muted)}.example-heading .pill{margin-left:auto}.example-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--accent-soft);color:var(--accent)}.example-code{font:500 clamp(25px,2.5vw,35px)/1.4 ui-monospace,SFMono-Regular,monospace;letter-spacing:3px;margin:28px 0 21px;display:flex;gap:12px;align-items:center}.example-code>span:first-child{color:var(--accent)}.example-countdown{margin-left:auto;font:11px/1 system-ui;letter-spacing:0;display:grid;place-items:center;width:37px;height:37px;border:2px solid var(--accent);border-radius:50%;color:var(--accent)}.example-bottom{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:16px}.example-bottom svg{width:14px}.auth-facts{display:grid;grid-template-columns:1fr 1fr;gap:23px}.auth-facts>div>span{display:block;color:var(--accent);margin-bottom:11px}.auth-facts strong{font-size:13px;font-weight:550}.auth-facts p{font-size:12px;margin-top:5px;line-height:1.8}.auth-art>.website-link{margin-top:24px;align-self:flex-start;border:0;padding:0;gap:20px}
/* Shared KagNode navigation shell */
.topbar{position:fixed;top:0;left:var(--sidebar-width);right:0;min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 38px;border-bottom:1px solid var(--line);background:var(--bg);z-index:20}.topbar-title,.topbar-right{display:flex;align-items:center;gap:15px;min-width:0}.topbar-title{font-size:12px}.topbar-title strong{font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-context{white-space:nowrap;color:var(--muted)}.topbar-slash{color:var(--border)}.avatar{width:40px;height:40px;flex:0 0 40px;background:#163267;border:1px solid #365895;border-radius:50%;color:#c8ddff;display:grid;place-items:center}.avatar svg{width:19px}.sidebar{position:fixed;inset:14px auto 14px 14px;width:calc(var(--sidebar-width) - 28px);display:flex;flex-direction:column;padding:24px 13px 15px;border:1px solid var(--line);border-radius:27px;background:var(--sidebar);z-index:30;overflow-y:auto;scrollbar-width:thin}.sidebar-brand{margin:6px 12px 28px}.sidebar>.website-link{margin:0 2px 19px}.vault-subtitle{display:none}.quick-search{display:flex;align-items:center;gap:9px;min-height:44px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--muted);margin:0 2px 19px;padding:10px 12px;text-align:left;font-size:12px;flex-shrink:0}.quick-search:hover{border-color:var(--border)}.quick-search kbd{margin-left:auto;font:10px/1.3 system-ui;color:var(--subtle);white-space:nowrap}.quick-search svg{width:16px;height:16px}.nav-label{font-size:10px;letter-spacing:.1em;font-weight:550;color:var(--subtle);padding:11px 13px 6px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;margin:3px 0;padding:11px 13px;border:0;border-radius:14px;background:transparent;color:var(--muted);font-size:12px;text-align:left;transition:background .18s,color .18s}.nav-item svg{width:17px;height:17px}.nav-item:hover{background:var(--hover);color:var(--text)}.nav-item.active{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px #3b82f612}.nav-count{margin-left:auto;font-size:10px;background:var(--raised);border-radius:7px;padding:1px 6px;color:var(--subtle)}.sidebar-bottom{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);margin:25px 4px 0;padding:18px 8px 1px;color:var(--muted);margin-top:auto;flex-shrink:0}.sidebar-bottom>div{display:grid;gap:4px}.sidebar-bottom strong{font-size:11px;font-weight:500}.sidebar-bottom small{font-size:10px;color:var(--subtle)}.sidebar-bottom svg{width:16px}.sidebar nav:last-of-type{margin-bottom:24px}.mobile-only,.nav-scrim{display:none}.main{margin-left:var(--sidebar-width);padding:123px 38px 28px;min-height:100svh;outline:0}.main>*{max-width:1190px;margin-left:auto;margin-right:auto}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:30px}.page-heading p{font-size:14px;margin-top:13px}.heading-kicker{margin-bottom:13px}.tiny-line{display:none}.notice{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:14px;background:var(--accent-soft);padding:13px 16px;font-size:12px;color:var(--muted);margin-bottom:22px;flex-wrap:wrap}.notice>span:nth-child(2){flex:1;min-width:140px}.notice>span[data-icon]{flex:0;color:var(--accent)}.notice strong{color:var(--text);font-weight:550}.notice .text-button{min-height:30px}.preview-banner{background:color-mix(in srgb,var(--warning) 5%,var(--surface));font-size:11px}.preview-banner .pill{margin-left:auto}.workspace-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:29px}.workspace-card{display:flex;align-items:center;gap:15px;padding:20px 18px;border:1px solid var(--line);border-radius:20px;background:var(--surface);text-align:left;min-width:0;transition:background .2s,border-color .2s,transform .2s}.workspace-card:hover{border-color:var(--border);background:var(--raised)}.workspace-card>div{min-width:0;flex:1}.workspace-card>span:last-child{color:var(--subtle)}.workspace-card h2{font-size:14px;letter-spacing:-.2px}.workspace-card p{font-size:11px;margin-top:5px;line-height:1.6}.shortcut-icon{display:grid;place-items:center;width:41px;height:41px;flex-shrink:0;background:var(--accent-soft);color:var(--accent);border-radius:13px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:34px;border-block:1px solid var(--line)}.stat-card{padding:22px;border-right:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}.stat-card:last-child{border-right:0}.stat-card>div{display:flex;flex-direction:column;gap:5px}.stat-card>div>span{font-size:12px;color:var(--muted)}.stat-card strong{font-size:28px;font-weight:500;letter-spacing:-.6px;line-height:1.4}.stat-card small{font-size:10px;color:var(--subtle)}.stat-unit{font-size:15px;color:var(--subtle);margin-left:4px}.stat-card>.stat-icon{display:none}.stat-icon{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:14px;background:var(--accent-soft);color:var(--accent)}.stat-icon.green-bg{color:var(--good)}
/* Vault entries */
.vault-section{min-width:0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px}.section-title h2{display:flex;align-items:center;gap:10px}.section-actions{display:flex;align-items:center;gap:16px}.sync-status{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.vault-toolbar{display:flex;align-items:center;gap:14px;justify-content:space-between;margin-bottom:18px}.search-box{position:relative;display:flex;align-items:center;flex:1;min-width:140px;max-width:520px}.search-box>span{position:absolute;left:14px;pointer-events:none;color:var(--subtle)}.search-box input{padding-left:43px!important;padding-right:36px!important;font-size:13px!important}.search-box kbd{position:absolute;right:14px;font:12px system-ui;color:var(--subtle)}.toolbar-actions{display:flex;gap:10px;align-items:center}.toolbar-actions .custom-select{width:175px}.view-toggle{display:flex;align-items:center;padding:3px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}.view-toggle .icon-button{width:36px;height:36px;border-radius:9px}.view-toggle .selected{background:var(--raised);color:var(--accent)}.filter-bar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:22px}.filter-tab{display:flex;align-items:center;gap:8px;min-height:38px;padding:8px 13px;border:1px solid transparent;background:transparent;border-radius:11px;font-size:12px;color:var(--muted)}.filter-tab span{font-size:10px;color:var(--subtle)}.filter-tab.active{background:var(--accent-soft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 18%,var(--line))}.items-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:17px}.item-card{min-width:0;border:1px solid var(--line);border-radius:22px;background:var(--surface);overflow:hidden;transition:border-color .2s}.item-card:hover{border-color:var(--border)}.item-card-heading{display:flex;align-items:center;gap:12px;padding:22px 21px 0}.site-logo{width:41px;height:41px;flex:0 0 41px;display:grid;place-items:center;font-size:17px;font-weight:600;border-radius:13px;overflow:hidden;background:#19305d;color:#c8ddff;border:1px solid #35548b}.site-logo img{width:25px;height:25px;object-fit:contain}.logo-orange{background:#55351d;color:#ffce93;border-color:#775434}.logo-blue{background:#19305d;color:#c8ddff;border-color:#35548b}.logo-purple{background:#392854;color:#dcc8fc;border-color:#624782}.logo-dark{background:#272a31;color:#eee;border-color:#454a56}.logo-green{background:#183d32;color:#b1ecd5;border-color:#365f50}.logo-red{background:#502934;color:#ffc9d4;border-color:#79414f}.item-title{border:0;background:none;text-align:left;display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;padding:0;line-height:1.5}.item-title strong{font-size:14px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.item-title small{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.item-card-heading>.icon-button{width:33px;height:33px;padding:7px}.favorite-active{color:var(--accent)}.favorite-active svg{fill:var(--accent-soft)}.code-area{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:26px 21px 8px}.code-text{border:0;background:transparent;color:var(--text);font:500 31px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1px;padding:0;white-space:nowrap;text-align:left}.code-text:hover{color:var(--accent)}.code-text[data-stale=true]{color:var(--subtle)}.password-area .code-text{font-size:23px;letter-spacing:1px}.code-side{display:flex;align-items:center;gap:2px;flex-shrink:0}.code-side>.icon-button{width:32px;height:34px;padding:7px}.timer{position:relative;width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center}.timer svg{position:absolute;inset:0;width:36px;height:36px;transform:rotate(-90deg);fill:none;stroke-width:1.6}.timer-track{stroke:var(--line)}.timer-progress{stroke:var(--accent);stroke-dasharray:75.4;stroke-dashoffset:0;transition:stroke-dashoffset .8s linear}.timer span{font:10px system-ui;color:var(--muted)}.item-type-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:10px;color:var(--subtle);padding:7px 21px 20px;min-height:47px}.item-type-line>svg{width:13px;height:13px}.item-type-line>.pill{font-size:9px;margin-left:auto;padding:3px 6px}.item-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 21px;border-top:1px solid var(--line);font-size:10px;color:var(--subtle)}.item-card-footer>a{display:flex;gap:6px;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:52%}.item-card-footer>a svg{width:12px;height:12px}.item-card-footer .text-button{font-size:11px;color:var(--muted);flex-shrink:0}.items-footer{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:var(--subtle);margin-top:19px}.items-footer>span{display:flex;gap:7px;align-items:center}.items-footer svg{width:14px;height:14px}.empty-state{text-align:center;padding:55px 24px;border:1px dashed var(--border);border-radius:21px;background:var(--surface)}.empty-state>div:first-child{display:grid;place-items:center;width:52px;height:52px;background:var(--accent-soft);color:var(--accent);border-radius:16px;margin:0 auto 19px}.empty-state p{font-size:13px;line-height:1.9;margin:11px auto 22px;max-width:40ch}.generator-promo{display:flex;align-items:center;gap:15px;padding:19px 23px;border:1px solid var(--line);border-radius:18px;background:var(--surface);text-align:left;width:100%;margin-top:30px;color:var(--muted)}.generator-promo strong{color:var(--text);font-weight:550;display:block;font-size:13px}.generator-promo p{font-size:12px}.generator-promo>span:last-child{margin-left:auto}.list-layout{grid-template-columns:1fr}.list-layout .item-card{display:grid;grid-template-columns:minmax(190px,1.1fr) minmax(220px,1fr);align-items:center}.list-layout .item-card-heading{padding:20px}.list-layout .code-area{padding:15px 20px}.list-layout .item-type-line{padding:0 20px 15px}.list-layout .item-card-footer{border-top:0;padding:0 20px 10px}.skeleton-card{padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--surface);min-height:204px}.skeleton-line{display:block;height:13px;border-radius:8px;background:var(--raised);margin-bottom:15px;animation:skeleton 1.4s ease-in-out infinite}.skeleton-line:first-child{width:60%}.skeleton-line:nth-child(2){width:80%;height:32px;margin-top:28px}.skeleton-line:last-child{width:40%}@keyframes skeleton{50%{opacity:.4}}
/* Generator, security and settings */
.panel{padding:27px;border:1px solid var(--line);border-radius:23px;background:var(--surface);min-width:0}.generator-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start;gap:22px}.panel-heading{display:flex;gap:13px;align-items:center;margin-bottom:25px}.panel-heading p{font-size:12px;margin-top:5px}.generated-output{display:flex;gap:10px;align-items:center;border:1px solid var(--border);background:var(--bg);border-radius:15px;padding:19px;min-height:95px}.generated-output output{flex:1;min-width:0;overflow-wrap:anywhere;font:18px/1.8 ui-monospace,monospace;color:var(--accent)}.generated-output>div{display:flex;flex-direction:column}.strength-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--good);margin:14px 0 28px}.strength-line .small-note{margin-left:auto;font-size:10px}.strength-bars{display:flex;gap:3px}.strength-bars i{width:16px;height:3px;border-radius:3px;background:var(--good)}.range-label{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.range-label label{margin:0}.range-label output{min-width:41px;text-align:center;background:var(--raised);border:1px solid var(--border);border-radius:9px;padding:4px 8px;font-size:13px}.range{appearance:none;width:100%;height:6px;background:var(--border);border-radius:9px;cursor:pointer;margin:10px 0}.range::-webkit-slider-thumb{appearance:none;width:21px;height:21px;background:var(--primary);border:3px solid var(--surface);border-radius:50%;box-shadow:0 0 0 1px var(--primary)}.range::-moz-range-thumb{width:16px;height:16px;background:var(--primary);border:3px solid var(--surface);border-radius:50%;box-shadow:0 0 0 1px var(--primary)}.range-ticks{display:flex;justify-content:space-between;font-size:10px;color:var(--subtle);margin:3px 0 24px}.generator-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-option{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:67px;padding:13px;border:1px solid var(--line);border-radius:12px;margin:0;font-size:12px}.check-option span{margin:0!important;color:var(--text)!important}.check-option small{display:block;color:var(--subtle);font-size:10px;font-weight:400;margin-top:3px}.check-option.full{grid-column:1/-1}.generator-footer{display:flex;align-items:center;gap:7px;color:var(--subtle);font-size:10px;margin:22px 0 18px}.generator-footer svg{width:14px}.generator-aside>.large-outline{display:block;color:var(--accent);margin-bottom:20px}.large-outline svg{width:29px;height:29px}.generator-aside>p{font-size:13px;line-height:1.85;margin:15px 0 24px}.check-fact{display:flex;gap:9px;align-items:center;margin:13px 0;color:var(--muted);font-size:12px}.check-fact svg{width:16px;color:var(--accent)}.aside-note{display:flex;gap:10px;font-size:11px;color:var(--subtle);line-height:1.8;margin-top:26px;padding-top:21px;border-top:1px solid var(--line)}.aside-note>span{flex-shrink:0}.security-summary{display:flex;align-items:center;gap:19px}.security-summary>div:nth-child(2){flex:1}.security-summary p{font-size:13px;margin-top:7px}.security-disclaimer{font-size:12px;color:var(--subtle);margin:20px 0}.security-items{display:grid;gap:12px}.security-row{display:flex;align-items:center;gap:15px;padding:20px;border:1px solid var(--line);border-radius:17px;background:var(--surface)}.security-text{flex:1;min-width:0}.security-text strong{font-size:13px;font-weight:550;overflow-wrap:anywhere}.security-text p{font-size:11px;overflow-wrap:anywhere}.settings-layout{display:grid;gap:22px;max-width:950px}.settings-panel>h2{display:flex;gap:12px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}.settings-panel>h2 svg{color:var(--accent);width:20px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:23px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0;padding-bottom:0}.setting-row strong{font-weight:550;font-size:13px}.setting-row p{font-size:12px;line-height:1.85;margin-top:6px}.setting-row>.button,.setting-row>.custom-select{flex-shrink:0}.about-panel dl{margin:20px 0;display:grid;grid-template-columns:1fr 1fr;gap:20px 30px}.about-panel dl>div{min-width:0}.about-panel dt{font-size:11px;color:var(--subtle);margin-bottom:6px}.about-panel dd{margin:0;font-size:13px}.about-panel .notice{margin-bottom:0}.main-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 0 0;margin-top:35px;border-top:1px solid var(--line);font-size:11px;color:var(--subtle)}.main-footer>a{display:flex;align-items:center;gap:7px;min-height:38px}.main-footer svg{width:13px}.main>section:not([hidden]),#vault-view:not([hidden]){animation:page-enter .2s var(--ease)}@keyframes page-enter{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:none}}
/* Dialogs and feedback */
dialog{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);padding:0;width:min(660px,calc(100% - 30px));max-height:90dvh;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#050810a8;backdrop-filter:blur(4px)}dialog[open]{animation:page-enter .18s var(--ease)}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:17px;padding:25px 27px;border-bottom:1px solid var(--line)}.modal-heading .eyebrow{font-size:10px;margin-bottom:7px}.modal-heading h2{font-size:22px}.modal-body,.utility-form{padding:24px 27px}.modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:18px 27px;border-top:1px solid var(--line);background:var(--surface)}.modal-footer>span{font-size:10px;display:flex;align-items:center;gap:6px;color:var(--subtle);margin-right:auto}.modal-footer>span svg{width:13px}.type-picker{display:flex;gap:7px;padding:5px;border:1px solid var(--line);border-radius:15px;background:var(--bg);margin-bottom:24px}.type-option{display:flex;flex:1;align-items:center;justify-content:center;gap:8px;min-height:43px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:12px}.type-option.selected{background:var(--accent-soft);color:var(--accent)}.type-option svg{width:16px}.url-section{display:flex;align-items:flex-end;gap:13px}.url-section .site-logo{margin-bottom:0;width:46px;height:46px;flex-basis:46px}.url-section .field{flex:1;min-width:0;margin:0}.url-input{display:flex;align-items:center;gap:8px}.url-input input{min-width:0}.url-input>.button{flex-shrink:0}.url-hint{margin-bottom:23px;font-size:11px}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-columns.triple{grid-template-columns:repeat(3,minmax(0,1fr))}.form-columns .custom-select{min-width:0}.field>label{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.field>label .text-button{margin-left:auto;min-height:25px;padding:0;font-size:11px}.favorite-check{display:flex;gap:9px;align-items:center;font-size:12px;color:var(--muted);font-weight:400}.favorite-check svg{width:15px}.advanced{margin:15px 0 22px;padding:13px 15px;border:1px solid var(--line);border-radius:14px}.advanced summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;font-size:12px;color:var(--muted);min-height:28px}.advanced summary::-webkit-details-marker{display:none}.advanced summary::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .18s}.advanced[open] summary::after{transform:rotate(225deg)}.advanced[open]>div{margin-top:18px;animation:page-enter .18s var(--ease)}.advanced .field{margin-bottom:2px}.detail-hero{display:flex;align-items:center;gap:15px;padding:26px;border-bottom:1px solid var(--line)}.detail-hero>div:nth-child(2){min-width:0;flex:1}.detail-hero h2{font-size:21px;overflow-wrap:anywhere}.detail-hero p{font-size:12px;overflow-wrap:anywhere;margin-top:5px}.detail-body{padding:3px 27px 22px}.detail-row{padding:20px 0;border-bottom:1px solid var(--line)}.detail-row label{font-size:11px;color:var(--subtle);font-weight:400;margin-bottom:11px}.detail-row>div{display:flex;align-items:center;gap:9px}.detail-row output{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.detail-row .secret-value{font-family:ui-monospace,monospace}.detail-row .code-side{margin-left:auto}.detail-body>.small-note{margin-top:20px}.detail-modal .modal-footer{justify-content:space-between}.utility-form>p{font-size:13px;line-height:1.9;margin-bottom:22px}.utility-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.utility-modal{max-width:560px}.quick-search-results{display:grid;gap:5px;max-height:350px;overflow:auto;margin-top:15px}.quick-result{display:flex;align-items:center;gap:12px;padding:12px;width:100%;border:0;border-radius:12px;background:transparent;text-align:left}.quick-result:hover,.quick-result:focus{background:var(--raised)}.quick-result>div{flex:1;min-width:0}.quick-result strong{display:block;font-size:13px}.quick-result small{font-size:11px;color:var(--muted)}.toasts{position:fixed;right:22px;bottom:22px;z-index:2500;display:grid;gap:10px;width:min(390px,calc(100% - 36px));pointer-events:none}.toast{display:flex;gap:11px;align-items:center;padding:15px 18px;border:1px solid var(--border);background:var(--surface);border-radius:16px;box-shadow:var(--shadow);font-size:12px;animation:page-enter .18s var(--ease)}.toast>svg{color:var(--good);flex-shrink:0}.toast.error>svg{color:var(--danger)}
/* Tablet and phone layouts keep every control reachable. */
@media(max-width:1200px){.workspace-cards{grid-template-columns:1fr}.workspace-card{padding:16px 20px}.workspace-card p{font-size:12px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card:nth-child(2){border-right:0}.stat-card:nth-child(-n+2){border-bottom:1px solid var(--line)}.generator-layout{grid-template-columns:1fr}.generator-aside{display:none}.auth-art{padding:35px}.auth-main{padding:16px 22px}.topbar{padding-inline:28px}.main{padding-inline:28px}}
@media(max-width:1000px){:root{--sidebar-width:264px}.topbar-context,.topbar-slash{display:none}.topbar-right{gap:8px}.main{padding-inline:24px}.topbar{padding-inline:24px}.page-heading{align-items:flex-start}.page-heading h1{font-size:31px}.auth-screen{gap:16px;padding:20px}.auth-art{padding:30px}.auth-main{padding:15px}.auth-example{padding:20px}.auth-facts{grid-template-columns:1fr}.auth-content{padding-block:50px}.security-summary{flex-wrap:wrap}.security-summary .pill{margin-left:65px}.security-row{flex-wrap:wrap}.security-text{min-width:130px}.security-row>.button{margin-left:auto}.list-layout .item-card{display:block}.list-layout .item-type-line{padding-top:5px}.list-layout .item-card-footer{border-top:1px solid var(--line);padding-top:8px}.setting-row{flex-wrap:wrap;gap:15px}.setting-row .custom-select{min-width:180px}}
@media(max-width:760px){.auth-screen{display:block;padding:20px;min-height:100svh}.auth-main{min-height:calc(100svh - 40px);padding:8px 10px 0}.auth-art{display:none}.auth-content{padding:44px 0;max-width:410px}.auth-content h1{font-size:36px}.auth-footer{padding-bottom:8px}.brand-copy strong{font-size:23px}.topbar{left:0;min-height:74px;padding:13px 17px;gap:12px}.topbar-title{gap:8px;flex:1}.topbar-right{gap:3px}.topbar-right>.avatar{display:grid;width:35px;height:35px;flex-basis:35px}.topbar-right .button.small{font-size:11px;padding:9px 11px;gap:6px}.topbar-right>.theme-toggle{width:37px}.topbar-title strong{font-size:12px}.topbar-right .pill{display:none}.mobile-only{display:inline-flex}.sidebar{width:264px;inset:10px auto 10px 10px;transform:translateX(calc(-100% - 25px));transition:transform .22s var(--ease);z-index:70;box-shadow:var(--shadow);background:var(--sidebar)}.sidebar.open{transform:translateX(0)}.nav-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:60;border:0;background:#0008;backdrop-filter:blur(3px)}.main{margin-left:0;padding:103px 19px 25px}.page-heading{margin-bottom:26px;gap:14px;flex-wrap:wrap}.page-heading h1{font-size:33px}.page-heading p{font-size:13px;line-height:1.8}.heading-kicker{font-size:10px}.page-heading .button{font-size:12px}.workspace-cards{gap:10px;margin-bottom:24px}.workspace-card{padding:16px}.stats{margin-bottom:28px}.stat-card{padding:18px 14px}.stat-card strong{font-size:25px}.stat-card small{font-size:9px}.stat-card>div>span{font-size:11px}.section-title h2{font-size:18px}.section-actions .sync-status{display:none}.vault-toolbar{flex-wrap:wrap;gap:11px}.search-box{max-width:none;width:100%;flex-basis:100%}.toolbar-actions{width:100%;justify-content:space-between}.toolbar-actions .custom-select{width:185px}.filter-bar{gap:3px}.filter-tab{font-size:11px;padding:8px 10px}.items-grid{gap:14px}.item-card{border-radius:20px}.item-card-heading{padding-top:21px}.item-title strong{font-size:14px}.code-text{font-size:33px}.items-footer{font-size:10px;flex-wrap:wrap}.generator-promo{margin-top:22px;padding:17px}.panel{padding:21px;border-radius:20px}.generator-options{gap:9px}.check-option{padding:11px;font-size:11px}.generated-output{padding:15px}.generated-output output{font-size:17px}.security-summary{gap:13px}.security-summary h2{font-size:17px}.security-summary p{font-size:12px}.security-summary .pill{margin-left:0}.settings-panel>h2{font-size:17px}.about-panel dl{grid-template-columns:1fr}.setting-row>div:first-child{flex-basis:100%}.setting-row>.custom-select{width:100%}.main-footer{font-size:10px;margin-top:26px;padding-top:20px}.notice{font-size:11px;padding:12px}.notice .pill{display:none}.modal-heading{padding:21px}.modal-body,.utility-form{padding:20px}.modal-heading h2{font-size:21px}.modal-footer{padding:16px 20px;gap:8px;flex-wrap:wrap}.modal-footer>span{flex-basis:100%;margin-bottom:6px}.modal-footer>.button{flex:1}.type-picker{gap:2px}.type-option{font-size:11px;gap:5px}.form-columns{grid-template-columns:1fr;gap:0}.form-columns.triple{grid-template-columns:1fr;gap:14px}.url-section{align-items:flex-start}.url-section>.site-logo{margin-top:28px}.url-input{flex-wrap:wrap}.url-input input{width:100%}.url-input .button{font-size:11px;min-height:35px;padding:6px 10px}.detail-hero,.detail-body{padding-inline:21px}.detail-row .code-text{font-size:29px}.auth-content .eyebrow{font-size:10px}.toasts{right:18px;bottom:18px}.preview-banner{font-size:10px}.security-row{padding:16px}.security-row>.pill{margin-left:56px}.security-row>.button{margin-left:0}.brand-mark{width:33px;height:33px;flex-basis:33px}}
@media(max-width:370px){.main{padding-inline:14px}.topbar{padding-inline:10px}.topbar-right .button>span:first-child{display:none}.page-heading h1{font-size:29px}.generator-options{grid-template-columns:1fr}.check-option.full{grid-column:auto}.filter-tab{font-size:10px;padding-inline:8px}.code-text{font-size:29px}.item-card-heading,.code-area{padding-inline:18px}.item-type-line,.item-card-footer{padding-inline:18px}.item-card-footer .text-button{font-size:10px}.auth-main{padding-inline:1px}.auth-content h1{font-size:32px}.type-option svg{width:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Recovery codes are revealed individually and remain readable on small screens. */
.type-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.type-option{justify-content:center;min-width:0;white-space:normal}
.backup-code-field textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.7}
.backup-summary{display:flex;align-items:center;gap:10px;text-align:left;width:calc(100% - 42px);margin:18px 21px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--raised);color:var(--muted);font-size:12px}.backup-summary>span{flex:1;min-width:0}.backup-summary svg{width:17px;height:17px;flex-shrink:0}.backup-summary:hover{border-color:var(--accent);color:var(--text)}
.backup-details{padding-block:16px;min-width:0}.backup-details-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}.backup-details-heading h3{font-size:15px}.backup-details-heading>span{color:var(--muted);font-size:12px}.backup-code-list{display:grid;gap:10px;margin-top:16px}.backup-code-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px 10px;border:1px solid var(--line);border-radius:13px;padding:12px;background:var(--raised)}.backup-code-number{font-size:11px;color:var(--muted);padding-top:4px}.backup-code-value{font:14px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;white-space:pre-wrap;align-self:center}.backup-code-actions{grid-column:2;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.backup-code-actions .icon-button{width:38px;height:38px}.backup-code-actions .backup-usage{margin-left:auto;gap:5px}.backup-code-status{grid-column:2;font-size:11px;color:var(--muted)}.backup-code-row.is-used .backup-code-value{color:var(--muted)}
@media(max-width:400px){.backup-code-row{padding:10px;column-gap:5px;grid-template-columns:15px minmax(0,1fr)}.backup-code-actions{gap:3px}.backup-code-actions .backup-usage{font-size:10px;padding-inline:8px}.backup-code-actions .icon-button{width:32px;height:36px}.backup-code-actions .backup-usage svg{display:none}}
