/* Consistent smaller dialogs, using the app's existing paired theme colours. */
html:root :is(#goalEditor,#sanctuaryPersonalSearch) .sheet-head{display:flex;align-items:center;gap:12px;margin-bottom:20px}
html:root :is(#goalEditor,#sanctuaryPersonalSearch) .sheet-head>div,
html:root :is(#goalEditor,#sanctuaryPersonalSearch) .sheet-head h2{flex:1;min-width:0}
html:root :is(#goalEditor,#sanctuaryPersonalSearch) .sheet-head h2{margin:0;overflow-wrap:anywhere}
html:root :is(#goalEditor,#sanctuaryPersonalSearch) :is(.close,.tool),
html:root #goalSave{background:var(--journal-button);color:var(--journal-button-ink);-webkit-text-fill-color:currentColor;border:1px solid var(--line)}
html:root :is(#goalEditor,#sanctuaryPersonalSearch) .close{flex:none;width:44px;min-height:44px;padding:0;display:grid;place-items:center}
html:root #goalSave{min-height:48px;margin-top:16px}
html:root :is(#goalEditor,#sanctuaryPersonalSearch) :is(input,select){color:var(--ink);background:var(--control);-webkit-text-fill-color:currentColor}
html:root #sanctuaryPersonalSearch input::placeholder{color:var(--ink);opacity:.72;-webkit-text-fill-color:currentColor}
html:root #uxSearchOptions{margin:14px 0;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}
html:root #uxSearchOptions>summary{color:var(--ink);min-height:24px;cursor:pointer;font-weight:650}
html:root #uxSearchFilterSummary{font-weight:400}
html:root #uxSearchOptions[open]>summary{margin-bottom:14px}
html:root #uxSearchCount{color:var(--ink);line-height:1.5}
html:root #uxSearchResults .ux-search-result{min-width:0;text-align:left}
html:root #uxSearchResults .ux-search-result b{overflow-wrap:anywhere}
html:root #goalSaveStatus{border-inline-start:3px solid var(--ink);padding:10px 12px;background:var(--surface-soft);color:var(--ink);line-height:1.5}
html:root #goalEditor [aria-invalid=true]{outline:2px solid var(--ink);outline-offset:2px}
html:root #circleProjects button:disabled{opacity:1;color:var(--ink);background:var(--surface-soft);cursor:wait}
