.page-header{position:sticky;top:0;z-index:10}.profile{top:110px}
textarea,select{font:inherit;display:block;width:100%;padding:.7rem .85rem;border:1px solid #9da99f;border-radius:10px;background:#fff;color:var(--ink);min-height:48px}
textarea{resize:vertical;min-height:150px}select{max-width:100%}fieldset{border:0;padding:0;margin:.5rem 0 1rem;min-width:0}
.check-row{display:flex;align-items:center;gap:.7rem;min-height:46px;margin:.3rem 0;padding:.3rem .5rem;border-radius:8px;background:#edf0e7;font-weight:500;overflow-wrap:anywhere}
.check-row input{display:inline-block;flex:0 0 auto;width:1.25rem;height:1.25rem;min-height:0;padding:0;margin:0;accent-color:var(--green)}
.editor-label{margin-top:1.1rem;font-weight:700}.place>.actions{margin-top:.8rem}.place>.actions button{font-size:.8rem}
.editor-top{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:.7rem;background:var(--panel);padding:.3rem 0 .5rem}.editor-top h2{min-width:0}.editor-top button{flex-shrink:0;font-size:.8rem}
#library-actions{margin:1rem 0 1.2rem}#library-sync>h3{margin-top:1rem}#library-sync>.actions{margin:1rem 0}
details{padding:.75rem 0;border-bottom:1px solid var(--line)}summary{cursor:pointer;font-weight:650;min-height:40px;overflow-wrap:anywhere}
.conflict-value{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:#edf0e7;border-radius:8px;padding:.8rem;font:inherit;font-size:.85rem}
.merge-counts{display:flex;gap:1rem;flex-wrap:wrap}.merge-counts p{padding:.8rem 1rem;border:1px solid var(--line);border-radius:10px;flex:1 1 220px}
.merge-difference{border-top:1px solid var(--line);padding:1rem 0;overflow-wrap:anywhere}.merge-variant{padding:.8rem 1rem;margin:.6rem 0;background:#f0f2e9;border-radius:10px}.merge-variant button[aria-pressed=true]{background:var(--green);color:#fff}
#merge>.actions{background:var(--panel);padding:.8rem 0;border-top:1px solid var(--line)}#merge-history>button{position:sticky;top:100px;z-index:2}
@media(max-width:760px){dialog{padding:1.15rem}.place>.actions button{flex:1 1 180px}#library-actions button{flex:1 1 180px}}
