/* The dark hero starts right under the site header. */
body:has(.mg) .row_head { margin-bottom: 0 !important; }

/* Model guides (/odigos/): model.html, _generation.html, index.html. Brand: dark #161616/#1a1a1a,
   accent #ff3b30 on dark, coral #e25848 icons on light, buttons #dd2c2d, links #cc3322. */
.mg {
  --mg-ink: #1a1a1a;
  --mg-text: #374151;
  --mg-muted: #6b7280;
  --mg-line: #e5e7eb;
  --mg-bg: #f5f5f4;
  --mg-card: #fff;
  --mg-red: #dd2c2d;
  --mg-red-hover: #c42425;
  --mg-accent: #ff3b30;
  --mg-coral: #e25848;
  --mg-link: #cc3322;
  --mg-dark: #161616;
  --mg-ease: cubic-bezier(.2, .8, .2, 1);
  --mg-radius: 18px;
  background: var(--mg-bg);
  color: var(--mg-text);
  font-family: Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: 64px;
}
.mg *, .mg *::before, .mg *::after { box-sizing: border-box; }
.mg :where(h1, h2, h3) { font-family: Poppins, Roboto, sans-serif; color: var(--mg-ink); margin: 0; padding: 0; border: 0; letter-spacing: -.01em; text-transform: none; }
.mg :where(h1, h2)::after { content: none; }
.mg :where(p) { margin: 0; }
.mg :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.mg :where(a) { color: inherit; text-decoration: none; }
.mg a:not([class]) { color: inherit; text-decoration: none; }
.mg :where(button) { font: inherit; cursor: pointer; }
.mg [x-cloak] { display: none !important; }
.mg .material-symbols-outlined { font-size: 20px; line-height: 1; vertical-align: middle; }
.mg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mg-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mg-card { background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: var(--mg-radius); }
.mg-h2 { font-size: 24px; font-weight: 600; line-height: 1.25; }
.mg-h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.mg-note { font-size: 13.5px; color: var(--mg-muted); margin-top: 14px !important; }
.mg-muted { color: var(--mg-muted); }
.mg-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--mg-coral); }
.mg-link { display: inline-flex; align-items: center; gap: 4px; color: var(--mg-link); font-weight: 600; background: none; border: 0; padding: 0; }
.mg-link:hover { text-decoration: underline; }
.mg-link .material-symbols-outlined { transition: transform .25s var(--mg-ease); }
.mg-link .is-flipped { transform: rotate(180deg); }

