/* V18.61 — a quiet, search-first model picker. Scoped; no global shop redesign. */
.model-dialog--simple{width:min(1020px,calc(100vw - 64px));height:fit-content;max-height:min(820px,calc(100dvh - 64px));border:1px solid #e5e7eb;border-radius:24px;box-shadow:0 32px 100px #17202e38;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#181c22}
.model-dialog--simple::backdrop{background:rgb(24 32 45 / .42);backdrop-filter:blur(6px)}
.model-dialog--simple .model-dialog-head{padding:30px 32px 20px;gap:20px}
.model-dialog--simple .model-dialog-head h2{font-size:32px;line-height:1.2;font-weight:650;letter-spacing:-1px}
.model-dialog--simple .model-dialog-head p{font-size:17px;line-height:1.5;margin-top:8px;color:#68727f}
.model-dialog--simple .model-close{width:44px;height:44px;display:grid;place-items:center;background:#f1f3f5;color:#505b68;border-radius:50%}
.model-dialog--simple .model-close:hover{background:#e6e9ed;color:#151a21}
.model-dialog--simple svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.model-dialog--simple .model-close svg{width:18px;height:18px}
.model-dialog--simple .model-search-wrap{margin:0 32px 2px;min-height:58px;border-color:#d7dde5;border-radius:12px;background:#f8f9fb;box-shadow:none}
.model-dialog--simple .model-search-wrap:focus-within{background:#fff;border-color:#7399c9;box-shadow:0 0 0 3px #edf3fb}
.model-dialog--simple .model-search-wrap input{font-size:17px;padding:16px 52px 16px 48px;color:#242c37}
.model-dialog--simple .model-search-wrap input::placeholder{color:#6b7685}
.model-dialog--simple .model-search-wrap>svg{left:17px;width:20px;height:20px;color:#778392}
.model-dialog--simple .model-search-clear{display:grid;place-items:center;width:42px;height:42px;right:6px;border-radius:8px}
.model-dialog--simple .model-search-clear:hover{background:#eef1f5}
.model-dialog--simple .model-search-clear svg{width:18px;height:18px}
.model-search-shortcut{position:absolute;right:17px;display:grid;place-items:center;min-width:25px;height:25px;padding:2px 7px;border:1px solid #dce1e8;border-radius:5px;color:#8a95a3;background:#fff;font-family:inherit;font-size:14px;line-height:1.3;pointer-events:none}
.model-dialog--simple .model-flow-scroll{padding:0 32px 26px;flex:1 1 auto;min-height:0;max-height:580px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding:16px}
.model-dialog--simple .model-recent{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:18px;padding:20px 0 0;margin:0;overflow:visible}
.model-dialog--simple .model-recent>span{font-size:15px;font-weight:500;color:#687586}
.model-dialog--simple .model-recent>div{display:flex;gap:8px;flex-wrap:wrap;min-width:0}
.model-dialog--simple .model-recent button{display:inline-flex;align-items:center;min-height:42px;padding:9px 13px;max-width:100%;white-space:normal;overflow-wrap:anywhere;background:#fff;border:1px solid #e0e5ec;border-radius:10px;font-size:15px;line-height:1.45;color:#586474}
.model-dialog--simple .model-recent button:hover{border-color:#aab5c3;background:#f6f8fa;color:#1b2632}
.model-brand-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px;min-height:24px}
.model-brand-heading h3{margin:0;font-size:17px;line-height:1.45;font-weight:600;letter-spacing:-.15px}
.model-brand-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.model-brand-tile{appearance:none;position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-width:0;min-height:66px;padding:15px 24px;border:1px solid #dfe4eb;border-radius:12px;background:#fff;color:#333e4b;font-family:inherit;font-size:17px;font-weight:550;line-height:1.4;cursor:pointer;text-align:center;overflow-wrap:anywhere;transition:background .12s,border-color .12s}
.model-brand-tile:hover{background:#f5f7fa;border-color:#aeb9c7}
.model-brand-tile[aria-pressed="true"]{background:#20252d;border-color:#20252d;color:#fff}
.model-brand-check{position:absolute;right:10px;top:8px;line-height:0;opacity:.85}
.model-brand-check svg{width:13px;height:13px}
.model-more-brands{font-size:16px;font-weight:500;color:#647184;background:#fafbfc}
.model-more-brands>svg{width:18px;height:18px;flex-shrink:0}
.model-more-brands-link{appearance:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;border:0;background:none;padding:8px 0;color:#647184;font:500 15px/1.5 Inter,Arial,sans-serif;cursor:pointer}
.model-other-brands{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border:1px solid #e5e9ef;border-radius:12px;background:#f8f9fb;padding:12px;margin-top:12px}
.model-other-brands .model-brand-tile{min-height:48px;padding:11px 16px;font-size:16px;border-radius:8px}
.model-family-shortcuts{display:flex;gap:6px;overflow:auto;margin-top:18px;padding:0 0 6px;scrollbar-width:thin;max-width:100%;overscroll-behavior-inline:contain}
.model-family-shortcuts button{appearance:none;flex-shrink:0;white-space:nowrap;min-height:42px;border:1px solid transparent;background:#f4f5f7;border-radius:999px;padding:9px 15px;color:#667282;font-family:inherit;font-size:15px;font-weight:500;line-height:1.4;cursor:pointer}
.model-family-shortcuts button:hover{background:#e9edf1;color:#333e4b}
.model-family-shortcuts button[aria-pressed="true"]{background:#edf2f8;border-color:#cfdae7;color:#344c68}
.model-results-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e7ebf0;margin:22px 0 18px;padding-top:20px}
.model-results-heading h3{margin:0;font-size:18px;font-weight:600;line-height:1.45;letter-spacing:-.2px}
.model-results-heading>span{font-size:15px;line-height:1.45;color:#687586}
.model-dialog--simple .model-groups{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px;align-items:start}
.model-dialog--simple .model-group h4{margin:0 0 6px;padding:0 10px 5px;font-size:15px;line-height:1.45;color:#687586;font-weight:500}
.model-dialog--simple .model-choice{min-height:46px;padding:11px 10px;gap:9px;border:1px solid transparent;border-radius:9px;color:#25313e;font-size:16px;font-weight:500;line-height:1.45}
.model-dialog--simple .model-choice:hover{background:#f1f4f8;border-color:#e1e7ee;color:#101b28}
.model-dialog--simple .model-choice.is-selected{background:#eef3f9;border-color:#cad8e8;color:#27496c}
.model-dialog--simple .model-choice small{font-size:15px;font-weight:400;color:#687586;line-height:1.45;margin-top:4px}
.model-dialog--simple .model-choice-arrow{display:block;flex-shrink:0;line-height:0;color:#a4afbc}
.model-dialog--simple .model-choice-arrow svg{width:14px;height:14px}
.model-dialog--simple .model-choice.is-selected .model-choice-arrow{color:#466d95}
.model-dialog--simple .model-dialog-foot{flex-shrink:0;background:#fff;border-top:1px solid #e8ebf0;gap:20px;padding:13px 30px}
.model-dialog--simple .model-dialog-foot button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 2px;text-decoration:none;font-size:15px;line-height:1.5;color:#66788d}
.model-dialog--simple .model-dialog-foot button:hover{color:#223a56;text-decoration:underline;text-underline-offset:4px}
.model-dialog--simple .model-dialog-foot button svg{width:18px;height:18px;flex-shrink:0}
.model-dialog--simple .model-load-more{margin:22px auto 2px;min-height:46px;padding:12px 18px;font-size:16px;font-weight:500;color:#51657c;border-color:#dce3eb;border-radius:10px;background:#fff}
.model-dialog--simple .model-load-more:hover{background:#f4f7fa;border-color:#acbbcb}
.model-dialog--simple .model-load-more span{font-size:15px;font-weight:400;color:#687586;margin-left:5px}
.model-dialog--simple .model-search-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.model-dialog--simple .model-search-results .model-choice{border-color:#e1e6ed;padding:13px 14px;min-height:64px}
.model-dialog--simple .model-no-results{max-width:480px;padding:28px 2px 8px}
.model-dialog--simple .model-no-results h3{font-size:21px;line-height:1.4;letter-spacing:-.3px}
.model-dialog--simple .model-no-results p{font-size:17px;line-height:1.55}
.model-dialog--simple .model-help{padding:18px 20px;margin:24px 0 0;background:#f5f7fa;border:1px solid #e4e9f0;border-radius:12px;max-height:none;overflow:visible}
.model-dialog--simple .model-help h3{margin:0 0 7px;font-size:17px;line-height:1.5;font-weight:600;color:#344556}
.model-dialog--simple .model-help p{font-size:16px;line-height:1.6;margin:0 0 10px;color:#69788a}
.model-dialog--simple .model-help a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:16px;color:#456383}
.model-dialog--simple button:focus-visible,.model-dialog--simple a:focus-visible{outline:3px solid #91b7e2;outline-offset:2px}
@media(max-width:900px){
 .model-dialog--simple{width:calc(100vw - 32px);height:fit-content;max-height:calc(100dvh - 32px)}
 .model-dialog--simple .model-dialog-head{padding:26px 26px 18px}
 .model-dialog--simple .model-search-wrap{margin-inline:26px}.model-dialog--simple .model-flow-scroll{padding-inline:26px}
 .model-dialog--simple .model-groups,.model-dialog--simple .model-search-results{grid-template-columns:repeat(2,minmax(0,1fr))}
 .model-brand-tile{padding-inline:15px;min-height:60px}.model-more-brands{font-size:15px;gap:7px}
 .model-other-brands{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
 .model-dialog--simple{inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}
 .model-dialog--simple .model-dialog-head{padding:calc(22px + env(safe-area-inset-top,0px)) 20px 18px;gap:12px}
 .model-dialog--simple .model-dialog-head h2{font-size:27px;letter-spacing:-.7px}
 .model-dialog--simple .model-dialog-head p{display:block;font-size:16px;margin-top:6px}
 .model-dialog--simple .model-close{width:42px;height:42px}
 .model-dialog--simple .model-search-wrap{margin:0 20px 0;min-height:54px;border-radius:10px}
 .model-dialog--simple .model-search-wrap input{padding-block:14px;font-size:17px}
 .model-dialog--simple .model-flow-scroll{padding:0 20px 22px;max-height:none;scrollbar-gutter:auto}
 .model-search-shortcut{display:none}
 .model-dialog--simple .model-recent{display:block;margin:0;padding-top:20px}
 .model-dialog--simple .model-recent>span{display:block;margin-bottom:8px;font-size:15px}
 .model-dialog--simple .model-recent>div{flex-wrap:nowrap;overflow-x:auto;padding:2px 2px 6px;margin-inline:-2px;scrollbar-width:thin}
 .model-dialog--simple .model-recent button{flex-shrink:0;white-space:nowrap;font-size:16px;min-height:44px;padding:9px 12px}
 .model-brand-heading{margin:20px 0 10px;min-height:24px}.model-brand-heading h3{font-size:17px}
 .model-brand-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .model-brand-tile{font-size:17px;min-height:52px;padding:13px 20px;border-radius:10px}
 .model-more-brands{font-size:16px}.model-other-brands{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px;gap:7px}
 .model-other-brands .model-brand-tile{font-size:17px;min-height:48px;padding-inline:13px}
 .model-family-shortcuts{margin-top:14px;gap:6px;padding-bottom:7px}
 .model-family-shortcuts button{font-size:16px;min-height:44px;padding-inline:13px}
 .model-results-heading{margin:16px 0 14px;padding-top:17px}.model-results-heading h3{font-size:18px}
 .model-results-heading>span{font-size:15px}
 .model-dialog--simple .model-groups{grid-template-columns:1fr;gap:20px}
 .model-dialog--simple .model-group h4{font-size:16px;padding-inline:10px;margin-bottom:4px;color:#687586}
 .model-dialog--simple .model-choice{font-size:17px;min-height:50px;padding:13px 10px;gap:10px}
 .model-dialog--simple .model-choice small{font-size:15px}.model-dialog--simple .model-choice-arrow{display:block}
 .model-dialog--simple .model-search-results{grid-template-columns:1fr;gap:8px}
 .model-dialog--simple .model-dialog-foot{padding:10px 18px calc(10px + env(safe-area-inset-bottom,0px));gap:14px}
 .model-dialog--simple .model-dialog-foot button{font-size:15px;line-height:1.5;max-width:50%;gap:7px;text-align:left;min-height:48px}
 .model-dialog--simple .model-dialog-foot button svg{width:18px;height:18px}
 .model-dialog--simple .model-help{padding:16px}.model-dialog--simple .model-help p{font-size:17px}
 .model-dialog--simple .model-load-more{font-size:17px}
}
@media(max-width:359px){
 .model-dialog--simple .model-dialog-head{padding-inline:16px}.model-dialog--simple .model-dialog-head h2{font-size:24px;letter-spacing:-.6px}
 .model-dialog--simple .model-dialog-head p{font-size:16px;max-width:200px}
 .model-dialog--simple .model-search-wrap{margin-inline:16px}.model-dialog--simple .model-flow-scroll{padding-inline:16px}
 .model-brand-tile{padding-inline:12px}.model-dialog--simple .model-dialog-foot{padding-inline:14px;gap:12px}
 .model-dialog--simple .model-dialog-foot button>svg{display:none}
}
@media(max-height:580px){
 .model-dialog--simple{max-height:calc(100dvh - 24px)}
 .model-dialog--simple .model-dialog-head{padding-block:13px}.model-dialog--simple .model-dialog-head h2{font-size:24px}
 .model-dialog--simple .model-dialog-head p{display:none}.model-dialog--simple .model-search-wrap{min-height:48px}
 .model-dialog--simple .model-search-wrap input{padding-block:11px}.model-dialog--simple .model-dialog-foot{padding-block:6px}
 .model-dialog--simple .model-flow-scroll{min-height:60px}.model-brand-heading{margin-top:16px}
}
@media(max-height:580px) and (max-width:600px){.model-dialog--simple{height:100dvh;max-height:100dvh}}
@media(prefers-reduced-motion:reduce){.model-dialog--simple *{transition:none!important;scroll-behavior:auto!important}}
/* A chosen brand becomes one editable line on phones; show models, not history. */
.model-mobile-brand{display:none}
@media(max-width:600px){
 .model-dialog--simple.has-model-brand .model-mobile-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;min-height:46px}
 .model-mobile-brand strong{font-size:18px;font-weight:600;color:#25303c;overflow-wrap:anywhere}
 .model-mobile-brand button{appearance:none;border:0;background:transparent;min-height:44px;padding:8px 0;color:#60758d;font:500 16px/1.5 Inter,Arial,sans-serif;cursor:pointer}
 .model-dialog--simple.has-model-brand:not(.is-changing-brand) #model-brand-options{display:none}
 .model-dialog--simple.has-model-brand:not(.is-changing-brand) .model-recent{display:none!important}
 .model-dialog--simple.has-model-brand .model-family-shortcuts{margin-top:4px}
 .model-dialog--simple.is-changing-brand .model-brand-heading{display:none}
 .model-dialog--simple.is-changing-brand .model-brand-tiles{margin:4px 0 12px}
}
