:root {
  color-scheme: light;
  --bg:#f7f8f5; --paper:#fff; --text:#202b29; --muted:#53635f;
  --line:#dae3dd; --green:#205c49; --soft:#e6f2eb;
  font: 15px/1.5 system-ui, sans-serif;
}
* { box-sizing:border-box }
body { margin:0; background:var(--bg); color:var(--text) }
a { color:var(--green) }
h1,h2,p { margin:0 }
h1 { font-size:clamp(1.45rem,3vw,2rem); line-height:1.22; letter-spacing:-.035em }
h2 { font-size:1.12rem; line-height:1.35; overflow-wrap:anywhere }
a, button, input, textarea, select, summary { outline-offset:3px }
.top { min-height:64px; display:flex; padding:0 24px; align-items:center; gap:32px; border-bottom:1px solid var(--line); background:var(--paper) }
.brand,.top nav a { text-decoration:none; color:var(--text) }
.brand { font-size:20px; font-weight:740; display:flex; align-items:center; gap:9px }
.mark { display:grid; width:32px; height:32px; place-items:center; background:var(--green); color:white; border-radius:8px }
.top nav,.account { display:flex; align-items:center; gap:13px }
.top nav a { padding:8px 10px; border-radius:7px; white-space:nowrap }
.top nav [aria-current],.tree [aria-current],.entries [aria-current] { background:var(--soft); color:#174736; font-weight:650 }
.account { margin-left:auto; color:var(--muted) }
button,.button { display:inline-flex; align-items:center; justify-content:center; gap:10px; border:1px solid var(--line); background:var(--paper); color:var(--text); border-radius:8px; min-height:36px; padding:6px 13px; text-decoration:none; font:inherit; cursor:pointer; white-space:nowrap }
button:hover,.button:hover { border-color:var(--green) }
.primary { background:var(--green); border-color:var(--green); color:white; font-weight:600 }
.primary:hover { background:#184939 }
.quiet { background:transparent; color:var(--green) }
input,select,textarea { width:100%; min-width:0; color:var(--text); background:var(--paper); border:1px solid #c7d4cc; border-radius:8px; padding:8px 10px; font:inherit }
label { display:grid; gap:4px; font-weight:560 }
.workspace { display:grid; grid-template-columns:minmax(205px, 22%) minmax(265px, 1fr) minmax(300px, .95fr); min-height:calc(100vh - 64px) }
.sidebar { padding:21px 13px; border-right:1px solid var(--line) }
.sidebar h2 { margin:0 9px 10px }
.tree { list-style:none; padding:0; margin:0 }
.tree a { display:flex; align-items:center; gap:8px; padding:5px 8px; padding-left:calc(8px + var(--depth,0)*12px); border-radius:7px; text-decoration:none; color:var(--text); overflow-wrap:anywhere }
.tree a:hover,.entry-row:hover { background:var(--soft) }
.depth-1 { --depth:1 } .depth-2 { --depth:2 } .depth-3 { --depth:3 } .depth-4 { --depth:4 }
.depth-5 { --depth:5 } .depth-6 { --depth:6 } .depth-7 { --depth:7 } .depth-8 { --depth:8 }
.folder { display:block; flex:none; width:14px; height:10px; border:1px solid var(--green); border-radius:2px; position:relative }
.folder::before { content:""; position:absolute; width:5px; height:2px; left:-1px; top:-3px; border:1px solid var(--green); border-radius:2px 2px 0 0 }
.add-group { margin:15px 8px 0; color:var(--green) }
.add-group summary { cursor:pointer }
.add-group form,.editor { display:grid; gap:12px; margin-top:12px; justify-items:start }
.editor label,.add-group label { width:100% }
.collection,.record { min-width:0; background:var(--paper); padding:23px clamp(12px,2vw,26px) }
.collection { border-right:1px solid var(--line) }
.collection-head,.record-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px }
.path,.muted,small,.empty,.placeholder { color:var(--muted) }
.path { font-size:.85rem; margin-bottom:4px; overflow-wrap:anywhere }
.search { display:flex; gap:7px; margin:17px 0 }
.entry-row { display:grid; grid-template-columns:34px minmax(0,1fr) 13px; align-items:center; gap:10px; border-radius:8px; color:var(--text); text-decoration:none; padding:8px; border-bottom:1px solid var(--line) }
.entry-row strong,.entry-row small { display:block; overflow-wrap:anywhere }
.entry-icon { width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:var(--soft); color:var(--green); font-size:22px }
.chevron { color:var(--muted); font-size:19px }
.empty { padding:12px 6px }
.placeholder { display:grid; gap:10px; justify-items:center; padding-top:clamp(25px,10vh,100px) }
dl { margin:19px 0 }
dt { margin-top:15px; color:var(--muted); font-size:.87rem }
dd { margin:4px 0 0; overflow-wrap:anywhere }
.notes { white-space:pre-wrap }
.secret { display:flex; gap:6px; flex-wrap:wrap }
.secret input,.secret textarea { flex:2 1 155px }
.secret button { flex:0 0 auto; font-size:.87rem }
.page { max-width:1160px; margin:30px auto; padding:0 21px }
.page > p,.page > .secret,.page > .button { margin-top:13px }
.issue { display:grid; grid-template-columns:1fr 1.5fr 1fr .65fr auto; align-items:end; gap:11px; margin:22px 0 30px; padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--paper) }
.table-scroll { overflow:auto }
table { width:100%; border-collapse:collapse; text-align:left; background:var(--paper) }
caption { text-align:left; font-size:1.1rem; font-weight:650; margin-bottom:9px }
th,td { padding:10px; border-bottom:1px solid var(--line) }
.login { min-height:calc(100vh - 64px); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:24px; padding:25px 20px 80px; background:radial-gradient(ellipse at 50% 42%, #e6f2eb 0%, var(--bg) 65%) }
.login .button { padding:10px 18px }
.vault-symbol { width:64px; height:64px; background:var(--green); border-radius:14px; display:grid; place-items:center }
.vault-symbol span { width:29px; height:22px; margin-top:9px; border:2px solid white; border-radius:5px; position:relative }
.vault-symbol span::before { content:""; position:absolute; width:15px; height:13px; border:2px solid white; border-bottom:0; border-radius:13px 13px 0 0; left:4px; top:-15px }
.vault-symbol span::after { content:""; position:absolute; width:3px; height:7px; background:white; border-radius:2px; left:11px; top:6px }
@media(max-width:900px){ .workspace{grid-template-columns:minmax(170px,29%) 1fr}.record{grid-column:2; border-top:1px solid var(--line)}.sidebar{grid-row:span 2}.issue{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:560px){ .top{flex-wrap:wrap;gap:6px 14px;padding:8px 13px}.top nav{order:3;width:100%}.workspace{display:block}.tree{max-height:25vh;overflow:auto}.sidebar,.collection{border-right:0;border-bottom:1px solid var(--line)}.record{border:0}.issue{grid-template-columns:1fr}.login{min-height:calc(100vh - 58px)} }

.masked { -webkit-text-security:disc }
.custom-fields { width:100% }
.custom-fields summary { cursor:pointer; color:var(--green) }
.custom-fields label { margin-top:8px }
