.tm-finder-launch, .tm-finder {
    --tf-red: #c81024;
    --tf-ink: #282830;
    --tf-muted: #565760;
    --tf-line: #dcdddf;
    --tf-light: #f5f5f6;
    font: 400 16px/1.45 "Toyota Type", Arial, sans-serif;
}
body a.tm-finder-launch {
    position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 1000; isolation: isolate;
    display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 11px 18px 11px 14px;
    background: var(--tf-red); color: #fff; border-radius: 999px; box-shadow: 0 6px 22px rgb(0 0 0 / 24%);
    text-decoration: none; font-weight: 700;
}
body a.tm-finder-launch:is(:hover,:focus-visible) { background: #a90c1e; color: #fff; }
.tm-finder-launch svg, .tm-finder svg { width: 23px; height: 23px; flex-shrink: 0; }
.tm-finder {
    position: fixed; inset: 0; width: min(1100px, calc(100% - 56px)); max-width: none;
    height: min(750px, calc(100dvh - 60px)); max-height: none;
    margin: auto; padding: 0; overflow: hidden; background: #fff;
    color: var(--tf-ink); border: 0; border-radius: 19px; box-shadow: 0 18px 70px rgb(0 0 0 / 27%);
}
html:has(.tm-finder[open]) { overflow: hidden; }
.tm-finder::backdrop { background: rgb(17 17 22 / 70%); backdrop-filter: blur(3px); }
.tm-finder[open] { animation: tm-finder-enter .22s ease-out both; }
.tm-finder :where(*, *::before, *::after) { box-sizing: border-box; }
.tm-finder [hidden] { display: none !important; }
.tm-finder :is(button, a):focus-visible, .tm-finder-launch:focus-visible { outline: 2px solid var(--tf-red); outline-offset: 4px; }
.tm-finder-layout { display: grid; grid-template-columns: minmax(245px, 30%) minmax(0, 1fr); height: 100%; }
.tm-finder-guide {
    padding: clamp(25px,4vw,48px); overflow-y: auto; background:
        linear-gradient(180deg, #202028 22%, rgb(32 32 40 / 97%) 49%, rgb(32 32 40 / 20%) 100%),
        #202028 url("home/fleet.jpg") 64% bottom / auto 58% no-repeat;
    color: #fff;
}
.tm-finder-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.tm-finder-brand img { filter: brightness(0) invert(1); }
.tm-finder-guide h2 {
    margin: 35px 0 28px; color: #fff; font: 700 clamp(33px,3.6vw,49px)/1.03 "Toyota Type", Arial, sans-serif;
    letter-spacing: -.04em;
}
.tm-finder-guide h2::after { content: ""; display: block; width: 45px; height: 3px; background: #ff2b41; margin-top: 19px; }
.tm-finder-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tm-finder-steps button {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px;
    padding: 3px; border: 0; border-radius: 0; background: transparent;
    color: #f2f2f3; font: inherit; text-align: left;
}
.tm-finder-steps button:disabled { color: #c5c5c9; cursor: default; opacity: 1; }
.tm-finder-steps button:not(:disabled):hover { color: #ffadba; background: transparent; }
.tm-finder-step-index {
    display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto;
    border-radius: 50%; border: 1px solid #b9b9bd; font-size: 12px;
}
.tm-finder-steps [aria-current="step"] { font-weight: 700; color: #fff; }
.tm-finder-steps [aria-current="step"] .tm-finder-step-index { background: var(--tf-red); border-color: var(--tf-red); }
.tm-finder-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tm-finder-top { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(20px,4vw,44px) 10px; }
.tm-finder-progress { color: var(--tf-muted); font-size: 14px; font-weight: 700; }
.tm-finder .tm-finder-close {
    display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
    color: var(--tf-ink); background: var(--tf-light); border: 1px solid var(--tf-line); border-radius: 50%;
    font: 400 25px/1 Arial, sans-serif;
}
.tm-finder .tm-finder-close:hover { background: #e7e7e9; color: var(--tf-ink); }
.tm-finder progress { display: block; flex: 0 0 3px; width: 100%; height: 3px; border: 0; appearance: none; background: #e8e8eb; color: var(--tf-red); }
.tm-finder progress::-webkit-progress-bar { background: #e8e8eb; }
.tm-finder progress::-webkit-progress-value { background: var(--tf-red); }
.tm-finder progress::-moz-progress-bar { background: var(--tf-red); }
.tm-finder-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px,4vw,44px); }
.tm-finder fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tm-finder :is(legend, .tm-finder-results h3) {
    padding: 0; margin: 0 0 21px; color: var(--tf-ink);
    font: 700 clamp(26px,3.15vw,39px)/1.13 "Toyota Type", Arial, sans-serif;
    letter-spacing: -.036em; max-width: 23ch;
}
.tm-finder-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.tm-finder [data-finder-panel="0"] .tm-finder-options { grid-template-columns: 1fr; }
.tm-finder-option {
    position: relative; display: grid; grid-template-columns: 23px minmax(0,1fr) 17px; align-items: center;
    min-height: 68px; padding: 11px 13px; gap: 12px; border: 1px solid var(--tf-line);
    border-radius: 10px; color: var(--tf-ink); background: #fff; cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.tm-finder-option:hover { border-color: #83838c; background: var(--tf-light); }
.tm-finder-option:has(input:checked) { border-color: var(--tf-red); background: #fff5f6; }
.tm-finder-option:has(input:focus-visible) { outline: 2px solid var(--tf-ink); outline-offset: 2px; }
.tm-finder-option:has(input:checked) svg { color: var(--tf-red); }
.tm-finder-option input { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; padding: 0; opacity: 0; }
.tm-finder-option-copy { min-width: 0; }
.tm-finder-option-copy strong { display: block; line-height: 1.23; }
.tm-finder-option-copy small { display: block; margin-top: 4px; color: var(--tf-muted); font-size: 13px; line-height: 1.3; }
.tm-finder-radio { width: 17px; height: 17px; border: 1px solid #8b8c92; border-radius: 50%; display: grid; place-items: center; }
.tm-finder-option:has(input:checked) .tm-finder-radio { border-color: var(--tf-red); }
.tm-finder-option:has(input:checked) .tm-finder-radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tf-red); }
.tm-finder-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 23px; }
.tm-finder [data-finder-next] { margin-left: auto; }
.tm-finder :is(.tm-finder-primary,.tm-finder-secondary,.tm-finder-reset) {
    min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 7px;
    padding: 9px 14px; border: 1px solid transparent; border-radius: 7px;
    font: 700 15px/1.3 "Toyota Type",Arial,sans-serif; text-align: center; white-space: normal;
}
.tm-finder .tm-finder-primary { color: #fff; background: var(--tf-red); }
.tm-finder .tm-finder-primary:hover { color: #fff; background: #a90c1e; }
.tm-finder .tm-finder-secondary { color: var(--tf-ink); background: #fff; border-color: #8d8e94; }
.tm-finder .tm-finder-secondary:hover { color: var(--tf-ink); background: var(--tf-light); }
.tm-finder .tm-finder-reset { color: var(--tf-muted); background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.tm-finder .tm-finder-reset:hover { color: var(--tf-ink); background: var(--tf-light); }
.tm-finder-criteria { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-finder-criteria span { border-radius: 999px; padding: 3px 9px; color: #41414a; background: #eeeef1; font-size: 13px; }
.tm-finder-status { margin: 11px 0 14px; color: var(--tf-muted); }
.tm-finder-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.tm-finder-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--tf-line); border-radius: 10px; overflow: hidden; }
.tm-finder-photo { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; background: var(--tf-light); }
.tm-finder-photo img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.tm-finder-card-model img { object-fit: contain; padding: 7px; background: var(--tf-light); }
.tm-finder-card-content { display: flex; flex-direction: column; flex: 1; padding: 12px 14px; }
.tm-finder-card-type { align-self: start; color: #751326; background: #fff0f2; border-radius: 4px; padding: 2px 5px; font-size: 11px; font-weight: 700; }
.tm-finder-card h4 { color: var(--tf-ink); margin: 7px 0 3px; font: 700 20px/1.18 "Toyota Type", Arial, sans-serif; }
.tm-finder-card p { margin: 1px 0 6px; color: var(--tf-muted); font-size: 13px; }
.tm-finder-card .tm-finder-price { color: var(--tf-ink); margin: auto 0 5px; padding-top: 5px; }
.tm-finder a.tm-finder-card-link { color: #a80b1e; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.tm-finder a.tm-finder-card-link:hover { color: var(--tf-ink); }
.tm-finder-result-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 17px; }
@keyframes tm-finder-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (max-height: 740px) and (min-width: 701px) {
    .tm-finder-guide { padding-top: 26px; }
    .tm-finder-guide h2 { margin-top: 22px; }
}
@media (max-width: 700px) {
    body a.tm-finder-launch { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); min-height: 46px; padding: 8px 12px; font-size: 14px; }
    .tm-finder { width: 100%; height: 100dvh; border-radius: 0; }
    .tm-finder-layout { display: flex; flex-direction: column; }
    .tm-finder-guide { padding: max(12px,env(safe-area-inset-top)) 16px 13px; background: #202028; }
    .tm-finder-brand { font-size: 13px; }
    .tm-finder-brand img { height: 19px; width: 25px; }
    .tm-finder-guide h2 { max-width: none; font-size: 25px; margin: 7px 0 0; }
    .tm-finder-guide h2::after { display: none; }
    .tm-finder-steps { display: none; }
    .tm-finder-main { flex: 1; }
    .tm-finder-top { padding: 5px 16px 4px; }
    .tm-finder-body { padding: 17px 16px max(17px,env(safe-area-inset-bottom)); }
    .tm-finder :is(legend,.tm-finder-results h3) { margin-bottom: 15px; }
    .tm-finder-option { min-height: 59px; }
}
@media (max-width: 410px) {
    .tm-finder-option { grid-template-columns: minmax(0,1fr) 16px; gap: 6px; padding: 9px; font-size: 14px; }
    .tm-finder-option svg { display: none; }
    .tm-finder [data-finder-panel="0"] .tm-finder-option { grid-template-columns: 23px minmax(0,1fr) 16px; }
    .tm-finder [data-finder-panel="0"] .tm-finder-option svg { display: block; }
    .tm-finder-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .tm-finder[open] { animation: none; }
    .tm-finder-option { transition: none; }
}
