
:root{color-scheme:light;--page:#f7f9f7;--surface:#fff;--field:#fbfcfb;--text:#233b32;--text-strong:#294637;--muted:#718578;--border:#dfe7e0;--border-soft:#edf1ee;--selected:#eaf3ec;--badge:#d8e9dc;--icon-bg:#edf3ee;--accent:#315e47;--accent-hover:#234a35;--on-accent:#fff;--link:#456650;--danger:#a64e4e;--danger-bg:#fbefef}
:root[data-theme="dark"]{color-scheme:dark;--page:#111a16;--surface:#1a2520;--field:#15201b;--text:#dce8e0;--text-strong:#e1eee5;--muted:#a1b3a7;--border:#34463b;--border-soft:#2b3b31;--selected:#293e31;--badge:#38563f;--icon-bg:#2b3c32;--accent:#83bc96;--accent-hover:#a0d2af;--on-accent:#12251a;--link:#abd3b6;--danger:#efaaaa;--danger-bg:#452b2b}
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--page);font-size:14px}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}button,input{font:inherit}button{cursor:pointer;border:0}aside{width:252px;background:var(--surface);border-right:1px solid var(--border);padding:38px 23px;display:flex;flex-direction:column;position:fixed;height:100vh}.brand{display:flex;gap:13px;font-size:30px;color:var(--text-strong);text-decoration:none;font-weight:700;letter-spacing:-1.4px;margin-bottom:64px}.dot{color:#68a784}.label,.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted);font-weight:650}.label{padding:0 12px;margin-bottom:17px}.nav{display:flex;align-items:center;background:transparent;text-align:left;color:var(--muted);padding:15px 12px;border-radius:8px;margin:3px 0}.nav.selected{background:var(--selected);color:var(--text-strong);font-weight:600}.nav span{margin-left:auto;font-size:11px;background:var(--badge);padding:2px 7px;border-radius:4px}.secure{margin-top:auto;padding:22px 13px 32px}.shield{font-size:35px;color:#609475;margin-bottom:12px}.secure b{font-size:12px}.secure p{font-size:12px;color:var(--muted);line-height:1.8}.status{font-size:10px;color:#5b8c6c}main{margin-left:252px;width:calc(100% - 252px)}header{height:91px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 49px;font-size:12px}.muted{color:var(--muted);margin-left:12px}.profile{font-size:11px;color:var(--muted)}section{padding:51px 49px}.title{display:flex;align-items:center;justify-content:space-between;margin:15px 0 35px}h1{font-size:38px;letter-spacing:-1.4px;font-weight:580;margin:0}p{color:var(--muted);line-height:1.6}.title p{margin-bottom:0}.primary{background:var(--accent);color:var(--on-accent);border-radius:7px;padding:14px 20px;font-weight:550;box-shadow:0 3px 6px #234e3a12}.primary:hover{background:var(--accent-hover)}.secondary{padding:11px 15px;border:1px solid var(--border);background:var(--surface);border-radius:6px;color:var(--link)}.toolbar{display:flex;gap:20px;align-items:center;margin-bottom:28px}.toolbar input{max-width:470px;background:var(--surface)}.toolbar span{margin-left:auto;color:var(--muted);font-size:12px}input{width:100%;border:1px solid var(--border);border-radius:7px;padding:13px;color:var(--text);background:var(--field);outline:none}input:focus{border-color:#75a584;box-shadow:0 0 0 3px #6eaa8012}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:24px;min-height:229px;transition:box-shadow .2s}.card:hover{box-shadow:0 8px 25px #315e4710}.cardtop{display:flex;justify-content:space-between;align-items:center}.icon{width:49px;height:49px;border-radius:12px;background:var(--icon-bg);display:grid;place-items:center;font-size:24px;color:var(--link)}.icon img{width:32px;height:32px;object-fit:contain}.star{background:none;color:#a4b1a7;font-size:21px}.card h3{font-size:17px;margin:19px 0 6px;font-weight:600}.card p{font-size:12px;margin:0;overflow:hidden;text-overflow:ellipsis}.cardbottom{display:flex;margin-top:23px;border-top:1px solid var(--border-soft);padding-top:15px;gap:10px}.cardbottom button{font-size:11px;background:none;color:var(--link);padding:0}.cardbottom button:last-child{margin-left:auto;color:#9ba99f}#empty{text-align:center;padding:75px 10px 90px}#empty h2{font-size:22px;font-weight:500}.empty-icon{font-size:38px;color:#91ac97;background:var(--icon-bg);border-radius:20px;padding:20px;width:90px;margin:auto}footer{border-top:1px solid var(--border);margin-top:45px;padding-top:20px;font-size:10px;color:var(--muted);display:flex;justify-content:space-between}dialog{border:1px solid var(--border);border-radius:16px;padding:32px;width:min(470px,94vw);color:var(--text-strong);max-height:92vh}dialog::backdrop{background:#19312480;backdrop-filter:blur(7px)}dialog h2{font-weight:550;margin-top:8px}label{display:block;font-size:12px;margin:17px 0;color:var(--muted)}label input{margin-top:7px}dialog .primary{width:100%;margin-top:8px}.modalhead{display:flex;align-items:center;justify-content:space-between}.close{background:none;font-size:25px;color:#8b9c90}.inline{display:flex;gap:8px}.inline button{margin-top:7px;font-size:11px}.check{display:flex;align-items:center;gap:8px}.check input{width:auto;margin:0}.hint{font-size:11px}.secret{background:var(--selected);padding:15px;overflow-wrap:anywhere;line-height:1.7;font-size:12px}.error{color:var(--danger);font-size:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#284d39;color:var(--on-accent);border-radius:8px;padding:13px 23px;display:none;z-index:10}@media(min-width:1450px){.cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1000px){aside{width:210px}main{margin-left:210px;width:calc(100% - 210px)}section,header{padding-left:28px;padding-right:28px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){aside{width:64px;padding:25px 9px}.brand{font-size:27px}.brand span,.label,.secure,.nav{display:none}#logout{display:block;font-size:0;padding:15px 0}#logout:first-letter{font-size:20px}main{margin-left:64px;width:calc(100% - 64px)}header{padding:20px;height:70px}.profile{display:none}section{padding:32px 20px}.title{align-items:flex-start;gap:20px;flex-direction:column}h1{font-size:32px}.cards{grid-template-columns:1fr}.toolbar span{display:none}footer span{display:none}}

select{width:100%;margin-top:7px;border:1px solid var(--border);border-radius:7px;padding:13px;color:var(--text);background:var(--field);font:inherit;outline:none}select:focus{border-color:#75a584;box-shadow:0 0 0 3px #6eaa8012}

.service-preview{display:flex;align-items:center;gap:14px;margin:20px 0;color:var(--muted);font-size:12px}.service-preview .icon{flex-shrink:0}#serviceMatches{margin:8px 0}

.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.compact-card{display:flex;align-items:flex-start;gap:15px;padding:17px;min-height:0;border-radius:10px}
.compact-card>.icon{flex-shrink:0;width:45px;height:45px;margin-top:3px}
.entry-content{flex:1;min-width:0}.entry-heading{display:flex;align-items:center;gap:8px}.entry-title{background:none;padding:0;color:var(--text-strong);font-size:15px;font-weight:600;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.entry-title:hover{text-decoration:underline}.entry-heading .star{font-size:18px;padding:0 3px}.entry-login{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:none;padding:5px 0 0;color:var(--muted);font-size:12px;text-align:left}.entry-login:hover{color:var(--accent)}.entry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}.entry-actions button{background:none;color:var(--muted);padding:0;font-size:11px}.entry-actions .copy-password{color:var(--accent);font-weight:550}.entry-actions .delete-entry{margin-left:auto;color:#9caaa0}.entry-actions button:hover{text-decoration:underline}#editor .inline{flex-wrap:wrap}#editor .inline input{flex:1 1 100%}@media(min-width:1600px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1000px){.cards{grid-template-columns:1fr}}@media(max-width:700px){.compact-card{padding:13px;gap:10px}.entry-actions{gap:10px}}

.service-field{position:relative}.service-suggestions{position:absolute;top:100%;left:0;right:0;z-index:5;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 10px 30px #19312418;max-height:245px;overflow:auto;margin-top:-10px}.service-option{display:flex;flex-direction:column;text-align:left;gap:4px;width:100%;padding:11px 14px;background:var(--surface);color:var(--text)}.service-option strong{font-size:13px;font-weight:550}.service-option span{font-size:11px;color:var(--muted)}.service-option:hover,.service-option[aria-selected="true"]{background:var(--selected)}.service-option-hint{padding:11px 14px;font-size:11px;color:var(--muted);border-top:1px solid var(--border-soft)}

[hidden]{display:none!important}#code{text-align:center;letter-spacing:8px;font-size:23px}#authBack{margin-top:5px}button:disabled{opacity:.6;cursor:wait}

#editor{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px 24px;overflow-y:auto;scroll-padding-bottom:80px}
#editor .modalhead h2{font-size:20px;margin:0}#editor .modalhead{margin-bottom:15px}
#editor label{margin:10px 0;font-size:11px}#editor input{padding:10px 11px;margin-top:5px}
#editor .inline{flex-wrap:nowrap;align-items:center;gap:6px}#editor .inline input{flex:1 1 0;min-width:0}#editor .inline button{flex-shrink:0;margin-top:5px;padding:10px 9px;font-size:10px}
#editor .service-preview{margin:12px 0;gap:10px;font-size:11px}#editor .service-preview .icon{width:36px;height:36px;border-radius:9px}#editor .service-preview img{width:27px;height:27px}
#editor .check{margin:12px 0}#editor .check input{padding:0;margin:0}
.icon-options{font-size:11px;color:var(--muted);margin:10px 0}.icon-options summary{cursor:pointer}.icon-options input{font-size:11px}
.entry-save-area{position:sticky;bottom:-20px;background:var(--surface);padding:10px 0 3px;margin-top:8px;z-index:6;border-top:1px solid var(--border-soft)}#editor .entry-save-area .primary{margin-top:0;padding:12px}#entryError{margin:0 0 8px}#entryReauth{margin-bottom:8px}
@media(max-width:420px){#editor{padding:17px}#editor .inline{flex-wrap:wrap}#editor .inline input{flex:1 1 100%}.entry-save-area{bottom:-17px}}

.trash-button{display:grid;place-items:center;background:none;border-radius:6px;color:#91a297;width:30px;height:32px;flex-shrink:0;padding:0}.trash-button:hover{color:var(--danger);background:var(--danger-bg)}.entry-heading{gap:4px}.entry-heading .star{width:30px;height:32px;flex-shrink:0}
@media(max-width:700px){
 body{display:block}aside{position:sticky;top:0;z-index:8;width:100%;height:auto;padding:10px 14px 8px;display:flex;flex-direction:row;align-items:center;gap:6px;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--border);background:var(--surface)}
 aside .brand{font-size:22px;letter-spacing:-1px;margin:0 auto 4px 0;width:calc(100% - 150px);gap:8px}aside .brand span{display:inline}aside .brand .dot{display:inline}aside .label,aside .secure{display:none}
 aside .nav{display:flex;align-items:center;justify-content:center;min-height:40px;font-size:11px;padding:8px 10px;margin:0;white-space:nowrap}aside .nav span{display:none}aside #all{order:2}aside #fav{order:3}aside #users{order:4}aside #logout{display:flex;order:1;font-size:11px;padding:8px 10px;margin-left:auto}aside #logout:first-letter{font-size:inherit}
 main{margin-left:0;width:100%}header{height:50px;padding:12px 20px}section{padding:25px 20px}.title{margin-bottom:25px}.toolbar{margin-bottom:20px}.entry-actions{gap:12px}.entry-heading .star,.trash-button{width:36px;height:36px}.entry-title{font-size:14px}.compact-card{gap:10px}.compact-card>.icon{width:40px;height:40px}.entry-actions button{min-height:32px}.entry-login{min-height:30px}
}

#mobileAdd{display:none}
@media(max-width:700px){
 section>.eyebrow,section>.title{display:none}section{padding-top:15px}.toolbar{margin-bottom:12px}.toolbar input{padding:10px 12px}
 aside .brand{width:auto;flex:1;margin:0;min-width:0;font-size:20px}aside #mobileAdd{display:block;order:0;min-height:34px;padding:8px 10px;font-size:11px;box-shadow:none;white-space:nowrap}aside #logout{order:1;min-height:34px;font-size:10px;padding:7px 5px;margin-left:0}aside #all{margin-left:0}aside #all,aside #fav,aside #users{margin-top:3px}aside{gap:4px;padding:9px 12px 6px}
 .cards{gap:8px}.compact-card{padding:9px 12px;gap:10px;align-items:center}.compact-card>.icon{width:34px;height:34px;margin-top:0}.compact-card>.icon img{width:28px;height:28px}
 .entry-content{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center}.entry-heading{display:contents}.entry-title{grid-column:1;grid-row:1;font-size:13px;line-height:18px;padding:0;min-width:0}.entry-heading .star{grid-column:2;grid-row:1;width:25px;height:25px;margin-right:25px;font-size:17px}.trash-button{grid-column:2;grid-row:1;justify-self:end;width:25px;height:25px}.trash-button svg{width:16px;height:16px}
 .entry-login{grid-column:1;grid-row:2;min-height:0;font-size:11px;padding:0;line-height:18px}.entry-actions{grid-column:1 / -1;grid-row:3;margin-top:3px;gap:12px;flex-wrap:wrap}.entry-actions button{min-height:22px;font-size:10px}.entry-actions .copy-password{font-size:10px}
}
@media(max-width:360px){aside .brand{font-size:17px;gap:4px}aside #mobileAdd{padding:7px;font-size:10px}aside #logout{font-size:9px}}

/* Keep text actions limited to their visible content. */
.entry-heading .entry-title{flex:0 1 auto;width:fit-content;max-width:100%}
.entry-heading .star{margin-left:auto}
.entry-login{width:fit-content;max-width:100%;align-self:flex-start}
@media(max-width:700px){
 .entry-title,.entry-login{justify-self:start;width:fit-content;max-width:100%}
 .entry-heading .star{margin-left:0;margin-right:25px}
}

@media(max-width:700px){
 aside{display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:6px;row-gap:6px}
 aside .brand{grid-column:1;grid-row:1;width:auto;margin:0}
 aside #mobileAdd{grid-column:2;grid-row:1;order:initial}
 aside #logout{grid-column:3;grid-row:1;order:initial;margin:0}
 aside #all{grid-column:1;grid-row:2;order:initial;margin:0;justify-self:start}
 aside #fav{grid-column:2;grid-row:2;order:initial;margin:0;justify-self:start}
 aside #users{grid-column:3;grid-row:2;order:initial;margin:0;justify-self:start}
}

/* iOS: readable input text prevents focus zoom; dialogs fit narrow screens. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:700px),(hover:none) and (pointer:coarse){
 input,select,textarea,#editor input,#editor select,.icon-options input{font-size:16px}
 #code{font-size:23px}
 dialog,#editor{box-sizing:border-box;min-width:0;width:min(470px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;overflow-y:auto;overflow-x:hidden;overflow-wrap:anywhere}
 dialog form,dialog label,dialog input,dialog select,dialog .inline{min-width:0;max-width:100%}
 dialog img{max-width:100%;height:auto}
 #authInfo{white-space:normal;overflow-wrap:anywhere}
 #editor .entry-save-area{bottom:-20px}
}

#passkeyLogin{width:100%;margin:8px 0}#securityDialog .primary{width:100%}#passkeyList p{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}@media(max-width:700px){aside #security{grid-row:3;grid-column:1 / -1;justify-self:start;display:flex;margin:0}}

.theme-control{display:flex;align-items:center;gap:8px;margin:0 18px 0 auto;font-size:11px;color:var(--muted)}.theme-control select{width:auto;max-width:180px;margin:0;padding:7px 9px;font-size:12px;background:var(--surface);color:var(--text);border-color:var(--border)}#authform>.theme-control{justify-content:flex-end;margin:0 0 20px}input::placeholder{color:var(--muted);opacity:.8}:root[data-theme="dark"] .entry-title,:root[data-theme="dark"] .entry-actions .copy-password,:root[data-theme="dark"] .entry-login:hover{color:var(--link)}:root[data-theme="dark"] .brand{color:var(--text-strong)}:root[data-theme="dark"] .card:hover{box-shadow:0 8px 25px #0003}
@media(max-width:700px){header .theme-control{margin-right:0}header .theme-control>span{display:none}.theme-control select{font-size:16px;max-width:185px;padding:4px 7px}header{gap:10px}header>span:first-child{white-space:nowrap;font-size:11px}.theme-control{gap:5px}}
dialog{background:var(--surface)}

.nav svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.nav{gap:10px}#profileDialog .modalhead h2{margin:0}.profile-email{font-size:13px;margin:12px 0 25px;overflow-wrap:anywhere}.profile-setting{border-top:1px solid var(--border-soft);padding:16px 0 4px}.profile-setting h3{font-size:12px;color:var(--muted);font-weight:500;margin:0 0 12px}#profileDialog .theme-control{margin:0;justify-content:space-between;font-size:13px}#profileDialog .theme-control select{max-width:210px}#profileDialog .nav{width:100%;background:var(--field);color:var(--text);margin:8px 0;padding:13px;border:1px solid var(--border);font-size:13px}#profileDialog .nav:hover{background:var(--selected)}
@media(max-width:700px){aside #openProfile{display:flex;grid-column:3;grid-row:2;margin:0;justify-self:start}aside #logout{gap:6px}aside #logout svg{width:15px;height:15px}#profileDialog #security,#profileDialog #users{display:flex}header .profile{display:none}#profileDialog .theme-control select{font-size:16px}.profile-setting{padding-top:14px}}

.space-switch{display:flex;align-items:center;gap:8px;margin:0;min-width:0;font-size:12px}.space-switch>span{white-space:nowrap}.space-switch select{margin:0;width:auto;max-width:220px;padding:6px 9px;font-size:13px}.space-list-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--border-soft);font-size:13px;overflow-wrap:anywhere}.space-list-row span:last-child{color:var(--muted);flex-shrink:0}#spaceForm .secondary{width:100%}#spaceList{max-height:200px;overflow:auto}#spaceError{font-size:12px}@media(max-width:700px){.space-switch select{font-size:16px;max-width:190px}.space-switch>span{font-size:11px}.space-switch{gap:5px}}