.mg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--mg-red);
  background: var(--mg-red); color: #fff !important; font-weight: 600; font-size: 15px;
  transition: background .2s, transform .15s var(--mg-ease), box-shadow .2s;
}
.mg-btn:hover { background: var(--mg-red-hover); box-shadow: 0 8px 20px rgba(221, 44, 45, .25); }
.mg-btn:active { transform: scale(.98); }
.mg-btn .material-symbols-outlined { transition: transform .25s var(--mg-ease); }
.mg-btn:hover .material-symbols-outlined:last-child { transform: translateX(3px); }
.mg-btn-ghost { background: #fff; color: var(--mg-ink) !important; border-color: #d1d5db; }
.mg-btn-ghost:hover { background: #fafafa; border-color: var(--mg-ink); box-shadow: none; }
.mg-btn-ghost:hover .material-symbols-outlined { animation: mg-ring .6s ease; }
.mg-btn[disabled] { opacity: .6; cursor: wait; }

/* ------------------------------------------------------------------ hero */
.mg-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #161616 0%, #232323 55%, #161616 100%);
  padding: 22px 0 34px;
}
.mg-hero-glow {
  position: absolute; inset: -40% -10% auto auto; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 48, .22) 0%, rgba(255, 59, 48, 0) 65%);
  animation: mg-glow 9s ease-in-out infinite alternate; pointer-events: none;
}
.mg-hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; line-height: 1.08; margin: 6px 0 10px; }
.mg-hero .mg-eyebrow { color: var(--mg-accent); margin-top: 18px; }
.mg-hero-sub { color: #d4d4d4; font-size: 17px; max-width: 620px; }
.mg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: center; position: relative; }
.mg-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #a3a3a3; }
.mg-crumbs li + li::before { content: '/'; margin-right: 6px; color: #525252; }
.mg-crumbs a:hover { color: #fff; }
.mg-crumbs [aria-current] { color: #e5e5e5; }
.mg-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.mg-facts li { font-size: 13.5px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #e5e5e5; }
.mg-facts li.is-live a { color: #fff; font-weight: 600; }
.mg-facts li.is-live:hover { border-color: var(--mg-accent); }
.mg-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: mg-pulse 2s infinite; vertical-align: 1px; }
.mg-hero-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #262626; box-shadow: 0 24px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); transform: perspective(900px) rotateY(-4deg); transition: transform .6s var(--mg-ease); }
.mg-hero-photo:hover { transform: perspective(900px) rotateY(0); }
.mg-hero-road { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(22, 22, 22, .35) 0%, rgba(22, 22, 22, 0) 30%), linear-gradient(0deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 35%); }
.mg-hero-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  animation: mg-drive-in .9s var(--mg-ease) .15s both;
  transition: transform .28s ease-in, opacity .28s ease-in;
}
.mg-hero-photo img.is-out { transform: translateX(-14%); opacity: 0; }
.mg-hero-photo img.is-reset { transition: none; transform: translateX(14%); opacity: 0; }
.mg-rise { animation: mg-rise .7s var(--mg-ease) both; animation-delay: calc(var(--i, 0) * 80ms + 60ms); }

/* ------------------------------------------------------------- toolbar */
.mg-toolbar-slot { min-height: 65px; }
.mg-toolbar { position: relative; z-index: 30; background: rgba(245, 245, 244, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--mg-line); }
.mg-toolbar.is-fixed { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); animation: mg-drop .3s var(--mg-ease); }
.mg-toolbar-cta { margin-left: auto; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 12px; background: var(--mg-red); color: #fff !important; font-weight: 600; font-size: 14.5px; transition: background .2s; }
.mg-toolbar-cta:hover { background: var(--mg-red-hover); }
.mg-toolbar-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.mg-toolbar-hint { font-size: 14px; color: var(--mg-muted); }
.mg-switch { position: relative; display: inline-flex; padding: 4px; border-radius: 14px; background: #e7e5e4; }
.mg-switch button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: #44403c; font-weight: 600; font-size: 14.5px; transition: color .2s; }
.mg-switch button[aria-pressed="true"] { color: var(--mg-ink); }
.mg-switch button[aria-pressed="true"] .material-symbols-outlined { color: var(--mg-red); }
.mg-switch-thumb { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06); transition: transform .35s var(--mg-ease), width .35s var(--mg-ease); }

/* --------------------------------------------------------- generation rail */
.mg-rail-wrap { position: relative; margin: 22px 0 18px; }
.mg-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 2px 10px; scrollbar-width: thin; }
.mg-rail > li { flex: 0 0 176px; scroll-snap-align: start; animation: mg-rise .55s var(--mg-ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.mg-tile {
  position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--mg-line);
  transition: transform .25s var(--mg-ease), box-shadow .25s, border-color .25s;
}
.mg-tile::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--mg-red); transform: scaleX(0); transition: transform .35s var(--mg-ease); }
.mg-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.mg-tile.is-on { border-color: var(--mg-red); box-shadow: 0 0 0 1px var(--mg-red), 0 10px 24px rgba(221, 44, 45, .14); }
.mg-tile.is-on::after { transform: scaleX(1); }
.mg-tile:focus-visible { outline: 3px solid var(--mg-ink); outline-offset: 2px; }
.mg-tile-photo { position: relative; display: flex; align-items: center; justify-content: center; height: 100px; background: #e7e5e4; overflow: hidden; }
.mg-tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--mg-ease); }
.mg-tile:hover .mg-tile-photo img, .mg-tile.is-on .mg-tile-photo img { transform: scale(1.07); }
.mg-tile-photo .material-symbols-outlined { font-size: 40px; color: #a8a29e; }
.mg-tile-text { display: flex; flex-direction: column; padding: 10px 12px 4px; }
.mg-tile-text b { color: var(--mg-ink); font-size: 15px; }
.mg-tile-text small { font-size: 12.5px; color: var(--mg-muted); }
.mg-tile-count { margin: 4px 12px 12px; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--mg-link); padding: 3px 8px; border-radius: 999px; background: #f5f5f4; border: 1px solid #e7e5e4; }
.mg-tile-count.is-zero { color: var(--mg-muted); font-weight: 500; }
.mg-rail-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -26px; border-radius: 50%; border: 1px solid var(--mg-line); background: #fff; color: var(--mg-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; transition: transform .2s var(--mg-ease); }
.mg-rail-arrow:hover { transform: scale(1.08); }
.mg-rail-arrow.is-prev { left: -14px; }
.mg-rail-arrow.is-next { right: -14px; }

/* ------------------------------------------------------- generation detail */
.mg-detail-wrap { transition: opacity .17s ease, transform .17s ease; }
.mg-detail-wrap.is-leaving { opacity: 0; transform: translateY(6px); }
.mg-detail-wrap.is-entering { opacity: 0; transform: translateY(10px); transition: none; }
.mg.is-slow .mg-detail-wrap { opacity: .45; pointer-events: none; }
.mg.is-slow .mg-tile.is-on .mg-tile-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: mg-shimmer 1s infinite; }
.mg-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.mg-detail-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mg-detail-side { display: flex; flex-direction: column; gap: 14px; }

