.hm-header{display:flex;align-items:center;gap:20px;padding:14px 24px;border-bottom:1px solid var(--line);flex-wrap:wrap}.hm-header label{margin:0 0 0 auto}.hm-header select{max-width:280px}.hm-shell{max-width:1500px;margin:auto;padding:24px}.hm-shell h1{font-size:1.8rem;margin:0 0 10px}.hm-shell h2{font-size:1.25rem}.hm-shell h3{font-size:1.05rem}.hm-shell p{max-width:75ch}.hm-tabs,.hm-tools{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:18px 0}.hm-tabs button[aria-current="page"]{border-color:var(--accent);color:var(--accent)}.hm-tools label{flex:1;min-width:170px;margin:0}.hm-columns{display:grid;grid-template-columns:minmax(260px, .8fr) minmax(400px, 1.5fr);gap:28px;align-items:start}.hm-list{max-height:68vh;overflow:auto;border-top:1px solid var(--line);padding:0;margin:0;list-style:none}.hm-list button{display:block;text-align:left;width:100%;padding:13px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;white-space:normal;background:transparent;overflow-wrap:anywhere}.hm-list button[aria-current="true"]{background:var(--raised);color:var(--accent)}.hm-list small{display:block;color:var(--muted);margin-bottom:4px}.hm-detail{min-width:0;border-top:1px solid var(--line);padding-top:16px}.hm-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:75ch;margin:18px 0}.hm-relations{padding-left:20px}.hm-relations li{margin:10px 0;overflow-wrap:anywhere}.hm-link{background:transparent;border:0;color:var(--accent);padding:2px;text-align:left;text-decoration:underline;text-underline-offset:3px;white-space:normal}.hm-editor{max-width:800px;border-top:1px solid var(--line);padding:20px 0;margin-top:20px}.hm-editor textarea{min-height:115px}.hm-editor select[multiple]{min-height:150px}.hm-record{padding:20px 0;border-top:1px solid var(--line)}.hm-record h2,.hm-record h3{margin-top:0}.hm-record details{margin:14px 0}.hm-status{font-size:.9rem;color:var(--muted);overflow-wrap:anywhere}.hm-warning{color:var(--amber)}.hm-feedback{min-height:24px;margin:8px 0}.hm-error{color:var(--danger)}.hm-empty{padding:24px 0;color:var(--muted)}.hm-shell input,.hm-shell select,.hm-shell textarea{max-width:100%}.hm-shell button{white-space:normal}.hm-shell summary{cursor:pointer}.hm-shell :focus-visible,.hm-header :focus-visible{outline:2px solid var(--accent);outline-offset:3px}.hm-shell :disabled{opacity:.55;cursor:not-allowed}.hm-shell a{text-underline-offset:3px}.hm-shell ::selection{background:var(--blue);color:#fff}.hm-shell textarea{caret-color:var(--accent)}.hm-shell .actions{flex-wrap:wrap}.hm-history{margin-top:20px}.hm-history article{border-top:1px solid var(--line);padding:14px 0}.hm-auth{max-width:650px;margin:8vh auto;padding:24px}
@media(max-width:850px){.hm-columns{grid-template-columns:1fr}.hm-list{max-height:35vh}.hm-shell{padding:18px}.hm-header{padding:14px 18px;gap:12px}.hm-header label{margin:0;width:100%}.hm-header select{max-width:100%;width:100%}.hm-tools{align-items:stretch}.hm-shell button,.hm-header a{min-height:44px}.hm-link{min-height:34px}.hm-detail{padding-top:18px}}

body:has(#memory-app){overflow:hidden}#memory-app{height:100dvh;display:flex;flex-direction:column;min-width:0}.hm-shell{flex:1;min-height:0;overflow:auto;width:100%;max-width:none;margin:0;padding:16px 20px;scrollbar-gutter:stable}.hm-shell h1{font-size:23px}.hm-shell>p{margin:6px 0}.hm-tabs,.hm-tools{margin:12px 0}.hm-columns{gap:20px}.hm-list,.hm-detail{max-height:calc(100dvh - 345px);overflow:auto;scrollbar-gutter:stable}.hm-search-help{margin:4px 0!important}.hm-shell .hm-feedback:empty{display:none}@container(max-width:900px){.hm-columns{grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr)}}@container(max-width:560px){.hm-columns{display:block}.hm-list{max-height:30vh}.hm-detail{max-height:none}.hm-shell{padding:12px}}

.hm-shell:has(.hm-columns){display:flex;flex-direction:column;overflow:hidden}.hm-shell:has(.hm-columns)>*{flex-shrink:0}.hm-shell:has(.hm-columns) .hm-columns{flex:1;min-height:140px;align-items:stretch}.hm-columns>div{display:flex;flex-direction:column;min-height:0}.hm-columns .hm-list{flex:1;min-height:0;max-height:none}.hm-columns .hm-detail{min-height:0;max-height:none;padding-top:8px}.hm-shell #memory-draft:empty{display:none}.hm-shell .hm-tools{margin:8px 0}.hm-shell .hm-status{margin:5px 0}.hm-shell .hm-tabs{margin:8px 0}@container(max-width:560px){.hm-shell:has(.hm-columns){display:block;overflow:auto}.hm-columns .hm-list{max-height:30vh}.hm-columns .hm-detail{overflow:visible}}

.hm-browse-options{display:flex;gap:14px;align-items:start;justify-content:space-between;margin:4px 0 8px}.hm-browse-options .check{margin:3px 0;font-size:12px;max-width:280px}.hm-browse-options details{padding:0;border:0;max-width:60%;font-size:12px}.hm-shell .hm-tabs{align-items:center}.hm-shell .hm-tabs a{font-size:12px}.hm-shell .hm-tabs button{padding:8px 12px;min-height:36px}@container(max-width:560px){.hm-browse-options{display:block}.hm-browse-options details{max-width:none}}
.hm-intro{display:flex;gap:16px;align-items:baseline;flex-wrap:wrap}.hm-intro h1{margin:0}.hm-intro p{margin:0;color:var(--muted);font-size:13px}.hm-shell .hm-tools label{font-size:12px}.hm-shell .hm-tools input,.hm-shell .hm-tools select{padding:8px 10px}.hm-shell .hm-tools button{min-height:36px;padding:8px 12px}.hm-browse-options summary{padding:4px 0}.hm-browse-options .check{max-width:360px}.hm-browse-options{align-items:center}
