/* The compact dialog follows the SolarImHaus hierarchy, using Schlafjuwel's palette. */
.finder-dialog {
  --finder-rule: #e5dfd5;
  --finder-soft: #f8f5ef;
  --finder-dark: #14263a;
  --finder-accent: #a84413;
  width: min(880px, calc(100% - 30px));
  height: fit-content;
  max-height: calc(100dvh - 30px);
  border: 1px solid #e5ddd0;
  border-radius: 22px;
  background: #fffefa;
  box-shadow: 0 30px 90px #07152260;
}
.finder-dialog::backdrop { background: #0b1c2fa3; backdrop-filter: blur(6px); }
.finder-shell { height: auto; max-height: calc(100dvh - 32px); }
.finder-head {
  display: flex;
  gap: 12px;
  min-height: 64px;
  justify-content: flex-start;
  padding: 9px clamp(14px,3.5vw,32px);
  background: #fffefa;
  color: var(--finder-dark);
  border-bottom: 1px solid var(--finder-rule);
  text-align: left;
}
.finder-brand { display: flex; align-items: center; gap: .55rem; min-width: 0; margin-inline-end: auto; }
.finder-brand .finder-emblem { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: #13283c; }
.finder-head strong { line-height: 1; font-size: 1.15rem; letter-spacing: -.04em; }
.finder-tag { border-radius: 100px; padding: .26rem .62rem; background: #f4ebda; color: #684b27; font-size: .73rem; font-weight: 750; white-space: nowrap; }
.finder-head .finder-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid var(--finder-rule);
  background: var(--finder-soft);
  color: var(--finder-dark);
}
.finder-head .finder-close:hover { background: #ece6dd; }
.finder-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.finder-progress { background: #fffefa; border: 0; padding: .85rem clamp(15px,4vw,36px) 0; gap: 5px; }
.finder-progress span { color: #654b2d; font-size: .7rem; letter-spacing: .12em; }
.finder-progress progress { height: 4px; }
.finder-workspace { display: block; scrollbar-gutter: stable; }
.finder-stage { padding: clamp(14px,3.4vw,30px) clamp(15px,4vw,36px) 16px; }
.finder-question { font-family: inherit; line-height: 1.1; font-size: clamp(1.53rem,4vw,2.4rem); letter-spacing: -.045em; margin-bottom: .5rem; overflow-wrap: anywhere; }
.finder-hint { color: #495b64; margin-bottom: .95rem; }
.finder-context-note { margin: -3px 0 .62rem; padding: .34rem .56rem; color: #634a2e; background: #f8f1e4; word-break: normal; overflow-wrap: anywhere; }
.finder-options { gap: 8px; }
.finder-option {
  justify-content: space-between;
  min-height: 53px;
  padding: .64rem .75rem;
  border-color: #e3ded4;
  border-radius: 12px;
  background: var(--finder-soft);
}
.finder-option:hover, .finder-option:has(input:checked) { background: #f6ebd6; border-color: #ab8653; box-shadow: none; }
.finder-option-marker { width: 26px; height: 26px; border: 0; background: #f0e7d6; color: #674a25; font-size: 1rem; font-weight: 760; }
.finder-option-copy { flex: 1 1 auto; }
.finder-option-copy strong { font-size: .93rem; }
.finder-recap { display: block; padding: 0; margin: 0 clamp(15px,4vw,36px) .7rem; background: transparent; border: 0; border-top: 1px solid var(--finder-rule); }
.finder-recap[hidden] { display: none; }
.finder-recap summary { cursor: pointer; color: #3f4d58; font-size: .82rem; font-weight: 720; padding: .55rem 0 .18rem; }
.finder-recap-row { display: grid; align-items: baseline; grid-template-columns: 1fr 2fr; gap: 8px; }
.finder-edit-answer { text-align: left; font: inherit; color: #25435a; border: 0; padding: .12rem 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.finder-foot { border-color: var(--finder-rule); padding: .55rem clamp(14px,3.5vw,32px); background: #fffefa; }
.finder-foot .button { min-height: 44px; border-radius: 9px; }
.finder-private { color: #56636a; font-size: .8rem; }
.finder-foot [data-back] { color: #32475a; border-color: transparent; background: transparent; padding-inline: .35rem; }
.finder-foot [data-back]:hover { text-decoration: underline; }
.finder-foot [data-next]:disabled { visibility: hidden; }
.finder-dialog.is-loading [data-next] { visibility: visible; }
.finder-dialog.has-result .finder-stage { padding-top: clamp(13px,2.6vw,26px); }
.finder-result-kicker { display: flex; align-items: center; gap: .5rem; color: #74542d; margin-bottom: .55rem; }
.finder-result-kicker::before { content: '✓'; width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 50%; background: #34485d; }
.finder-product { padding: .8rem; border-radius: 14px; border-color: #e3d9c9; background: #fffefa; }
.finder-product .sponsored-label { background: #f4ebda; }
.finder-product .button-offer { background: var(--finder-accent); color: #fff; border-radius: 9px; }
.finder-product .button-offer:hover { background: #86330c; }
.finder-match { color: #394e5f; }

.finder-shortcuts { margin-top: 1.3rem; }
.finder-shortcuts p { color: var(--muted); margin: 0 0 .55rem; }
.finder-shortcut-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.button.finder-shortcut { min-height: 44px; max-width: 100%; justify-content: flex-start; text-align: left; white-space: normal; border: 1px solid #d7c6ac; background: #f8f3ea; color: #23354a; }
.button.finder-shortcut:hover { background: #eee2cc; }
.decision-evidence { margin: 1.4rem 0 0; max-width: 74ch; font-size: .95rem; }
.decision-evidence p { color: var(--muted); }

@media (max-width: 650px) {
  .finder-dialog { width: calc(100% - 14px); max-height: calc(100dvh - 14px); border-radius: 16px; }
  .finder-shell { max-height: calc(100dvh - 16px); }
  .finder-head { min-height: 58px; gap: .45rem; }
  .finder-head strong { font-size: 1rem; }
  .finder-options { grid-template-columns: 1fr; }
  .finder-option { min-height: 48px; padding-block: .5rem; }
  .finder-option-copy small { font-size: .76rem; }
  .finder-foot { gap: .25rem; }
  .finder-private { display: none; }
  .finder-progress { padding-top: .6rem; }
  .finder-product { padding: .58rem; }
  .finder-workspace { scrollbar-gutter: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .finder-dialog *, .finder-dialog::backdrop { transition-duration: 0s; scroll-behavior: auto; }
}