.mg-gen-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; }
.mg-gen-photo { position: relative; display: flex; align-items: center; justify-content: center; min-height: 260px; background: #e7e5e4; overflow: hidden; }
.mg-gen-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mg-detail.is-ready .mg-gen-photo img { animation: mg-drive-in .8s var(--mg-ease) both; }
.mg-gen-photo .material-symbols-outlined { font-size: 64px; color: #a8a29e; }
.mg-gen-number { position: absolute; left: 12px; top: 12px; z-index: 2; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: Poppins, sans-serif; font-weight: 600; font-size: 18px; color: #fff; background: rgba(22, 22, 22, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.mg-gen-number::after { content: 'η'; font-size: 12px; margin-left: 1px; align-self: flex-start; margin-top: 9px; }
.mg-gen-text { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.mg-gen-text h2 { font-size: 26px; font-weight: 600; line-height: 1.2; }
.mg-gen-text h2 span { display: block; font-family: Roboto, sans-serif; font-size: 15px; font-weight: 500; color: var(--mg-muted); margin-top: 2px; }
.mg-lead { font-size: 15px; color: var(--mg-text); }
.mg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 0; }
.mg-stat { padding: 11px 12px; border-radius: 12px; background: #f5f5f4; animation: mg-rise .5s var(--mg-ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); transition: background .2s, transform .2s var(--mg-ease); }
.mg-stat:hover { background: #eeedeb; transform: translateY(-2px); }
.mg-stat dt { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mg-muted); }
.mg-stat dt .material-symbols-outlined { font-size: 16px; color: var(--mg-coral); }
.mg-stat dd { margin: 2px 0 0; font-weight: 700; color: var(--mg-ink); font-size: 15.5px; line-height: 1.3; }
.mg-stat dd small { display: block; font-weight: 500; font-size: 12px; color: var(--mg-muted); }
.mg-stat dd small.is-warn { color: #92400e; }
.mg-stars { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: 1px; }
.mg-stars i { width: 10px; height: 10px; background: #d6d3d1; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.mg-stars i.is-on { background: #f59e0b; animation: mg-pop .4s var(--mg-ease) both; animation-delay: calc(var(--i) * 90ms + 400ms); }

.mg-tabs { position: relative; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #e7e5e4; overflow-x: auto; scrollbar-width: none; }
.mg-tabs button { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: #44403c; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: color .2s; }
.mg-tabs button em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--mg-muted); padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .06); }
.mg-tabs button[aria-selected="true"] { color: var(--mg-ink); }
.mg-tabs button[aria-selected="true"] .material-symbols-outlined { color: var(--mg-red); }
.mg-tabs button:focus-visible { outline: 2px solid var(--mg-ink); outline-offset: -2px; }
.mg-tabs-ink { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.mg-tabs-ink.is-placed { transition: transform .35s var(--mg-ease), width .35s var(--mg-ease); }

.mg-panel { padding: 20px 22px; }
.mg-panel-enter { transition: opacity .28s ease, transform .28s var(--mg-ease); }
.mg-panel-from { opacity: 0; transform: translateY(8px); }
.mg-panel-to { opacity: 1; transform: none; }
.mg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mg-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #d6d3d1; background: #fff; color: var(--mg-ink); font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.mg-chip em { font-style: normal; color: var(--mg-muted); font-size: 12.5px; }
.mg-chip:hover { border-color: var(--mg-ink); }
.mg-chip:active { transform: scale(.96); }
.mg-chip[aria-pressed="true"] { background: var(--mg-ink); border-color: var(--mg-ink); color: #fff; }
.mg-chip[aria-pressed="true"] em { color: #d4d4d4; }

.mg-engines { display: flex; flex-direction: column; }
.mg-engine { padding: 14px 4px; border-bottom: 1px solid #f0efed; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s var(--mg-ease); transition-delay: calc(var(--i) * 55ms); }
.mg-engines.is-in .mg-engine { opacity: 1; transform: none; }
.mg-engine:last-child { border-bottom: 0; }
.mg-engine-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mg-engine-top h3 { font-size: 16px; font-weight: 600; }
.mg-engine-hp { margin-left: auto; font-family: Poppins, sans-serif; font-weight: 600; font-size: 18px; color: var(--mg-ink); }
.mg-engine-hp small { font-size: 12px; color: var(--mg-muted); font-family: Roboto, sans-serif; }
.mg-badge { font-size: 11.5px; font-weight: 700; color: #166534; background: #dcfce7; padding: 2px 8px; border-radius: 999px; }
.mg-bar { display: block; height: 6px; border-radius: 6px; background: #f0efed; overflow: hidden; margin: 8px 0 6px; }
.mg-bar > span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #1a1a1a, #dd2c2d); transition: width 1s var(--mg-ease); transition-delay: calc(var(--i, 0) * 55ms + 150ms); }
.is-in .mg-bar > span { width: var(--w); }
.mg-engine-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--mg-text); }
.mg-engine-years { font-weight: 600; color: var(--mg-ink); }
/* A generation whose engine list the completeness pass has not checked yet. */
.mg-partial { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px !important; font-size: 14.5px; color: var(--mg-muted); }
.mg-partial .material-symbols-outlined { font-size: 18px; color: #b45309; margin-top: 1px; }
.mg-engine-fuel { display: flex; align-items: center; gap: 6px; margin-top: 4px !important; font-size: 14px; font-weight: 500; color: var(--mg-ink); }
.mg-engine-fuel .material-symbols-outlined { font-size: 17px; color: var(--mg-coral); }
.mg-engine-fuel.is-empty { color: var(--mg-muted); font-weight: 400; }
.mg-engine-fuel.is-empty .material-symbols-outlined { color: #a8a29e; }

.mg-dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.mg-dims > div { padding: 12px 14px; border-radius: 12px; background: #f5f5f4; opacity: 0; transform: scale(.96); transition: opacity .4s, transform .4s var(--mg-ease); transition-delay: calc(var(--i) * 50ms); }
.mg-dims.is-in > div { opacity: 1; transform: none; }
.mg-dims dt { font-size: 12.5px; color: var(--mg-muted); }
.mg-dims dd { margin: 0; font-family: Poppins, sans-serif; font-weight: 600; font-size: 20px; color: var(--mg-ink); }
.mg-dims dd small { font-family: Roboto, sans-serif; font-size: 12.5px; font-weight: 500; color: var(--mg-muted); }
.mg-panel .mg-h3 { margin: 20px 0 10px; }
.mg-bodies li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0efed; }
.mg-bodies li:last-child { border-bottom: 0; }
.mg-bodies b { display: block; color: var(--mg-ink); font-weight: 600; }
.mg-bodies small { color: var(--mg-muted); font-size: 13px; }
.mg-trunk { font-size: 13.5px; }
.mg-trunk .mg-bar { margin: 0 0 4px; }
.mg-features li, .mg-flags li { display: flex; gap: 10px; padding: 8px 0; font-size: 15px; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s var(--mg-ease); transition-delay: calc(var(--i, 0) * 60ms); }
.mg-features.is-in li, .mg-flags li { opacity: 1; transform: none; }
.mg-features .material-symbols-outlined { color: #16a34a; flex: none; margin-top: 2px; }
.mg-flags .material-symbols-outlined { color: var(--mg-red); flex: none; margin-top: 2px; }

.mg-tldr { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #f5f5f4; font-size: 15px; color: var(--mg-ink); margin-bottom: 14px !important; }
.mg-tldr .material-symbols-outlined { color: #f59e0b; flex: none; }
.mg-issue { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; margin-bottom: 12px; }
.mg-issue > .material-symbols-outlined { color: #b45309; flex: none; }
.mg-issue b { color: #78350f; }
.mg-issue p { font-size: 14.5px; margin-top: 4px !important; color: #44403c; }
.mg-issue small { display: block; margin-top: 6px; font-size: 13px; color: #92400e; }
.mg-checklist-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mg-checklist-head .mg-h3 { margin: 18px 0 8px; }
.mg-progress { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mg-muted); }
.mg-progress svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.mg-progress circle { fill: none; stroke-width: 4; }
.mg-progress-track { stroke: #e7e5e4; }
.mg-progress-fill { stroke: #16a34a; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset .5s var(--mg-ease); }
.mg-progress b { color: var(--mg-ink); }
.mg-check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; cursor: pointer; font-size: 15px; transition: background .2s; }
.mg-check:hover { background: #fafaf9; }
.mg-check input { position: absolute; opacity: 0; pointer-events: none; }
.mg-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 2px solid #a8a29e; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s, transform .2s var(--mg-ease); }
.mg-box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s ease .05s; }
.mg-check input:focus-visible + .mg-box { outline: 2px solid var(--mg-ink); outline-offset: 2px; }
.mg-check.is-done .mg-box { background: #16a34a; border-color: #16a34a; animation: mg-pop .35s var(--mg-ease); }
.mg-check.is-done .mg-box svg { stroke-dashoffset: 0; }
.mg-check.is-done > span:last-child { color: var(--mg-muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.mg-years { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mg-years > div { flex: 1 1 200px; padding: 12px 14px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.mg-years > div.is-avoid { background: #fffbeb; border-color: #fde68a; }
.mg-years span { display: block; font-size: 12.5px; color: var(--mg-muted); }
.mg-years b { color: var(--mg-ink); }
.mg-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.mg-fit > div { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f5f5f4; font-size: 14.5px; }
.mg-fit .material-symbols-outlined { color: var(--mg-coral); flex: none; }
.mg-credit { font-size: 12.5px; color: var(--mg-muted); }
.mg-credit a { text-decoration: underline; }

/* aside */
.mg-ads { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mg-ads-count { font-size: 15px; color: var(--mg-text); }
.mg-ads-count b { font-family: Poppins, sans-serif; font-size: 34px; font-weight: 600; color: var(--mg-ink); line-height: 1; margin-right: 2px; }
.mg-ads-count span { display: block; font-size: 14px; color: #047857; font-weight: 600; }
.mg-ads-list { display: flex; flex-direction: column; gap: 6px; }
.mg-ads-list li { animation: mg-rise .45s var(--mg-ease) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.mg-ads-list a { display: flex; align-items: center; gap: 12px; padding: 6px; margin: 0 -6px; border-radius: 12px; transition: background .2s; }
.mg-ads-list a:hover { background: #f5f5f4; }
.mg-ads-list img, .mg-ads-ph { flex: none; width: 84px; height: 62px; border-radius: 10px; object-fit: cover; background: #e7e5e4; transition: transform .3s var(--mg-ease); }
.mg-ads-ph { display: flex; align-items: center; justify-content: center; color: #a8a29e; }
.mg-ads-list a:hover img { transform: scale(1.04); }
.mg-ads-list b { display: block; color: var(--mg-ink); font-size: 15.5px; }
.mg-ads-list small { color: var(--mg-muted); font-size: 13px; }
.mg-go { margin-left: auto; color: #a8a29e; transition: transform .25s var(--mg-ease), color .2s; }
a:hover > .mg-go { transform: translateX(4px); color: var(--mg-red); }
.mg-ads-empty { font-size: 14.5px; color: var(--mg-text); }
.mg-dark { background: var(--mg-dark); border-color: var(--mg-dark); color: #d4d4d4; }
.mg-garage { padding: 18px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.mg-garage > .material-symbols-outlined { position: absolute; right: -6px; top: -8px; font-size: 92px; color: rgba(255, 255, 255, .05); }
.mg-garage .mg-h3 { color: #fff; }
.mg-garage p { font-size: 14px; }
.mg-link-light { display: inline-flex; align-items: center; gap: 4px; color: var(--mg-accent) !important; font-weight: 600; }
.mg-link-light .material-symbols-outlined { transition: transform .25s var(--mg-ease); }
.mg-link-light:hover .material-symbols-outlined { transform: translateX(4px); }

/* ------------------------------------------------------------------ compare */
.mg-compare { margin-top: 22px; }
.mg-compare .mg-h2 { margin-bottom: 14px; }
.mg-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--mg-line); border-radius: var(--mg-radius); }
.mg-table-wrap:focus-visible { outline: 3px solid var(--mg-ink); outline-offset: 2px; }
.mg-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14.5px; }
.mg-table th, .mg-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #f0efed; min-width: 150px; transition: background .2s; }
.mg-table tbody tr:last-child > * { border-bottom: 0; }
.mg-table tbody th { position: sticky; left: 0; z-index: 1; min-width: 140px; background: #fafaf9; color: var(--mg-muted); font-size: 13px; font-weight: 600; box-shadow: 1px 0 0 var(--mg-line); }
.mg-table-corner { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 var(--mg-line); }
.mg-table thead th { vertical-align: bottom; }
.mg-table-gen { display: flex; flex-direction: column; gap: 2px; color: var(--mg-ink); }
.mg-table-gen img { width: 130px; height: 80px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; transition: transform .35s var(--mg-ease); }
.mg-table-gen:hover img { transform: translateY(-3px) scale(1.04); }
.mg-table-gen b { font-size: 15px; }
.mg-table-gen small { font-size: 12.5px; color: var(--mg-muted); font-weight: 400; }
.mg-table .is-hover { background: #fafaf9; }
.mg-table .is-on { background: #f5f5f4; color: var(--mg-ink); font-weight: 500; }
.mg-table thead .is-on { box-shadow: inset 0 3px 0 var(--mg-red); }
.mg-table tbody tr { animation: mg-rise .45s var(--mg-ease) both; animation-delay: calc(var(--i) * 40ms); }
.mg-na { color: #a8a29e; font-size: 13px; }

/* ------------------------------------------------------------ story, faq */
.mg-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 44px; padding: 28px; border-radius: var(--mg-radius); background: #fff; border: 1px solid var(--mg-line); }
.mg-story-text { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; }
.mg-timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 22px; }
.mg-timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: #e7e5e4; transform-origin: top; transform: scaleY(0); transition: transform 1.2s var(--mg-ease); }
.mg-story.is-in .mg-timeline::before { transform: scaleY(1); }
.mg-timeline li { position: relative; display: flex; gap: 12px; font-size: 14.5px; opacity: 0; transform: translateX(-6px); transition: opacity .45s, transform .45s var(--mg-ease); transition-delay: calc(var(--i) * 90ms + 200ms); }
.mg-story.is-in .mg-timeline li { opacity: 1; transform: none; }
.mg-timeline li::before { content: ''; position: absolute; left: -21px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--mg-red); }
.mg-timeline b { flex: none; width: 42px; color: var(--mg-link); font-family: Poppins, sans-serif; }
.mg-faq { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; }
.mg-faq .mg-h2 { margin-bottom: 6px; }
.mg-faq-item { background: #fff; border: 1px solid var(--mg-line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.mg-faq-item.is-open { border-color: #d6d3d1; box-shadow: 0 8px 20px rgba(0, 0, 0, .05); }
.mg-faq-item h3 { font-size: 16px; font-weight: 600; }
.mg-faq-item button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 0; background: none; text-align: left; color: var(--mg-ink); font: inherit; font-weight: 600; min-height: 48px; }
.mg-faq-item button .material-symbols-outlined { flex: none; transition: transform .3s var(--mg-ease); color: var(--mg-red); }
.mg-faq-item.is-open button .material-symbols-outlined { transform: rotate(45deg); }
.mg-faq-item p { padding: 0 18px 16px; font-size: 15px; }

.mg-more { display: flex; flex-direction: column; gap: 22px; margin-top: 44px; }
.mg-seli { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--mg-radius); background: linear-gradient(135deg, #161616, #262626); color: #fff; transition: transform .25s var(--mg-ease), box-shadow .25s; }
.mg-seli:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .2); }
.mg-seli > .material-symbols-outlined:first-child { flex: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 59, 48, .14); color: var(--mg-accent); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mg-seli b { display: block; font-family: Poppins, sans-serif; font-weight: 600; font-size: 17px; }
.mg-seli small { color: #d4d4d4; font-size: 14px; }
.mg-seli .mg-go { color: var(--mg-accent); }
.mg-siblings { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px !important; }
.mg-siblings a { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--mg-line); transition: transform .2s var(--mg-ease), box-shadow .2s; }
.mg-siblings a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .07); }
.mg-siblings img { width: 72px; height: 48px; object-fit: cover; border-radius: 9px; }
.mg-siblings b { display: block; color: var(--mg-ink); font-size: 15px; }
.mg-siblings small { color: var(--mg-muted); font-size: 12.5px; }
.mg-sources { font-size: 13px; color: var(--mg-muted); margin-top: 28px !important; }
.mg-sources a { color: var(--mg-link); font-weight: 600; }

/* phone bar and alert modal */
.mg-bar-phone { display: none; }
.mg-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mg-modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.mg-modal-card { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.mg-modal-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--mg-muted); }
.mg-modal-close:hover { background: #f5f5f4; }
.mg-modal-icon { width: 52px; height: 52px; border-radius: 50%; background: #f5f5f4; color: var(--mg-red); display: flex; align-items: center; justify-content: center; font-size: 26px !important; }
.mg-modal-icon.is-ring { color: #16a34a; background: #f0fdf4; animation: mg-ring .7s ease; }
.mg-field { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--mg-muted); }
.mg-field input { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #d1d5db; font-size: 16px; color: var(--mg-ink); }
.mg-field input:focus { outline: none; border-color: var(--mg-red); box-shadow: 0 0 0 3px rgba(221, 44, 45, .15); }
.mg-error { color: #b91c1c; font-size: 14px; }
.mg-pop-enter { transition: opacity .25s ease, transform .3s var(--mg-ease); }
.mg-pop-from { opacity: 0; transform: translateY(12px) scale(.97); }
.mg-pop-to { opacity: 1; transform: none; }

/* --------------------------------------------------------------- index page */
.mg-hero-index { padding-bottom: 42px; }
.mg-hero-index .mg-wrap { position: relative; z-index: 1; }
.mg-stack { position: absolute; right: max(24px, calc(50% - 580px)); top: 50%; width: 360px; height: 250px; margin-top: -110px; pointer-events: none; }
.mg-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 24px 48px rgba(0, 0, 0, .45); animation: mg-fan .9s var(--mg-ease) both, mg-float 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * 140ms + 200ms), calc(var(--i) * -2.3s); }
.mg-stack img:nth-child(1) { --r: -9deg; --x: -70px; --y: 18px; z-index: 1; }
.mg-stack img:nth-child(2) { --r: 6deg; --x: 60px; --y: -26px; z-index: 2; }
.mg-stack img:nth-child(3) { --r: -1deg; --x: 0px; --y: 30px; z-index: 3; }
.mg-hero-index h1 { max-width: 760px; }
.mg-search { position: relative; display: flex; align-items: center; max-width: 640px; margin-top: 22px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: box-shadow .25s, transform .25s var(--mg-ease); }
.mg-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 59, 48, .45), 0 14px 34px rgba(0, 0, 0, .3); transform: translateY(-1px); }
.mg-search > .material-symbols-outlined { position: absolute; left: 16px; color: var(--mg-muted); font-size: 22px; }
.mg-search input { flex: 1; min-width: 0; height: 58px; padding: 0 52px; border: 0; border-radius: 16px; background: transparent; font-size: 17px; color: var(--mg-ink); }
.mg-search input:focus { outline: none; }
.mg-search input::-webkit-search-cancel-button { display: none; }
.mg-search-clear { position: absolute; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--mg-muted); }
.mg-counters { display: flex; gap: 28px; margin: 22px 0 0; }
.mg-counters div { display: flex; flex-direction: column-reverse; }
.mg-counters dt { font-size: 13px; color: #a3a3a3; }
.mg-counters dd { margin: 0; font-family: Poppins, sans-serif; font-size: 28px; font-weight: 600; color: #fff; line-height: 1.1; }
.mg-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.mg-section-head span { font-size: 14px; color: var(--mg-muted); }
.mg-popular { margin-top: 36px; }
.mg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.mg-cards li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s var(--mg-ease); transition-delay: calc(var(--i) * 60ms); }
.mg-popular.is-in .mg-cards li { opacity: 1; transform: none; }
.mg-model-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--mg-radius); background: #fff; border: 1px solid var(--mg-line); overflow: hidden; transition: transform .3s var(--mg-ease), box-shadow .3s; }
.mg-model-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, .1); }
.mg-model-photo { display: block; height: 160px; background: #e7e5e4; overflow: hidden; }
.mg-model-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--mg-ease); }
.mg-model-card:hover .mg-model-photo img { transform: scale(1.06); }
.mg-model-text { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.mg-model-text b { color: var(--mg-ink); font-size: 17px; font-family: Poppins, sans-serif; font-weight: 600; }
.mg-model-text small { color: var(--mg-muted); font-size: 13.5px; }
.mg-model-text em { font-style: normal; color: var(--mg-link); font-weight: 600; font-size: 13.5px; }
.mg-model-card .mg-go { position: absolute; right: 14px; bottom: 16px; }
.mg-model-card:hover .mg-go { transform: translateX(4px); color: var(--mg-red); }
.mg-index .mg-seli { margin-top: 32px; }
.mg-makes { margin-top: 40px; }
.mg-make-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 14px; align-items: start; }
.mg-index .mg-make-list:has(.mg-make.is-open) .mg-make.is-open, .mg-make.is-open { grid-column: 1 / -1; }
.mg-make { background: #fff; border: 1px solid var(--mg-line); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.mg-make.is-open { border-color: #d6d3d1; box-shadow: 0 10px 24px rgba(0, 0, 0, .06); }
.mg-make h3 { font-size: 16px; }
.mg-make-head { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 0; background: none; text-align: left; color: var(--mg-ink); }
.mg-make-head:hover .mg-make-initial { background: var(--mg-ink); color: #fff; transform: rotate(-6deg); }
.mg-make-initial { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #f5f5f4; display: flex; align-items: center; justify-content: center; font-family: Poppins, sans-serif; font-weight: 600; transition: background .2s, color .2s, transform .25s var(--mg-ease); }
.mg-make-name { font-weight: 600; font-size: 16px; }
.mg-make-head small { margin-left: auto; color: var(--mg-muted); font-size: 13px; font-family: Roboto, sans-serif; font-weight: 400; }
.mg-make-head .material-symbols-outlined { color: var(--mg-muted); transition: transform .3s var(--mg-ease); }
.mg-make.is-open .mg-make-head .material-symbols-outlined { transform: rotate(180deg); }
.mg-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; padding: 4px 10px 12px; }
.mg-models a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; transition: background .2s; }
.mg-models a:hover { background: #f5f5f4; }
.mg-models-photo { flex: none; width: 84px; height: 54px; border-radius: 10px; overflow: hidden; background: #e7e5e4; display: flex; align-items: center; justify-content: center; color: #a8a29e; }
.mg-models-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--mg-ease); }
.mg-models a:hover .mg-models-photo img { transform: scale(1.08); }
.mg-models-text b { display: block; color: var(--mg-ink); font-size: 15px; }
.mg-models-text small { color: var(--mg-muted); font-size: 13px; }
.mg-models-ads { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; color: var(--mg-link); }
.mg-results { margin-top: 30px; }
.mg-index .mg-make[hidden], .mg-index [data-search][hidden] { display: none; }
.mg-empty { margin-top: 10px !important; color: var(--mg-muted); }

/* ----------------------------------------------------------------- keyframes */
@keyframes mg-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mg-drive-in { from { opacity: 0; transform: translateX(18%); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes mg-glow { from { transform: translate(0, 0) scale(1); opacity: .8; } to { transform: translate(-60px, 30px) scale(1.1); opacity: 1; } }
@keyframes mg-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes mg-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes mg-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
@keyframes mg-fan { from { opacity: 0; transform: translate(0, 40px) rotate(0) scale(.9); } to { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }
@keyframes mg-float { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes mg-drop { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes mg-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ------------------------------------------------------------------- layout */
@media (max-width: 1100px) {
  .mg-stack { display: none; }
}
@media (max-width: 1024px) {
  .mg-detail { grid-template-columns: minmax(0, 1fr); }
  .mg-detail-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 760px) {
  .mg-wrap { padding: 0 14px; }
  .mg-hero { padding: 14px 0 22px; }
  .mg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* The generation card right below shows the same photo. */
  .mg-hero-photo { display: none; }
  .mg-hero-sub { font-size: 15.5px; }
  .mg-toolbar-inner { min-height: 58px; }
  .mg-switch { width: 100%; }
  .mg-switch button { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; }
  .mg-toolbar-hint, .mg-toolbar-cta { display: none !important; }
  .mg-toolbar-slot { min-height: 59px; }
  .mg-rail-wrap { margin: 14px -14px 12px; }
  .mg-rail { padding: 6px 14px 10px; scroll-padding: 0 14px; }
  .mg-rail > li { flex-basis: 148px; }
  .mg-tile-photo { height: 80px; }
  .mg-tile-photo img { height: 72px; }
  .mg-rail-arrow { display: none !important; }
  .mg-gen-head { grid-template-columns: minmax(0, 1fr); }
  .mg-gen-photo { min-height: 180px; }
  .mg-gen-text { padding: 16px; }
  .mg-gen-text h2 { font-size: 22px; }
  .mg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-panel { padding: 16px; }
  .mg-tabs { margin: 0 -14px; border-radius: 0; padding: 4px 14px; }
  .mg-bodies li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mg-story { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .mg-bar-phone {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--mg-line); box-shadow: 0 -8px 20px rgba(0, 0, 0, .08);
    transform: translateY(110%); transition: transform .35s var(--mg-ease);
  }
  .mg-bar-phone.is-shown { transform: none; }
  /* Room for the site's floating saved-listings button at the bottom right. */
  .mg-bar-phone { padding-right: 78px; }
  .mg-bar-phone .mg-btn { width: auto; flex: 1; padding: 0 12px; }
  .mg-tabs button { padding: 0 12px; }
  .mg-tabs button .material-symbols-outlined { display: none; }
  .mg-bar-phone .mg-btn-ghost { flex: 0 0 auto; }
  .mg-make-list { grid-template-columns: minmax(0, 1fr); }
  .mg-models { grid-template-columns: minmax(0, 1fr); }
  .mg-counters { gap: 20px; }
  .mg-search input { height: 54px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .mg *, .mg *::before, .mg *::after { animation: none !important; transition: none !important; }
  .mg-engine, .mg-dims > div, .mg-features li, .mg-timeline li, .mg-cards li { opacity: 1 !important; transform: none !important; }
  .mg-bar > span { width: var(--w) !important; }
  .mg-timeline::before { transform: none !important; }
}
