html.robot-quiz-open { overflow: hidden; }
.robot-quiz { width: min(880px, calc(100% - 32px)); max-width: none; height: min(740px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-top: 4px solid var(--signal); border-radius: 4px; background: var(--white); color: var(--ink); overflow: hidden; box-shadow: 0 24px 100px #0004; }
.robot-quiz[open] { display: flex; flex-direction: column; }
.robot-quiz [hidden] { display: none !important; }
.robot-quiz::backdrop { background: #151917a8; backdrop-filter: blur(5px); }
.robot-quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px; flex: 0 0 auto; }
.robot-quiz-head > img { width: 166px; height: 44px; object-fit: contain; }
.robot-quiz-head > button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 26px; cursor: pointer; }
.robot-quiz-progress { height: 3px; flex: 0 0 auto; background: var(--paper); }
.robot-quiz-progress > span { display: block; height: 100%; background: var(--signal); transition: width .2s ease; }
.robot-quiz-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 30px 32px 24px; }
.robot-quiz-eyebrow { color: #5b635e; font-size: 14px; margin: 0 0 14px; }
.robot-quiz h2 { font: 500 clamp(26px, 3.2vw, 36px)/1.14 var(--display); letter-spacing: -.035em; margin: 0 0 12px; max-width: 680px; }
.robot-quiz h2:focus { outline: none; }
.robot-quiz-help { font-size: 16px; line-height: 1.5; color: #5b635e; margin: 0 0 26px; max-width: 660px; }
.robot-quiz-choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.robot-quiz-choice { position: relative; min-width: 0; display: flex; }
.robot-quiz-choice > label { flex: 1; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 16px; border: 1px solid #c8ceca; border-radius: 3px; cursor: pointer; background: #fff; font-size: 16px; line-height: 1.35; transition: border-color .15s, background .15s; }
.robot-quiz-choice > label:hover { border-color: var(--ink); }
.robot-quiz-choice > label:has(input:checked) { background: #fff9e4; border-color: #89702c; box-shadow: inset 0 0 0 1px #89702c; }
.robot-quiz-choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.robot-quiz-choice small { display: block; color: #62695f; font-size: 14px; margin-top: 4px; }
.robot-quiz-choice.is-raas > label { padding-right: 56px; }
.robot-quiz-choice .raas-info-button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; color: var(--ink); }
.robot-quiz-footer { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 18px 32px; background: var(--white); border-top: 1px solid var(--line); }
.robot-quiz-back { border: 0; background: transparent; padding: 12px 0; min-height: 44px; cursor: pointer; font-size: 16px; }
.robot-quiz-back:disabled { visibility: hidden; }
.robot-quiz-selection { margin-left: auto; font-size: 14px; color: #5b635e; }
.robot-quiz-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; min-width: 172px; padding: 14px 20px; border: 0; border-radius: 2px; background: var(--signal); color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.3; cursor: pointer; }
.robot-quiz-next:disabled { background: #e9ece8; color: #62695f; cursor: not-allowed; }
.robot-quiz :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.robot-quiz-field { display: grid; gap: 8px; font-size: 16px; margin: 0 0 18px; }
.robot-quiz-field input, .robot-quiz-field select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #b6bdb7; border-radius: 2px; padding: 11px 12px; background: white; color: var(--ink); font: inherit; }
.robot-quiz-phone { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 10px; }
.robot-quiz-phone-help { display: block; font-size: 14px; color: #62695f; line-height: 1.4; }
.robot-quiz-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; margin: 18px 0; }
.robot-quiz-consent input { flex: 0 0 auto; margin: 2px 0 0; width: 20px; height: 20px; accent-color: var(--ink); }
.robot-quiz-preview-note { background: var(--paper); border-left: 3px solid #8b938b; color: #4d554f; padding: 12px 16px; margin: 0 0 24px; font-size: 14px; line-height: 1.5; }
.robot-quiz-shortlist { display: grid; gap: 24px; }
.robot-quiz-result-group { display: grid; gap: 12px; }
.robot-quiz-result-group > h3 { margin: 0; font: 600 14px/1.35 var(--display); color: #5b635e; text-transform: uppercase; letter-spacing: .06em; }
.robot-quiz-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.robot-quiz-result { min-width: 0; display: grid; grid-template-columns: 112px minmax(0,1fr); min-height: 126px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s; }
.robot-quiz-result:hover { border-color: var(--ink); transform: translateY(-2px); }
.robot-quiz-result-image { display: grid; place-items: center; padding: 10px; background: #f4f5f2; }
.robot-quiz-result-image img { width: 100%; height: 100%; max-height: 104px; object-fit: contain; }
.robot-quiz-result-copy { min-width: 0; display: flex; flex-direction: column; padding: 14px; }
.robot-quiz-result-copy small { color: #62695f; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.robot-quiz-result-copy strong { margin-top: 6px; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.robot-quiz-result-copy > span { margin-top: auto; padding-top: 10px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.robot-quiz-date { margin: 20px 0 0; max-width: 360px; }
.robot-quiz-summary { margin: 18px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.robot-quiz-summary summary { padding: 16px 0; cursor: pointer; font-size: 16px; }
.robot-quiz-summary dl { margin: 0 0 20px; display: grid; gap: 16px; }
.robot-quiz-summary dt { color: #5b635e; font-size: 14px; margin-bottom: 4px; }
.robot-quiz-summary dd { margin: 0; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.robot-quiz-location { margin: 16px 0; color: #62695f; font-size: 14px; line-height: 1.5; }
.robot-quiz-location button { border: 0; padding: 4px 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.robot-quiz-finish-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; background: var(--signal); border-radius: 50%; font-size: 24px; }
@media (max-width: 600px) {
  .robot-quiz { width: calc(100% - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .robot-quiz-head { padding: 10px 18px; }
  .robot-quiz-head > img { width: 142px; height: 38px; }
  .robot-quiz-body { padding: 24px 18px; }
  .robot-quiz-choices { grid-template-columns: 1fr; }
  .robot-quiz-choice > label { min-height: 60px; }
  .robot-quiz-footer { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); gap: 12px; flex-wrap: wrap; }
  .robot-quiz-selection { font-size: 13px; }
  .robot-quiz-next { min-width: 148px; gap: 12px; }
  .robot-quiz.is-contact .robot-quiz-next { width: 100%; order: 3; }
  .robot-quiz-phone { grid-template-columns: 136px minmax(0,1fr); }
  .robot-quiz-phone select { padding: 11px 7px; }
  .robot-quiz-results { grid-template-columns: 1fr; }
  .robot-quiz-result { grid-template-columns: 96px minmax(0,1fr); }
}
@media (max-height: 540px) {
  .robot-quiz-head { padding-top: 6px; padding-bottom: 6px; }
  .robot-quiz-body { padding-top: 18px; }
  .robot-quiz-footer { padding-top: 10px; padding-bottom: 10px; }
}
