/* 2.87.0: Settings home (search, recent, the setup card), the setup checklist and the templates gallery (settings-home.js) */
.sh-find { position: relative; display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 4px 0 14px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.sh-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.sh-find > .ico { color: var(--muted); flex: none; }
.sh-find .sh-search { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 8px 0; font-size: 1.05rem; outline: none; }
.sh-kbd { flex: none; font: inherit; font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.sh-results { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 30; list-style: none; margin: 0; padding: 4px; max-height: 60vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); }
.sh-hit { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.sh-hit[aria-selected="true"], .sh-hit:hover { background: var(--sunk); }
.sh-hit[aria-selected="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.sh-hit-ico { color: var(--accent); flex: none; padding-top: 2px; }
.sh-hit-text { display: flex; flex-direction: column; min-width: 0; }
.sh-none { padding: 10px; }
.sh-recent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 14px; }
.sh-chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--panel); color: inherit; border-radius: 999px; padding: 3px 12px; font-size: .85em; cursor: pointer; }
.sh-chip:hover, .sh-chip:focus-visible { border-color: var(--accent); color: var(--accent); }
.sh-setup-card { margin-bottom: 16px; }
.sh-setup-card.compact { margin: 12px 0; }
.sh-setup-head { display: flex; gap: 10px; align-items: flex-start; }
.sh-setup-head h2 { margin: 0; }
.sh-setup-head .grow, .sh-step .grow { flex: 1; min-width: 0; }
.sh-setup-ico { color: var(--accent); padding-top: 2px; }
.sh-bar { height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; margin: 10px 0; flex: 1; }
.sh-bar > i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .4s ease; }
.sh-next { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.sh-next li { display: flex; flex-direction: column; }
.sh-progress { display: flex; gap: 10px; align-items: center; }
.sh-steps { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.sh-step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.sh-step p { margin: 2px 0 0; }
.sh-step-ico { color: var(--muted); padding-top: 2px; }
.sh-auto .sh-step-ico, .sh-done .sh-step-ico { color: var(--ok); }
.sh-step-act { gap: 6px; flex-wrap: wrap; }
.sh-pill { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink); }
.sh-pill.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); color: var(--ok); }
.sh-pill.warn { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.sh-pill.muted { color: var(--muted); }
.sh-tpl-kinds { margin: 8px 0 12px; flex-wrap: wrap; }
.sh-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sh-tpl { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.sh-tpl h3 { margin: 0; font-size: 1rem; }
.sh-tpl p { margin: 0; flex: 1; }
.sh-tpl-top { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-tpl-body { white-space: pre-wrap; font: inherit; background: var(--sunk); border-radius: 8px; padding: 10px; margin: 6px 0; }
/* the label found by a search: marked for a moment */
.sh-flash { animation: sh-flash 2.4s ease-out 1; border-radius: 8px; }
@keyframes sh-flash { 0%, 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent); background-color: color-mix(in srgb, var(--accent) 12%, transparent); } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .sh-flash { animation: none; outline: 3px solid var(--accent); outline-offset: 2px; }
  .sh-bar > i { transition: none; }
}
@media (max-width: 600px) { .sh-step-act { width: 100%; } }
.sh-link { background: none; border: 0; box-shadow: none; color: var(--accent); cursor: pointer; padding: 4px 6px; text-decoration: underline; text-underline-offset: 2px; }
