/* Søg i alt */
.search-open { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 8px; }
.search-open .ui-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
dialog.search-dialog { margin: 10vh auto auto; padding: 0; border: 0; border-radius: 20px; width: min(640px, calc(100vw - 24px)); max-height: 76vh; background: var(--sheet-bg, var(--k-bg-ffffff)); color: var(--ink); box-shadow: 0 30px 90px rgba(20, 12, 30, .3); overflow: hidden; }
dialog.search-dialog::backdrop { background: rgba(18, 13, 28, .45); }
.sd-panel { display: flex; flex-direction: column; max-height: 76vh; }
.sd-bar { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.sd-bar .ui-icon { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.sd-bar input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.0625rem; outline: none; }
.sd-bar input::-webkit-search-cancel-button { display: none; }
.sd-close { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; font: inherit; font-size: .875rem; cursor: pointer; }
.sd-body { overflow-y: auto; padding: 6px 8px 12px; }
.sd-status { margin: 10px 12px; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.sd-suggest { border: 1px solid var(--line); background: var(--track, rgba(127, 120, 150, .1)); color: inherit; border-radius: 99px; padding: 2px 10px; font: inherit; font-size: .8125rem; cursor: pointer; }
.sd-results { list-style: none; margin: 0; padding: 0; }
.sd-group { margin: 12px 12px 4px; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sd-option { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.sd-option[aria-selected="true"], .sd-option:hover { background: var(--track, rgba(127, 120, 150, .12)); }
.sd-text { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.sd-text strong { font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-text small { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-text mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.sd-go { flex: none; color: var(--muted); opacity: 0; font-size: .875rem; }
.sd-option[aria-selected="true"] .sd-go { opacity: 1; }
.sd-option .point-avatar { flex: none; }
@media (max-width: 650px) {
  dialog.search-dialog { margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .sd-panel { height: 100%; max-height: none; }
  .sd-bar { padding-top: max(12px, env(safe-area-inset-top)); }
  .search-open span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* Det fundne lyser kort op, når man kommer derhen */
@media (prefers-reduced-motion: no-preference) {
  .search-hit { animation: search-hit 2s ease-out; border-radius: 12px; }
  @keyframes search-hit { 0%, 30% { box-shadow: 0 0 0 4px rgba(244, 185, 66, .75); background-color: rgba(255, 233, 168, .55); } 100% { box-shadow: 0 0 0 4px rgba(244, 185, 66, 0); background-color: transparent; } }
}
@media (prefers-reduced-motion: reduce) { .search-hit { outline: 3px solid #f4b942; outline-offset: 2px; border-radius: 12px; } }
