.vh-context-help { position:relative; flex:none; color:var(--ink); }
.vh-context-help > summary {
    box-sizing:border-box; display:grid; place-items:center; width:44px; height:44px;
    list-style:none; cursor:pointer; border:1px solid var(--line); border-radius:50%;
    background:var(--surface); color:var(--ink); font-size:1.2rem; font-weight:700;
}
.vh-context-help > summary::-webkit-details-marker { display:none; }
.vh-context-help > ul {
    position:absolute; z-index:20; inset-inline-end:0; top:100%; width:min(17rem, 62vw);
    margin:.4rem 0 0; padding:.35rem; list-style:none; border:1px solid var(--line);
    border-radius:.8rem; background:var(--surface); box-shadow:0 .5rem 1.6rem #0003;
}
.vh-context-help a { display:block; padding:.6rem .65rem; border-radius:.45rem; color:var(--ink); }
.vh-context-help a:hover, .vh-context-help a:focus-visible { background:var(--elevated); }
.vh-modal-tools { display:flex; align-items:center; gap:.4rem; flex:none; }
@media(max-width:680px) {
    .topbar .vh-context-help > ul { inset-inline-start:0; inset-inline-end:auto; }
}

.vh-memo-filter { position:relative; color:var(--ink); }
.vh-memo-filter > summary {
    box-sizing:border-box; display:grid; place-items:center; width:44px; height:44px;
    list-style:none; cursor:pointer; border:1px solid var(--line); border-radius:50%;
    background:var(--surface); color:var(--ink);
}
.vh-memo-filter > summary::-webkit-details-marker { display:none; }
.vh-memo-filter > summary.is-filtered {
    border-color:var(--vh-accent); background:var(--vh-accent); color:var(--vh-accent-ink);
}
.vh-memo-filter > .vh-memo-filter-panel {
    position:absolute; z-index:21; inset-inline-end:0; top:100%; box-sizing:border-box;
    width:min(16rem, 68vw); min-inline-size:0; margin:.4rem 0 0; padding:.2rem .85rem .5rem;
    border:1px solid var(--line); border-radius:.8rem;
    background:var(--surface); box-shadow:0 .5rem 1.6rem #0003;
}
.vh-memo-filter:not([open]) > .vh-memo-filter-panel { display:none; }
.vh-memo-filter-panel fieldset { min-width:0; border:0; padding:0; margin:0; }
.vh-memo-filter legend { font-weight:600; padding:0; margin:.3rem 0 .15rem; }
.vh-memo-filter .vh-switch { gap:.6rem; overflow-wrap:anywhere; }
.vh-memo-filter .vh-switch + .vh-switch { border-top:1px solid var(--line); }
.topbar #vh-page-tools { flex:none; }
@media(max-width:860px) {
    .topbar .vh-memo-filter > .vh-memo-filter-panel { inset-inline-start:0; inset-inline-end:auto; }
}
