*{box-sizing:border-box} :root{font:14px/1.48 Inter,"Segoe UI",Arial,sans-serif;color:#222631;background:#f7f8fa;--ink:#252a35;--muted:#646c7b;--line:#e4e6ed;--brand:#8659fa;--on-brand:#fff;--on-side:#181922;--on-mid:#181922;--accent-text:#6e43ce;--selected:#ece9f4;--button-fill:var(--brand);--side:#f0f0f5;--mid:#f8f7fa}body{margin:0}button,input,textarea,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible,input:is([type=checkbox],[type=radio],[type=range]):focus-visible{outline:2px solid var(--brand);outline-offset:2px}button{border:0;background:transparent}a{color:var(--accent-text)}h1,h2,h3,p{margin:0}h1{font-size:clamp(22px,2vw,30px);letter-spacing:-.04em;font-weight:630}h2{font-size:19px;letter-spacing:-.025em;font-weight:620}h3{font-size:15px;font-weight:610}small,.muted,.sub{color:var(--muted)}small,.sub{font-size:12px}.loading,.empty{padding:28px;color:var(--muted)}.empty{text-align:center}.ico{width:18px;height:18px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}.iconbtn{width:33px;height:33px;display:inline-grid;place-items:center;border-radius:7px;flex:none}.iconbtn:hover,.linkbtn:hover{background:#e8eaf1}.btn,.primary,.danger,.secondary{padding:9px 16px;line-height:1.4;border-radius:7px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:7px}.primary{background:var(--brand);color:var(--on-brand)}.primary:hover{box-shadow:inset 0 0 0 100px #0001}.secondary{background:#eef0f5;color:#333d59}.danger{background:#a82d41;color:white}.linkbtn{padding:6px 9px;border-radius:7px;color:var(--accent-text);display:inline-flex;align-items:center;gap:6px}.row,.actions,.frame-title,.sheet-title,.brand,.top,.account,.entry,.card-title,.statline{display:flex;align-items:center}.actions{gap:7px;flex-wrap:wrap}.spread,.frame-title,.sheet-title,.card-title{justify-content:space-between}.grow{flex:1;min-width:0}.wrap{flex-wrap:wrap}.brand{gap:10px;font-size:23px;font-weight:690;text-decoration:none;color:var(--ink);letter-spacing:-.055em}.brand img{width:36px;height:36px}.top{height:72px;background:#fff;border-bottom:1px solid var(--line);padding:0 22px 0 0;gap:10px;position:relative;z-index:3}.top>.brand{width:25vw;padding-left:23px;flex:none;justify-content:flex-start}.searchbox{position:relative;width:min(42vw,580px)}.searchform{background:white;border:1px solid var(--field-border, var(--line));border-radius:10px;padding:4px 8px 4px 12px;gap:8px;display:flex;align-items:center;color:#6b7282}.searchform input{border:0;outline:0;min-width:0;flex:1;height:30px;background:transparent}.searchform input:focus-visible{outline:0}.searchform .primary{padding:5px 12px;font-size:12px}.account{gap:6px;margin-left:auto}.account button{display:inline-flex;gap:7px;align-items:center}.bell{position:relative;border-radius:50%;background:#f3f4f7}.bell i{position:absolute;background:var(--brand);width:7px;height:7px;right:2px;top:2px;border-radius:50%}.workspace{display:grid;grid-template-columns:25% 33.333% minmax(0,1fr);height:calc(100dvh - 72px);min-height:320px}.side{background:var(--side);min-width:0;display:flex;flex-direction:column;overflow:hidden;padding:15px 12px 12px 0}.side select{width:100%;margin:1px 0 12px;padding:10px 24px 10px 17px;border:none;background:transparent;font-weight:610;color:var(--ink)}.scroll,.middle,.detail,.wide{overflow:auto;min-width:0}.scroll{flex:1}.middle{background:var(--mid);padding:12px 12px 24px 0}.detail{background:white;padding:13px 18px 24px}.wide{grid-column:2/4;padding:24px clamp(18px,2.1vw,36px)}.white{background:white}.frame-title{padding:5px 5px 12px 14px;min-height:40px;gap:5px}.frame-title h2,.sheet-title h2,.ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.frame-title .actions,.sheet-title .actions{gap:1px;flex-wrap:nowrap}.sheet-title{min-height:38px;gap:6px}.entry{width:100%;border:0;border-left:3px solid transparent;text-align:left;gap:9px;min-height:43px;padding:7px 10px 7px 16px;border-radius:0 5px 5px 0}.entry:hover{background:#e5e9f1}.entry.active{background:var(--selected);border-left-color:var(--brand)}.entry .end{margin-left:auto;color:var(--muted)}.entry .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.depth1{padding-left:30px}.depth2{padding-left:44px}.depth3{padding-left:58px}.depth4{padding-left:72px}.side .entry.trash{margin-top:12px;border-top:1px solid #dadee7}.dock{align-self:center;display:flex;gap:4px;background:white;border-radius:24px;padding:5px 8px;box-shadow:0 3px 14px #39405710;margin-top:12px}.dock .on,.tabs .active{color:var(--accent-text)}.dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#ca4153}.glyph{display:inline-flex;align-items:center;justify-content:center;flex:none}.glyph .ico{width:18px;height:18px;stroke-width:2}.tabs{display:flex;align-items:stretch;border-bottom:2px solid var(--line);margin:7px 0 15px}.tabs button{flex:1;padding:10px 2px;margin-bottom:-2px;border-bottom:2px solid transparent;font-size:13px}.tabs button.active{border-color:var(--brand);font-weight:620}.fieldrow{padding:14px 0;border-bottom:1px solid #edf0f3}.fieldrow>small{display:block;margin-bottom:5px}.fieldrow .grow{overflow-wrap:anywhere;white-space:pre-wrap}.secret{font-family:ui-monospace,Consolas,monospace;letter-spacing:.04em}.homecards{display:grid;grid-template-columns:1fr 1.25fr;gap:20px;margin-top:22px;align-items:stretch}.homecard{border-radius:14px;overflow:hidden;box-shadow:0 3px 18px #3a476414;background:#fff;display:flex;flex-direction:column;min-width:0}.card-title{padding:15px 17px 5px}.card-title h3{display:flex;gap:8px;align-items:center}.badge,.tag{padding:3px 8px;border-radius:15px;font-size:12px;background:#e8ecf7;color:#485577}.badge{background:var(--brand);color:var(--on-brand)}.cardbody{padding:8px 14px 12px;flex:1}.cardbody .entry{min-height:38px;padding:2px 3px}.cardbody small{display:block;font-weight:400}.cardfoot{background:var(--brand);color:var(--on-brand);width:100%;padding:8px}.stats{display:flex;align-items:center;justify-content:space-evenly;flex:1;padding:21px 5px 24px}.stats div{padding:0 8px;text-align:center;flex:1;border-left:1px solid var(--line);font-size:12px}.stats div:first-child{border:0}.stats strong{display:block;font-size:clamp(25px,3vw,44px);font-weight:540;line-height:1.2}.warn{color:#ad6d10}.bad{color:#b94053}.good{color:#327963}.panehead{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:12px}.filterbar,.block{background:#f4f5f8;border-radius:8px;padding:14px;margin:12px 0}.block{background:white;border:1px solid var(--line)}.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.filters label{flex:1;min-width:120px}.filters input,.filters select{max-width:100%}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:11px 8px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}th{font-weight:600;color:#626a7a}tbody tr[data-act]{cursor:pointer}tbody tr[data-act]:hover{background:#f0f3f8}.tablewrap{overflow:auto}.tag{display:inline-block;margin:2px}.path{font-size:12px;color:var(--muted);margin:3px 0 5px 16px}.section{margin:20px 0}.section>h3{margin-bottom:8px}.aside-list{padding:5px 12px}.aside-list button{display:flex;gap:9px;align-items:center;width:100%;border-radius:6px;padding:10px;text-align:left}.aside-list button:hover,.aside-list button.active{background:var(--selected)}.popover{position:absolute;z-index:5;min-width:210px;right:15px;top:61px;background:white;border:1px solid var(--line);box-shadow:0 10px 38px #1e294822;border-radius:10px;padding:6px}.popover button,.suggest button{display:flex;align-items:center;gap:9px;text-align:left;padding:10px;width:100%;border-radius:6px}.popover button:hover,.suggest button:hover{background:var(--side)}.suggest{top:calc(100% + 5px);left:0;right:0}.auth{min-height:100dvh;display:grid;place-items:center;background:#fff;padding:22px}.authbox{width:min(100%,364px)}.authbox .brand{justify-content:center;flex-direction:column;gap:4px;font-size:34px}.authbox .brand img{width:59px;height:59px}.authbox h1{text-align:center;font-size:19px;margin:14px 0 24px}.authbox .primary{width:100%;margin-top:8px}label.field{display:flex;flex-direction:column;gap:5px;font-size:13px;margin:10px 0;color:#525b69}input:not([type=checkbox]),textarea,select{border:1px solid var(--field-border, #d5d9e3);border-radius:7px;padding:9px 10px;background:white;color:#232938}textarea{resize:vertical;min-height:70px}label.check{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:13px}input[type=checkbox]{accent-color:var(--brand)}.hint{color:var(--muted);font-size:13px;margin:8px 0}.error{color:#a1273b;font-size:13px;white-space:pre-wrap}.error:not(:empty){border-radius:6px;background:#fcebf0;padding:9px;margin:8px 0}dialog{border:0;border-radius:14px;width:min(92vw,580px);max-height:88dvh;color:var(--ink);padding:0;box-shadow:0 20px 80px #11192f40}dialog::backdrop{background:#20263580}dialog header,dialog footer{display:flex;align-items:center;justify-content:space-between;padding:15px 21px;border-bottom:1px solid var(--line)}dialog footer{justify-content:flex-end;gap:8px;border:0;border-top:1px solid var(--line)}.dialogbody{padding:10px 21px 18px;overflow:auto;max-height:64dvh}.dialogbody .filters{align-items:center}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#262c40;color:white;padding:10px 19px;border-radius:9px;z-index:20;box-shadow:0 4px 24px #151b3030}.mobile-only{display:none}.checkrow{display:flex;align-items:center;gap:4px}.checkrow>.entry{flex:1}.checkrow input{margin-left:12px}.sheet-title .grow{display:flex;align-items:center;gap:7px}.notice{padding:12px 0;border-bottom:1px solid var(--line)}.authbox .linkbtn{justify-content:center;width:100%}
@media(max-width:900px){.top{height:62px}.workspace{height:calc(100dvh - 62px)}.homecards{grid-template-columns:1fr}.wide{padding:18px}.detail{padding:10px}.tabs button{font-size:12px}.top>.brand{padding-left:16px}.sheet-title{flex-wrap:wrap}.entry{font-size:13px}.popover{top:54px}.suggest{top:calc(100% + 5px)}}
@media(max-width:680px){.mobile-only{display:inline-grid}.top{padding:0 10px;gap:6px}.top>.brand{width:auto;padding:0}.top>.brand span,.account .username{display:none}.top>.brand img{width:30px;height:30px}.searchbox{flex:1;width:auto}.top .account{margin:0}.workspace{display:block}.side,.middle,.detail,.wide{display:none;height:100%}.workspace[data-mobile=tree] .side{display:flex}.workspace[data-mobile=list] .middle,.workspace[data-mobile=card] .detail,.workspace[data-mobile=wide] .wide{display:block}.side{padding-right:8px}.middle,.detail{padding:12px}.wide{padding:16px}.frame-title{padding-left:4px}.panehead{flex-wrap:wrap}.account{gap:1px}.stats strong{font-size:34px}.top .searchform{padding-left:7px}.homecards{gap:12px}.twocol{grid-template-columns:1fr}.authbox{max-width:360px}.section{margin:14px 0}}
[hidden]{display:none!important}.searchbox{min-width:0}.searchform input[type=search]{border:0;padding:4px;box-shadow:none}.top .account{flex:none}.editorgrid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}dialog:has(.editorgrid){width:min(94vw,850px)}.statusbar{min-height:1em}@media(max-width:680px){.editorgrid{grid-template-columns:1fr}.top .account button{padding:3px}.searchform .primary{padding:5px}.top .brand{flex:none}}
.vault-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 6px 6px 18px;
}
.vault-tabs button {
    position: relative;
    min-width: 0;
    padding: 5px 0 8px;
    color: var(--ink);
    font-size: clamp(12px, 1.1vw, 16px);
    line-height: 1.4;
}
.vault-tabs button::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: white;
}
.vault-tabs button:first-child::after { border-radius: 3px 0 0 3px; }
.vault-tabs button:last-child::after { border-radius: 0 3px 3px 0; }
.vault-tabs button[aria-selected="true"] { font-weight: 650; }
.vault-tabs button[aria-selected="true"]::after { background: var(--brand); border-radius: 3px; }
.workspace { --vault-row-height: 44px; }
.vault-tree { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.vault-tree > .scroll {
    --folder-scroll-thumb:color-mix(in srgb,var(--on-side) 20%,var(--side));
    scrollbar-gutter:stable; padding-inline-end:6px; margin-inline-end:-6px;
}
.vault-tree > .scroll::-webkit-scrollbar { width:6px; height:6px; }
.vault-tree > .scroll::-webkit-scrollbar-track { background:transparent; }
.vault-tree > .scroll::-webkit-scrollbar-thumb { background:var(--folder-scroll-thumb); border-radius:6px; }
.vault-tree > .scroll::-webkit-scrollbar-thumb:hover { background:var(--muted); }
.vault-tree > .scroll::-webkit-scrollbar-button { display:none; }
@supports not selector(::-webkit-scrollbar) {
    .vault-tree > .scroll { scrollbar-width:thin; scrollbar-color:var(--folder-scroll-thumb) transparent; }
}
.folder-children { display:grid; grid-template-rows:1fr; }
.folder-children[inert] { grid-template-rows:0fr; }
.folder-children > div { min-height:0; overflow:hidden; }
.vault-tree .entry, .middle .entry {
    min-height: var(--vault-row-height); padding-block: 6px; gap: 10px; font-size: 15px;
}
.vault-tree .checkrow > .iconbtn {
    width: var(--vault-row-height); height: var(--vault-row-height);
}
@media (pointer: coarse) {
    .vault-tabs button { min-height: 44px; }
}
.personal-home p { color: var(--muted); margin: 0 0 18px; }
@media (min-width: 681px) and (max-width: 900px) {
    .workspace { grid-template-columns: minmax(224px, 25%) 30% minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .vault-tabs { margin-inline: 20px 12px; }
    .vault-tabs button { font-size: 15px; }
}
dialog:has(.password-editor) { width: min(94vw, 1024px); background: #f9fafb; }
dialog:has(.password-editor) .dialogbody { max-height: min(72dvh, calc(88dvh - 138px)); }
.editorgrid:has(.password-editor) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.editorgrid:has(.password-editor) > div > .field > input { border-radius: 24px; min-height: 42px; padding-inline: 16px; }
.password-editor { position: relative; margin: 10px 0; min-width: 0; }
.password-editor > label, .generator-exclude {
    display: block; color: #626770; font-size: 13px; margin-bottom: 5px;
}
.password-control {
    display: flex; align-items: center; gap: 2px; min-height: 44px;
    padding: 2px 12px 2px 16px; border: 1px solid var(--field-border, #d5d9e3); border-radius: 28px; background: white;
}
.password-control:focus-within { border-color: var(--accent-text); }
.password-control[data-strength=high] { border-color: var(--field-border, #63be88); }
.password-control[data-strength=medium] { border-color: var(--field-border, #e8ad29); }
.password-control[data-strength=low] { border-color: var(--field-border, #d7787e); }
.password-display { position:relative; flex:1; min-width:0; }
.password-control input.password-value {
    display:block; min-width: 0; width: 100%; padding: 8px 0; border: 0; outline: 0; box-shadow: none; background: transparent;
}
.password-display:has(.password-roll:not([hidden])) .password-value { opacity:0; }
.password-roll {
    position:absolute; inset-inline-start:0; top:50%; transform:translateY(-50%);
    max-width:100%; height:1.4em; overflow:hidden; pointer-events:none; user-select:none;
    font-family:ui-monospace,monospace; line-height:1.4; color:var(--accent-text);
}
.password-roll > span { display:block; white-space:pre; }
.password-control input::-ms-reveal { display: none; }
.password-control .iconbtn { width: 30px; height: 32px; flex: none; color: #25272c; }
.password-control .ico { width: 19px; height: 19px; }
.password-options {
    position: absolute; z-index: 3; inset: 100% auto auto 0; width: min(100%, 450px);
    padding: 14px 14px 18px; background: white; border: 1px solid #dedde2;
    box-shadow: 0 5px 13px #19142029; font-size: 15px; color: #26262a;
}
.password-options .generator-close { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; color: #76747a; }
.generator-length { display: flex; align-items: center; gap: 12px; margin: 1px 24px 6px 0; }
.generator-length label { min-width: 96px; }
.generator-length output { font-variant-numeric: tabular-nums; }
.generator-length input[type=range] {
    width: 45%; min-width: 70px; padding: 0; border: 0; box-shadow: none;
    accent-color: var(--brand); cursor: pointer;
}
.generator-choice { display: flex; width: fit-content; align-items: center; gap: 9px; min-height: 26px; cursor: pointer; }
.generator-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand); }
.generator-choice small { color: #76747c; font-size: inherit; }
.generator-exclude { margin: 9px 0 0; }
.generator-exclude input[type=text] {
    display: block; width: 100%; min-height: 42px; margin-top: 5px; padding-inline: 15px;
    border-radius: 24px; border-color: var(--field-border, #63be88);
}
.generator-error { margin: 8px 0 0; color: #a32c43; font-size: 13px; }
@media (max-width: 680px) {
    .editorgrid:has(.password-editor) { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .password-options { width: 100%; }
}
.parent-picker { min-width: 0; padding-top: 10px; }
.parent-caption { margin: 0 0 5px; font-size: 13px; color: #686a72; }
.parent-tree {
    --depth: 0;
    max-height: min(58dvh, 545px); overflow: auto; overscroll-behavior: contain;
    padding: 2px 9px 5px 0; background: #f0eff5; scrollbar-color: #d7d6de transparent; scrollbar-width: thin;
}
.parent-tree [role=group] { --parent-depth: var(--depth); }
.parent-tree [role=group] > [role=treeitem] { --depth: calc(var(--parent-depth) + 1); }
.parent-tree [role=treeitem] { outline: none; }
.parent-row {
    position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px;
    padding: 6px 12px 6px min(42%, calc(18px + var(--depth) * 18px)); border-radius: 0 6px 6px 0; color: #303039; cursor: pointer;
}
.parent-row > .parent-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.parent-row .glyph .ico { flex: none; width: 20px; height: 20px; stroke-width: 1.4; }
.parent-row:hover, .parent-tree [aria-selected=true] > .parent-row { background: var(--selected); }
.parent-tree [aria-selected=true] > .parent-row { color: var(--accent-text); font-weight: 600; }
.parent-tree [aria-selected=true] > .parent-row::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); border-radius: 3px;
}
.parent-tree [data-branch-only] > .parent-row > .parent-name { color: #747583; cursor: default; }
.parent-tree [role=treeitem]:focus-visible > .parent-row { outline: 2px solid var(--brand); outline-offset: -2px; }
.parent-toggle { display: grid; place-items: center; flex: none; width: 32px; height: 32px; color: #35343b; border-radius: 5px; }
.parent-toggle:hover { background: #e2deee; }
.parent-toggle .ico { width: 15px; height: 15px; }
.parent-toggle[aria-expanded=true] .ico { transform: rotate(180deg); }
@media (max-width: 680px) {
    .parent-picker { grid-row: 1; }
    .parent-tree { max-height: min(24dvh, 175px); }
    .parent-row { min-height: 42px; }
}
.record-location { min-width: 0; }
.editor-label { display: block; margin-bottom: 5px; font-size: 13px; color: #686a72; }
.tags-editor { margin: 12px 0 0; }
.tag-box {
    min-height: 65px; padding: 11px 16px; display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px; background: white; border: 1px solid var(--field-border, #eeedf3); border-radius: 19px;
}
.tag-chips { display: contents; }
.edit-tag, .tag-add { display: inline-flex; align-items: center; gap: 6px; background: #f0eff5; color: var(--accent-text); border-radius: 24px; }
.edit-tag { padding: 5px 10px 5px 12px; max-width: 100%; overflow-wrap: anywhere; }
.edit-tag button { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; padding: 0; border: 1px solid #393641; border-radius: 50%; color: #393641; }
.edit-tag .ico { width: 11px; height: 11px; }
.tag-add { justify-content: center; width: 30px; height: 30px; padding: 0; }
.tag-draft {
    display: inline-grid; grid-template-columns: minmax(0, 1fr); align-items: center;
    max-width: 100%; min-height: 31px; border-radius: 24px; background: #f0eff5;
}
.tag-draft > span, .tag-draft > input[type=text] {
    grid-area: 1 / 1; padding: 5px 12px; font: inherit; line-height: 21px; white-space: pre;
}
.tag-draft > span { visibility: hidden; overflow: hidden; }
.tag-draft > input[type=text] {
    width: 100%; min-width: 0; border: 0; border-radius: inherit; background: transparent;
    color: #24232b; outline: 0; box-shadow: none; caret-color: #24232b;
}
.tag-draft input::-webkit-calendar-picker-indicator { display: none !important; }
.tag-draft:focus-within { box-shadow: inset 0 0 0 1px #e4e0ed; }
.extras-editor { margin-top: 16px; }
.extra-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.extra-actions button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; color: var(--ink); background: #f0f0f5; }
.extra-actions button:hover { background: var(--selected); }
.extra-actions .ico { color: #292831; stroke-width: 1.5; }
.extra-rows { display: grid; gap: 12px; margin-top: 14px; }
.extra-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 26px; align-items: center; gap: 14px; }
.extra-control { min-width: 0; }
.extra-row[data-type=multiline] { align-items: start; }
.extra-row[data-type=multiline] .extra-name { border-radius: 14px; }
.extra-row[data-type=multiline] .extra-remove { margin-top: 5px; }
.extra-row textarea.extra-value { width: 100%; min-height: 100px; padding: 12px 18px; border-radius: 14px; resize: vertical; }
.extra-row input.extra-name, .extra-row input.extra-value, .file-control {
    width: 100%; min-width: 0; min-height: 44px; padding: 9px 18px; border-radius: 26px;
}
.extra-control .password-editor { margin: 0; }
.extra-remove { display: grid; place-items: center; width: 26px; height: 35px; padding: 0; color: var(--accent-text); }
.extra-remove:hover { color: var(--accent-text); }
.file-control { display: flex; position: relative; align-items: center; gap: 8px; background: white; border: 1px solid var(--field-border, #d5d9e3); cursor: pointer; }
.file-control span { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.file-control input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-control:focus-within { border-color: var(--brand); }
@media (max-width: 680px) {
    .record-location { grid-row: 1; }
    .extra-row { grid-template-columns: minmax(0, 1fr) 30px; gap: 5px 8px; }
    .extra-control { grid-column: 1; }
    .extra-remove { grid-column: 2; grid-row: 1 / span 2; }
}

.slate  { color: #546273; }
.blue   { color: #176bea; }
.mint   { color: #008b62; --swatch: #00a478; }
.violet { color: #8739ed; }
.gold   { color: #a17b00; --swatch: #e6b900; --check-ink: #302500; }
.amber  { color: #df5300; --swatch: #f0620c; }
.rose   { color: #d82378; }

.item-palette {
    display: flex; flex-wrap: wrap; gap: 7px; min-inline-size: 0;
    margin: 14px 0 0; border: 0; padding: 0;
}
.item-palette legend { padding: 0 0 6px; color: #626770; font-size: 13px; }
.item-palette label { position: relative; display: inline-grid; place-items: center; cursor: pointer; }
.item-palette input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.item-palette label > span { pointer-events: none; display: grid; place-items: center; border-radius: 5px; }
.item-palette input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 3px; }
.color-choice span { width: 25px; height: 25px; background: var(--swatch, currentColor); }
.color-choice .ico { width: 16px; height: 16px; color: var(--check-ink, white); stroke-width: 3; visibility: hidden; }
.color-choice input:checked + span .ico { visibility: visible; }
.icon-palette { max-width: 323px; gap: 6px; }
.icon-choice span { width: 34px; height: 34px; border: 1px solid #dadbe4; background: white; }
.icon-choice:hover span { background: var(--selected); }
.icon-choice input:checked + span { border: 2px solid currentColor; background: var(--selected); }

.account { position: relative; }
.account-trigger { min-height: 36px; border-radius: 6px; }
.account-trigger .ico { width: 14px; height: 14px; }
.top .account-menu { position:absolute; z-index:6; top:calc(100% + 13px); right:0; width:min(288px,calc(100vw - 24px)); padding:12px 0; background:white; border-radius:16px; box-shadow:0 6px 32px #22233116; }
.top .account-menu .account-item,.top .account-menu .account-exit { display:flex; align-items:center; gap:13px; padding:13px 20px; min-height:46px; width:100%; color:var(--ink); background:white; text-decoration:none; text-align:left; font-size:15px; font-weight:400; }
.account-menu .ico { width:21px; height:21px; stroke-width:1.45; }
.account-menu a .ico:last-child { width:16px; height:16px; margin-left:12px; }
.top .account-menu .account-item:hover,.top .account-menu .account-exit:hover { background:var(--selected); color:var(--accent-text); }
.top .account-menu .account-exit { border-top:1px solid var(--line); margin-top:3px; }
.account-menu :focus-visible { outline-offset:-3px; }

[data-theme=violet] { --brand:#8659fa; --accent-text:#6e43ce; --selected:#ece9f4; --side:#f0f0f5; --mid:#f8f7fa; --on-brand:white; --button-fill:#8556f6; }
[data-theme=school-store] { --brand:#13888e; --accent-text:#086a6e; --selected:#d7eded; --side:#e8f3f3; --mid:#f4f9f9; --on-brand:white; --button-fill:linear-gradient(180deg, #22a6ab, #13888e); }
[data-theme=blue] { --brand:#245ed5; --accent-text:#194daf; --selected:#d9e7ff; --side:#eaf1ff; --mid:#f5f8ff; --button-fill:var(--brand); }
[data-theme=forest] { --brand:#28743f; --accent-text:#215e34; --selected:#d6ecd9; --side:#e8f2e7; --mid:#f5f9f4; --button-fill:var(--brand); }
[data-theme=terracotta] { --brand:#ac4728; --accent-text:#96391d; --selected:#f9ddce; --side:#f8eae1; --mid:#fdf7f2; --button-fill:var(--brand); }
[data-theme=gray] { --brand:#565656; --accent-text:#454545; --selected:#e0e0e0; --side:#eeeeee; --mid:#f8f8f8; --ink:#282828; --muted:#656565; --line:#dedede; --on-side:#202020; --on-mid:#202020; --button-fill:var(--brand); }
.primary,.cardfoot { background:var(--button-fill); }
.theme-settings fieldset { border:0; margin:0; padding:0; min-width:0; }
.theme-settings legend { color:var(--muted); padding:0; margin-bottom:10px; }
.theme-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(174px,100%),1fr)); gap:12px; max-width:590px; }
.theme-choice { position:relative; cursor:pointer; }
.theme-choice input { position:absolute; inset:0; z-index:1; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.theme-tile { display:grid; height:100%; padding:10px; border:1px solid var(--line); border-radius:12px; background:white; }
.theme-choice input:checked + .theme-tile { border-color:var(--brand); box-shadow:inset 0 0 0 1px var(--brand); }
.theme-choice input:focus-visible + .theme-tile { outline:2px solid var(--accent-text); outline-offset:3px; }
.theme-preview { display:grid; grid-template-columns:26% 33% 1fr; height:62px; border-radius:6px; border:1px solid #e6e6e8; overflow:hidden; }
.theme-preview i { position:relative; background:var(--side); }
.theme-preview i:nth-child(2) { background:var(--mid); }
.theme-preview i:last-child { background:white; }
.theme-preview i::after { content:''; position:absolute; inset:24% 14% auto; height:8px; border-radius:2px; background:var(--selected); border-left:3px solid var(--brand); }
.theme-preview i:last-child::after { background:var(--button-fill); width:48%; border:0; }
.theme-name { display:flex; align-items:center; justify-content:space-between; margin:8px 2px 0; font-weight:600; }
.theme-name > span { display:grid; place-items:center; width:18px; height:18px; border-radius:50%; border:1px solid #d5d6d9; }
.theme-name .ico { width:13px; height:13px; opacity:0; }
.theme-choice input:checked + .theme-tile .theme-name > span { background:var(--brand); color:white; border-color:var(--brand); }
.theme-choice input:checked + .theme-tile .ico { opacity:1; }
.theme-actions { margin-top:16px; }
.side, .side .vault-tabs button, .side select { color: var(--on-side); }
.side .empty, .middle .empty, .personal-home p { color: inherit; }
.side select option { background: white; color: var(--ink); }
.wide:not(.white), .middle { background: var(--mid); color: var(--on-mid); }
.homecard, .dock, .side .aside-list button:hover, .side .aside-list button.active,
.side .entry.active, .side .entry:hover, .middle .entry.active, .middle .entry:hover { color: var(--ink); }
.side .aside-list .linkbtn, .middle > .linkbtn { color: inherit; }
.side .iconbtn:hover, .middle > .linkbtn:hover { color: var(--ink); }
.popover button:hover, .suggest button:hover { background: var(--selected); }
dialog:has(.factor-enroll) { width: min(94vw, 636px); background: #f9fafb; }
dialog:has(.factor-enroll) header { border-bottom: 0; }
.factor-enroll { text-align: center; }
.factor-enroll > p:first-child { margin: 4px 0 10px; text-align: left; }
.factor-qr { display: block; width: min(300px, 100%); height: auto; margin: auto; background: white; }
.factor-manual { margin: 5px auto 16px; color: var(--muted); font-size: 12px; }
.factor-manual code { display: block; max-width: 40ch; margin: 4px auto; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.factor-code { display: grid; justify-items: center; gap: 8px; margin: 12px 0 5px; }
.code-slots { --cell: clamp(36px, 10vw, 60px); position: relative; width: calc(6 * var(--cell)); height: 46px; }
.code-slots > span { display: grid; height: 100%; grid-template-columns: repeat(6,1fr); }
.code-slots i { margin-inline: 4px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.code-slots input[type=text] {
    position: absolute; inset: 0 auto 0 0; width: calc(100% + (var(--cell) - 1ch) / 2 + 2px); height: 100%; border: 0; background: transparent;
    font: 20px/1 monospace; letter-spacing: calc(var(--cell) - 1ch);
    padding: 0 0 0 calc((var(--cell) - 1ch) / 2); color: var(--ink); box-shadow: none;
}
.code-slots:focus-within i { border-color: var(--brand); }
.code-slots input:focus-visible { outline: 0; }
@media (min-width:681px) {
    .workspace.admin-workspace { grid-template-columns:260px minmax(0,1fr); }
    .admin-workspace > .wide { grid-column:2 / -1; }
    .admin-workspace > .side { padding-inline-end:0; }
}
.analytics-panel { min-width: 0; padding: 0; color: var(--ink); }
.report-top { padding: 14px clamp(16px,2vw,38px) 25px; background: var(--mid); color: var(--on-mid); }
.report-scope { width: fit-content; margin: 15px 0; padding: 10px 17px; color: var(--ink); background: #f0f0f5; border: 1px solid var(--line); border-radius: 6px; }
.report-summary { display: grid; grid-template-columns: 1.65fr 1fr 1fr; gap: clamp(8px,1.3vw,26px); }
.report-overview { display: flex; flex-direction: column; min-width: 0; }
.report-overview h1 { margin: 0; }
.report-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: auto 0; text-align: center; }
.report-metrics > div { padding: 0 6px; }
.report-metrics > div + div { border-left: 1px solid #aeb1b477; }
.report-metrics strong { display: block; font-size: clamp(27px,3vw,55px); line-height: 1.15; font-weight: 450; font-variant-numeric: tabular-nums; }
.report-metrics strong sup { font-size: 45%; vertical-align: super; }
.report-metrics span { display: block; font-weight: 550; font-size: clamp(11px,.94vw,16px); overflow-wrap: anywhere; }
.report-help { border: 1px solid currentColor; border-radius: 100%; padding: 0; width: 15px; height: 15px; line-height: 12px; font-size: 11px; }
.breach-metric {position:relative}
.report-metrics .report-help-text {position:absolute;z-index:3;right:0;bottom:calc(100% + 6px);width:min(270px,75vw);padding:10px 12px;background:#282c32;color:#fff;border-radius:6px;text-align:left;font-size:13px;font-weight:400;line-height:1.4;box-shadow:0 3px 12px #24272b22}
.report-help-text::after {content:"";position:absolute;right:12px;bottom:-5px;border:5px solid transparent;border-bottom:0;border-top-color:#282c32}
.report-metrics .report-help-text[hidden] {display:none}
.report-check {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.report-check small {color:var(--muted)}
.report-chart { display: grid; justify-items: center; align-content: start; gap: 12px; margin: 0; }
.report-chart figcaption { font-weight: 600; }
.report-chart svg { display: block; width: clamp(96px,10.6vw,260px); max-width: 100%; height: auto; }
.report-chart ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 9px; list-style: none; margin: 0; padding: 0; font-size: 11px; }
.report-chart li { white-space: nowrap; }
.report-chart li i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 100%; }
.report-chart li b { font-weight: 550; }
.series-0 { background: #19bf92; }.series-1 { background: #f5b900; }.series-2 { background: #dc384c; }.series-3 { background: #9ba0ac; }
.report-list { padding: 24px clamp(16px,2vw,38px); }
.report-list-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.report-filter { display:grid; gap:5px; }
.report-filter { max-width: 330px; }
.report-filter select { border-radius: 24px; padding-inline: 16px; }
.report-table { margin-top: 20px; }
.report-table table { table-layout: fixed; width: 100%; border-collapse: collapse; }
.report-table th,.report-table td { border-bottom: 1px solid var(--line); padding: 14px 4px; background: white; }
.report-table th { text-align: left; }
.report-table th:first-child { width: 7%; }
.report-table th:nth-child(2) { width: 44%; }
.report-table th:last-child { width: 28px; }
.report-table th button { padding: 0; font-weight: 600; }
.report-table th .ico { width: 13px; }
.report-table th[aria-sort=ascending] .ico { transform: rotate(180deg); }
.report-name { text-align: left; padding: 0; word-break: break-word; }
.report-name small { display: block; margin-top: 3px; color: var(--muted); }
.report-open { padding: 2px; color: var(--accent-text); }
.report-bad,.quality-2 { color: #c32c44; }.quality-1 { color: #926200; }.quality-0 { color: #177d66; }
.report-pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }
.report-pager button { border-radius: 50%; min-width: 30px; height: 30px; color: var(--accent-text); }
.report-pager button[aria-current] { color: var(--on-brand); background: var(--brand); }
@media(max-width: 960px) {
    .report-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .report-overview { grid-column: 1 / -1; }
    .report-metrics { margin: 12px 0; }
}
@media(max-width: 680px) {
    .report-metrics strong { font-size: 28px; }
    .report-table td,.report-table th { padding: 12px 1px; font-size: 12px; }
    .report-table th:first-child { width: 10%; }
    .report-table th:nth-child(2) { width: 33%; }
    .report-table th:last-child { width: 19px; }
}
.inspector-panel { --gutter: clamp(16px,2vw,38px); padding:0; color:var(--ink); background:white; }
.inspect-head,.inspect-tools,.inspect-filters,.issue-title,.issue-actions,.inspect-pager { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.inspect-head,.inspect-tools { justify-content:space-between; padding:18px var(--gutter); }
.inspect-summary { display:grid; grid-template-columns:minmax(150px,.8fr) minmax(215px,1.1fr) minmax(295px,1.7fr); gap:clamp(12px,1.25vw,28px); padding:22px var(--gutter); background:var(--mid); color:var(--on-mid); }
.inspect-select { display:grid; gap:6px; font-size:13px; max-width:400px; }
.inspect-select select { width:100%; min-width:0; border-radius:12px; min-height:40px; }
.inspect-scope p { margin-top:14px; font-size:13px; }
.inspect-card { padding:clamp(14px,1.25vw,24px); border-radius:20px; background:white; box-shadow:0 3px 24px #2426370a; color:var(--ink); }
.inspect-card h2 { font-size:clamp(16px,1.1vw,22px); color:var(--muted); margin-bottom:10px; }
.risk-total,.inspect-health { display:flex; flex-wrap:wrap; align-items:center; gap:clamp(10px,1.4vw,25px); }
.risk-total strong,.inspect-health strong,.issue-score { font-size:clamp(32px,3vw,54px); line-height:1.15; font-weight:450; }
.risk-key { display:block; font-size:13px; }
.risk-key + .risk-key { margin-top:6px; }
.risk-key::before { content:''; display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; }
.risk-key.high::before,.risk-badge.high { background:#bc303e; color:white; }
.risk-key.medium::before,.risk-badge.medium { background:#f4cf35; color:#352c10; }
.risk-bar { display:block; width:100%; height:7px; border-radius:5px; margin-top:14px; }
.inspect-health > div + div { border-left:1px solid var(--line); padding-left:clamp(10px,1.4vw,25px); }
.inspect-health strong,.inspect-list td small,.issue-detail td small { display:block; }
.inspect-health ul { list-style:none; padding:0; margin:0; font-size:13px; }
.inspect-health li + li { margin-top:4px; }
.inspect-tools { background:var(--mid); color:var(--on-mid); margin-top:16px; }
.inspect-tools button,.inspect-pager button,.issue-path button { color:var(--accent-text); }
.inspect-tools [data-ifilters] { font-weight:600; }
.inspect-tools button[aria-pressed=true] { color:inherit; font-weight:650; }
.inspect-filters { padding:12px var(--gutter); }.inspect-filters label { min-width:145px; }
.inspect-list { padding:16px var(--gutter); }.inspect-tablewrap { overflow-x:auto; }
.inspect-list table { min-width:555px; }.inspect-list td { padding-block:16px; }.inspect-list th { white-space:nowrap; }
.inspect-list th button { padding:0; }.inspect-list th .ico { width:13px; }
.inspect-list th[aria-sort=ascending],.inspect-list th[aria-sort=descending] { color:var(--accent-text); }
.inspect-list tr[data-issue] { cursor:pointer; }.inspect-list tr[data-issue]:hover { background:#f7f7fa; }
.issue-name { padding:0; text-align:left; }.inspect-list td small { margin-top:3px; }.inspect-list td:last-child { width:24px; color:var(--muted); }
.risk-badge { display:inline-block; padding:3px 9px; border-radius:99px; font-size:12px; white-space:nowrap; }
.inspect-archive-title { margin:18px var(--gutter) 0; }.inspect-pager { justify-content:center; padding-top:14px; }
.issue-detail { padding:18px var(--gutter) 30px; }.issue-detail > .linkbtn { padding-left:0; }
.issue-title { margin:5px 0; }.issue-detail > p { margin-bottom:6px; }
.issue-body { padding:clamp(16px,2vw,30px); margin:18px 0 12px; }
.issue-body dl { display:grid; grid-template-columns:minmax(130px, min(23vw,300px)) minmax(0,1fr); gap:14px 18px; align-items:baseline; margin:16px 0; }
.issue-body dt { color:var(--muted); }.issue-body dd { margin:0; overflow-wrap:anywhere; }
.issue-path button { padding:0; }.issue-advice { display:flex; align-items:flex-start; gap:8px; max-width:700px; padding:14px; background:#f7f7fa; border:1px solid var(--line); border-radius:7px; }
.issue-actions { border-top:1px solid var(--line); padding-top:16px; }.issue-detail section > table { margin-top:14px; }
.issue-actions .secondary { border:1px solid var(--line); background:white; color:var(--ink); }
.issue-actions .secondary:hover { background:#f7f7fa; }
@media(max-width:1150px) {
    .inspect-summary { grid-template-columns:1fr 1.4fr; }.inspect-scope { grid-column:1/-1; }.inspect-scope p { margin-top:6px; }
}
@media(max-width:680px) {
    .inspect-summary { grid-template-columns:minmax(0,1fr); }.inspect-head .secondary { padding:7px 10px; }
    .issue-body { padding:8px 0; }.issue-body dl { grid-template-columns:1fr; gap:2px; }.issue-body dt:not(:first-child) { margin-top:10px; }
}

/* Vault and item editors */
@media(min-width:901px){
    .top { height:clamp(72px,4vw,100px); }
    .workspace { height:calc(100dvh - clamp(72px,4vw,100px)); }
    .searchbox { width:40vw; }
    .top .searchform { min-height:clamp(42px,2.2vw,55px); border-radius:14px; padding-left:18px; }
    .side { padding-right:clamp(12px,1vw,26px); }
    .middle { padding:clamp(18px,1.3vw,34px) clamp(12px,1vw,26px) 24px 0; }
    .detail { padding:clamp(20px,1.3vw,34px) clamp(22px,1.7vw,44px); }
    .detail .fieldrow { padding:clamp(14px,1vw,24px) 0; }
}
.sheet-title .grow { gap:12px; }
.side .entry.active,.middle .entry.active,.parent-tree [aria-selected=true] > .parent-row { font-weight:600; color:var(--accent-text); }
.side .entry.trash:hover,.parent-toggle:hover { background:var(--selected); }
.checkrow { border-radius:0 6px 6px 0; }
.checkrow:hover,.checkrow:has(> .entry.active) { background:var(--selected); color:var(--ink); }
.checkrow:has(> .entry.active) { box-shadow:inset 3px 0 var(--brand); }
.checkrow > .entry:is(:hover,.active) { background:transparent; border-left-color:transparent; }
.checkrow > .entry.active .glyph { color:inherit; }
.vault-tree [data-act=toggle] .ico { width:28px; height:28px; padding:5px; border-radius:6px; }
.vault-tree [data-act=toggle]:is(:hover,:focus-visible) { background:transparent; }
.vault-tree [data-act=toggle]:is(:hover,:focus-visible) .ico { background:var(--brand); color:var(--on-brand); }
.vault-tree [data-act=toggle] use { transform-origin:50% 50%; }
.vault-tree [data-act=toggle][aria-expanded=true] use { transform:rotate(90deg); }
@media (prefers-reduced-motion:no-preference) {
    .folder-children { transition:grid-template-rows 180ms ease-out; }
    .vault-tree [data-act=toggle] use { transition:transform 180ms ease-out; }
    .checkrow, .vault-tree [data-act=toggle] .ico { transition:background-color 110ms ease-out, color 110ms ease-out; }
}
.tabs { border-color:#efefef; border-bottom-width:3px; margin:14px 0 0; }
.tabs button { margin-bottom:-3px; padding-block:13px; border-width:0 0 3px; }
.tabs button.active { color:var(--ink); }
.detail .fieldrow > small { color:var(--ink); }
.dock { padding:8px 12px; border-radius:40px; }
.help-page { max-width:750px; margin:0 auto; padding:32px 22px 60px; }
.help-page .brand { display:inline-flex; margin-bottom:30px; }
.help-page h2 { margin:24px 0 6px; }

dialog:has(.editorgrid) { width:min(95vw,1160px); max-height:94dvh; border-radius:3px; background:white; }
dialog:has(.editorgrid)::backdrop { background:#15171dbd; }
dialog:has(.editorgrid) form { display:flex; flex-direction:column; max-height:94dvh; }
dialog:has(.editorgrid) header,dialog:has(.editorgrid) footer { padding:clamp(14px,1.8vw,28px) clamp(16px,2.8vw,38px); }
dialog:has(.editorgrid) header { border:0; }
dialog:has(.editorgrid) .dialogbody { padding:0 clamp(16px,2.8vw,38px) 24px; max-height:none; min-height:0; }
dialog:has(.editorgrid) footer { gap:16px; }
dialog:has(.editorgrid) footer button { min-width:min(135px,40%); min-height:44px; border-radius:13px; }
dialog:has(.editorgrid) footer .primary { order:-1; }
.editorgrid,.editorgrid:has(.password-editor) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(18px,2.3vw,30px); }
.editorgrid > div { min-width:0; }
.editor-name { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:start; }
.editorgrid .field,.editorgrid .password-editor,.editorgrid .tags-editor { margin:0 0 15px; }
.editorgrid .field,.editorgrid .editor-label,.editorgrid .password-editor > label,.parent-caption { color:#6b6b72; }
.editorgrid .field,.editorgrid .password-editor > label,.editorgrid .editor-label { font-size:14px; }
.editorgrid .field > input,.editorgrid:has(.password-editor) > div > .field > input,.editorgrid .field textarea,.editorgrid .password-control,.appearance-trigger,.editorgrid .tag-box { border:1px solid var(--field-border, #d9d9d9); border-radius:14px; }
.editorgrid .field input,.editorgrid .password-control,.appearance-trigger { min-height:clamp(43px,3.8vw,55px); padding-inline:16px; }
.editorgrid .field input,.editorgrid .field textarea { margin-top:1px; }
.editorgrid .field textarea { min-height:102px; padding:12px 16px; }
.editorgrid .password-control:focus-within { border-color:var(--brand); }
.editorgrid .parent-picker { padding:0; }
.editorgrid .parent-tree { background:var(--side); color:var(--on-side); max-height:min(56dvh,548px); }
.parent-row,.parent-toggle { color:inherit; }
.parent-row { min-height:clamp(44px,3.8vw,64px); }
.editorgrid .tag-box { min-height:52px; padding:8px 10px; }
.edit-tag,.tag-draft,.extra-actions button { background:var(--side); color:var(--on-side); }
.edit-tag,.tag-draft { border-radius:9px; }
.tag-draft > input[type=text] { position:absolute; inset:0; height:100%; color:inherit; caret-color:currentColor; }
.tag-draft { position:relative; min-width:28px; }
.tag-draft:focus-within { box-shadow:none; }
.editorgrid .tag-add { background:var(--mid); color:var(--on-mid); }
.appearance { position:relative; }
.appearance .editor-label { margin-bottom:6px; }
.appearance-trigger { display:grid; place-items:center; width:clamp(43px,3.8vw,55px); background:white; padding:0; }
.order-grip {
    width:28px; min-height:36px; flex:none; display:grid; place-items:center;
    padding:0; margin-left:4px; color:var(--muted); cursor:grab; touch-action:none;
}
.order-grip::before {
    content:""; width:10px; height:16px;
    background:radial-gradient(circle,currentColor 1.4px,transparent 1.6px) 0 0 / 5px 5px;
}
.order-grip:hover,.order-grip:focus-visible { color:var(--accent-text); background:var(--selected); border-radius:6px; }
.order-grip:active { cursor:grabbing; }
.checkrow[data-layout-id] { position:relative; user-select:none; }
.checkrow[data-drop=before]::after,.checkrow[data-drop=after]::after {
    content:""; position:absolute; inset-inline:3px; height:3px; pointer-events:none; background:var(--brand); border-radius:3px;
}
.checkrow[data-drop=before]::after { top:0; }
.checkrow[data-drop=after]::after { bottom:0; }
[data-drop=inside],[data-layout-root][data-drop=root] { background:var(--selected); outline:2px solid var(--brand); outline-offset:-2px; border-radius:6px; }
.order-instructions,.order-root { font-size:13px; color:var(--muted); margin:5px 10px 12px 14px; }
@media(min-width:681px){ .middle .order-instructions { display:none; } }
.order-instructions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.order-root { padding:8px 12px; border:1px dashed var(--muted); border-radius:7px; }
.layout-done { display:inline-flex; align-items:center; gap:5px; background:var(--selected); color:var(--accent-text); border-radius:20px; padding:6px 12px; font-weight:600; }
.appearance-panel { position:absolute; z-index:4; inset:calc(100% + 4px) 0 auto auto; width:min(286px,76vw); padding:12px 14px; border:1px solid var(--line); background:white; border-radius:12px; box-shadow:0 8px 26px #23242829; }
.appearance-panel .item-palette { margin:0; }
.appearance-panel .icon-palette { margin-top:10px; }
.editorgrid .appearance-trigger[aria-expanded=true] { border-color:var(--brand); }
@media(max-width:680px){
    .editorgrid,.editorgrid:has(.password-editor){ grid-template-columns:minmax(0,1fr); gap:8px; }
    .record-location { grid-row:auto; }.editorgrid .parent-tree { max-height:180px; }
    dialog:has(.editorgrid) { width:96vw; }
}

/* The name is drawn on a monospace grid, with an asterisk inside the lowercase о. */
.wordmark { display:block; width:clamp(112px,10.6vw,158px); height:auto; flex:none; overflow:visible; }
.wordmark-star { fill:var(--brand); }
.authbox .wordmark { width:188px; margin-bottom:12px; }
.help-page .wordmark { width:145px; }
@media(max-width:680px){ .top .wordmark { width:clamp(74px,20vw,108px); } }

.auth-password{margin:10px 0}
.auth-password>label{display:block;color:var(--muted);font-size:13px;margin:0 0 5px}
.auth-password>div{display:flex;align-items:center;border:1px solid var(--field-border, var(--line));border-radius:10px;background:white;padding-right:6px}
.auth-password>div:focus-within{border-color:var(--brand)}
.auth-password input{border:0;background:transparent;outline:0;box-shadow:none;width:100%;min-width:0}
.auth-password .iconbtn{flex:none;color:var(--muted)}
.authbox [data-back],.authbox [data-forgot],.authbox [data-resend]{display:block;margin:10px auto 0}

[data-act=favorite][aria-pressed=true],.favorite-marker{color:var(--brand)}
[data-act=favorite][aria-pressed=true] .ico,.favorite-marker .ico{fill:currentColor;stroke:currentColor}
[data-act=favorite][aria-pressed=true]{background:var(--selected)}
.favorite-marker{display:inline-flex;align-items:center}

select:not([multiple]) option:checked {background:var(--selected);color:var(--accent-text)}
@supports (appearance:base-select) {
    select:not([multiple]):not([size]),select:not([multiple]):not([size])::picker(select) {appearance:base-select}
    select:not([multiple]):not([size]) {align-items:center;gap:12px;cursor:pointer}
    select:disabled {cursor:default}
    select::picker-icon {
        content:"";width:7px;height:7px;flex:none;margin-inline:auto 4px;
        border:solid currentColor;border-width:0 1.5px 1.5px 0;
        color:var(--muted);transform:translateY(-2px) rotate(45deg);
    }
    select:open {--field-border:var(--brand)}
    select:open::picker-icon {color:var(--accent-text);transform:translateY(2px) rotate(225deg)}
    select::picker(select) {
        inline-size:anchor-size(width);max-inline-size:calc(100vw - 16px);max-block-size:min(320px,50dvh);
        margin-block:4px;padding:4px;overflow:auto;overscroll-behavior:contain;
        border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);
        box-shadow:0 6px 20px #20233116;font:inherit;
    }
    select:not([multiple]):not([size]) option {
        display:flex;align-items:center;gap:12px;padding:9px 12px;min-height:36px;
        border:0;border-radius:8px;background:white;color:var(--ink);font:inherit;
        white-space:normal;overflow-wrap:anywhere;cursor:pointer;
    }
    select:not([multiple]):not([size]) option:checked,
    select:not([multiple]):not([size]) option:is(:hover,:focus-visible) {
        background:var(--selected);color:var(--accent-text);
    }
    select option:focus-visible {outline:1px solid var(--brand);outline-offset:-1px}
    select option::checkmark {order:1;margin-inline-start:auto;color:var(--accent-text)}
    select option:disabled {opacity:.55;cursor:default}
}

/* Highlight the existing frame, including controls whose input sits inside a shared frame. */
input:not([type=checkbox],[type=radio],[type=range]):focus,textarea:focus,select:focus,
:is(.password-control,.auth-password>div,.searchform,.tag-box,.file-control,.group-search):focus-within {
    --field-border:var(--brand);
    outline:none;
    box-shadow:none;
}
.side select:focus-visible {outline:1px solid var(--brand);outline-offset:-1px}
@media (forced-colors:active) {
    input:not([type=checkbox],[type=radio],[type=range]):focus,textarea:focus,select:focus,
    :is(.password-control,.auth-password>div,.searchform,.tag-box,.file-control,.group-search):focus-within {
        --field-border:Highlight;
    }
}
