:root {
  --blue-900: #0b2559;
  --blue-700: #1554c0;
  --blue-600: #1d6ff2;
  --blue-100: #eaf3ff;
  --blue-050: #f5f9ff;
  --ink: #172033;
  --muted: #65708a;
  --line: #d8e2f1;
  --white: #ffffff;
  --mint: #16a979;
  --amber: #f7b731;
  --shadow: 0 24px 60px rgba(15, 38, 84, 0.12);
}

@property --score-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--blue-050);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page {
  overflow-x: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px;
  overflow: auto;
  color: var(--white);
  background: #0b2559;
}

.sidebar-main {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 800;
}

.brand-large {
  color: var(--blue-900);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 10px 22px rgba(12, 43, 100, 0.18);
}

.nav-list {
  display: grid;
  gap: 4px;
  margin-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.nav-item:hover,
.nav-item.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.admin-nav-hidden {
  display: none !important;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-weight: 800;
}

.content-grid {
  display: grid;
  gap: 22px;
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.selection-grid,
.profile-grid,
.admin-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-content: start;
}

.single-column {
  grid-template-columns: minmax(0, 860px);
  place-content: center;
}

.workspace {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: var(--blue-900);
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  color: var(--blue-900);
  font-size: 1.08rem;
  line-height: 1.24;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.status-pill,
.preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.chat-panel {
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
}

.chat-window {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  overflow: auto;
}

.message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  max-width: 82%;
}

.message.user {
  justify-self: end;
  grid-template-columns: minmax(0, 1fr) 38px;
}

.message.user .message-avatar {
  order: 2;
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-700);
  font-size: 0.74rem;
  font-weight: 800;
}

.message.user .message-avatar {
  background: var(--mint);
}

.message-bubble {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #23304a;
  background: #f9fbff;
  line-height: 1.48;
}

.message.user .message-bubble {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.chat-form textarea {
  max-height: 132px;
  resize: none;
  overflow-y: auto;
  font: inherit;
  line-height: 1.35;
}

.chat-form input:focus,
.chat-form textarea:focus {
  outline: 3px solid rgba(29, 111, 242, 0.16);
  border-color: var(--blue-600);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-700);
  background: var(--white);
  cursor: pointer;
}

.send-button {
  width: 48px;
  height: 48px;
  color: var(--white);
  border-color: var(--blue-700);
  background: var(--blue-700);
  font-weight: 800;
}

.side-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  align-content: start;
}

.info-block,
.result-preview,
.timeline {
  padding: 4px 0;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #2a3751;
  line-height: 1.42;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: inset 0 0 0 5px var(--white);
  border: 2px solid var(--mint);
}

.result-preview {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--blue-050), var(--white));
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 52px 28px;
  text-align: center;
}

.empty-state p {
  max-width: 540px;
}

.favorites-workspace {
  overflow: hidden;
}

.favorites-workspace .section-heading p:last-child {
  margin-bottom: 0;
}

.favorites-results {
  padding: 20px 24px 24px;
}

.favorites-results .results-grid {
  grid-template-columns: 1fr;
}

.empty-visual {
  position: relative;
  width: min(360px, 100%);
  height: 190px;
  margin-bottom: 28px;
}

.garage-door {
  position: absolute;
  inset: 0 22px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(180deg, #dce9fa 0, #dce9fa 13px, #f8fbff 13px, #f8fbff 26px);
}

.empty-car {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 210px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 50px 62px 22px 22px;
  background: var(--blue-700);
  box-shadow: 0 20px 42px rgba(15, 38, 84, 0.18);
}

.empty-car::before {
  content: "";
  position: absolute;
  left: 62px;
  top: -28px;
  width: 82px;
  height: 44px;
  border-radius: 34px 34px 8px 8px;
  background: var(--blue-900);
}

.empty-car span {
  position: absolute;
  bottom: -13px;
  width: 34px;
  height: 34px;
  border: 7px solid var(--blue-900);
  border-radius: 50%;
  background: var(--white);
}

.empty-car span:first-child {
  left: 35px;
}

.empty-car span:last-child {
  right: 35px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button-primary {
  color: var(--white);
  background: var(--blue-700);
}

.button-secondary {
  color: var(--blue-700);
  background: var(--blue-100);
}

.admin-panel {
  overflow: hidden;
}

.admin-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field span {
  color: var(--blue-900);
  font-weight: 850;
}

.admin-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.admin-field input:focus {
  outline: 3px solid rgba(29, 111, 242, 0.16);
  border-color: var(--blue-600);
}

.admin-field small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-save-status {
  min-height: 24px;
  margin: 0;
  font-weight: 750;
}

.admin-save-status[data-tone="success"],
.admin-status-pill.is-ok {
  color: #007a58;
  background: #e8f8f1;
}

.admin-save-status[data-tone="error"] {
  color: #bd2d2d;
}

.profile-main {
  padding: 28px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-700);
  font-size: 2rem;
  font-weight: 800;
}

.profile-fields {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-050);
}

.field-row span {
  color: var(--muted);
}

.timeline ol {
  display: grid;
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.timeline li {
  position: relative;
  min-height: 32px;
  padding-left: 42px;
  color: var(--muted);
}

.timeline li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 800;
}

.timeline li.done {
  color: var(--ink);
}

.timeline li.done::before {
  color: var(--white);
  background: var(--mint);
}

.home-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 116px);
}

.hero-copy {
  max-width: 580px;
}

.hero-copy h1 {
  font-size: 3.4rem;
}

.car-visual {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(234, 243, 255, 0.72)),
    radial-gradient(circle at 50% 88%, rgba(29, 111, 242, 0.22), transparent 44%);
  overflow: hidden;
}

.car-body {
  position: absolute;
  left: 50%;
  bottom: 108px;
  width: min(460px, 82%);
  height: 146px;
  transform: translateX(-50%);
  border-radius: 96px 120px 34px 34px;
  background: var(--blue-700);
  box-shadow: 0 34px 70px rgba(15, 38, 84, 0.24);
}

.car-body::before {
  content: "";
  position: absolute;
  left: 118px;
  top: -74px;
  width: 188px;
  height: 98px;
  border-radius: 80px 90px 12px 12px;
  background: var(--blue-900);
}

.car-window {
  position: absolute;
  top: -50px;
  height: 50px;
  background: #cde5ff;
}

.car-window-left {
  left: 142px;
  width: 74px;
  border-radius: 42px 8px 8px 8px;
}

.car-window-right {
  left: 224px;
  width: 62px;
  border-radius: 8px 42px 8px 8px;
}

.car-light {
  position: absolute;
  right: 28px;
  top: 75px;
  width: 38px;
  height: 14px;
  border-radius: 999px;
  background: var(--amber);
}

.car-wheel {
  position: absolute;
  bottom: 82px;
  width: 72px;
  height: 72px;
  border: 14px solid var(--blue-900);
  border-radius: 50%;
  background: var(--white);
}

.car-wheel-left {
  left: calc(50% - 176px);
}

.car-wheel-right {
  right: calc(50% - 176px);
}

.mobile-tabs {
  display: none;
}

.mobile-service-header,
.mobile-menu-backdrop {
  display: none;
}

.selection-page {
  background: var(--white);
}

.selection-page .app-shell {
  grid-template-columns: 280px minmax(0, 1fr);
}

.selection-page .sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding: 18px 14px;
  background: #0b2559;
}

.selection-page .brand {
  padding: 0 6px;
}

.selection-page .nav-list {
  gap: 4px;
  margin-top: 12px;
}

.new-chat-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
}

.new-chat-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.new-chat-button.is-disabled {
  pointer-events: none;
  opacity: 0.56;
}

.new-chat-button span:first-child {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 1.18rem;
}

.chat-history {
  display: grid;
  gap: 6px;
  min-height: 0;
  margin-top: 4px;
}

.chat-history h2 {
  margin: 0 8px 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.chat-history-list {
  display: grid;
  gap: 6px;
}

.chat-history-entry {
  display: grid;
}

.chat-history-empty {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.4;
}

.chat-history-item {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.chat-history-item:hover,
.chat-history-item.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.chat-history-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 760;
}

.chat-history-item small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-dialog-id {
  width: calc(100% - 20px);
  margin: -4px 10px 6px;
  padding: 3px 0;
  overflow: hidden;
  border: 0;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  line-height: 1.3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.chat-dialog-id:hover,
.chat-dialog-id:focus-visible {
  color: var(--white);
  outline: none;
  text-decoration: underline;
}

.dialog-comment-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 23, 48, 0.56);
  backdrop-filter: blur(3px);
}

.dialog-comment-backdrop[hidden] {
  display: none;
}

body.dialog-comment-open {
  overflow: hidden;
}

.dialog-comment-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(5, 20, 50, 0.3);
}

.dialog-comment-close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--blue-900);
  background: var(--blue-100);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-comment-header {
  padding: 24px 68px 20px 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-comment-header h2 {
  margin: 0;
  color: var(--blue-900);
}

.dialog-comment-header > p:last-child {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.dialog-comment-form {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.dialog-comment-form label {
  color: var(--blue-900);
  font-weight: 800;
}

.dialog-comment-form textarea {
  width: 100%;
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

.dialog-comment-form textarea:focus {
  outline: 3px solid rgba(29, 111, 242, 0.16);
  border-color: var(--blue-600);
}

.dialog-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.dialog-comment-actions .admin-save-status {
  flex: 1;
}

.chat-layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  background: var(--white);
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid #edf1f7;
}

.chat-topbar h1 {
  margin: 0;
  font-size: 1.12rem;
}

.chat-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.active-dialog-comment {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
  padding: 6px 11px;
  border: 1px solid var(--blue-600);
  border-radius: 10px;
  color: var(--blue-900);
  background: #f0f6ff;
  box-shadow: 0 5px 16px rgba(29, 111, 242, 0.12);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.active-dialog-comment::before {
  content: "✎";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-600);
  font-size: 0.85rem;
  font-weight: 900;
}

.active-dialog-comment:hover {
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 8px 22px rgba(21, 84, 192, 0.25);
  transform: translateY(-1px);
}

.active-dialog-comment:hover::before {
  color: var(--blue-700);
  background: var(--white);
}

.active-dialog-comment:focus-visible {
  outline: 3px solid rgba(29, 111, 242, 0.24);
  outline-offset: 2px;
}

.active-dialog-comment-label {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 850;
}

.active-dialog-comment-id {
  display: flex;
  min-width: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  white-space: nowrap;
}

.active-dialog-comment:hover .active-dialog-comment-id {
  color: rgba(255, 255, 255, 0.76);
}

.active-dialog-comment-id strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
}

.selection-page .status-pill {
  min-height: 28px;
  background: #eef5ff;
}

.selection-page .chat-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
}

.selection-page .chat-window {
  width: min(1120px, calc(100% - 48px));
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  padding: 22px 0 132px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.selection-page .chat-window::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.selection-page .message {
  width: 100%;
  max-width: 100%;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  animation: message-in 240ms ease both;
}

.selection-page .message.user {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.selection-page .message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.selection-page .message-bubble {
  max-width: 720px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fbff;
  box-shadow: 0 8px 22px rgba(15, 38, 84, 0.04);
  line-height: 1.58;
}

.selection-page .message-bubble p {
  margin: 0;
  white-space: pre-line;
}

.selection-page .message.user .message-bubble {
  justify-self: end;
  max-width: min(640px, 84%);
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--white);
  background: var(--blue-700);
}

.selection-page .message.user .message-bubble p {
  color: var(--white);
}

.typing-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 26px;
  color: #24436f;
  font-size: 0.9rem;
  font-weight: 740;
}

.selection-page .typing-message .message-bubble {
  width: auto;
  min-width: 62px;
  padding-block: 11px;
}

.selection-page .search-analysis-message .message-bubble {
  width: min(430px, 100%);
  min-width: 0;
}

.typing-status-text {
  min-width: 0;
}

.typing-dots {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  min-height: 12px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-700);
  opacity: 0.28;
  animation: typing-dot-pulse 1.05s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dot:nth-child(3) {
  animation-delay: 280ms;
}

.typing-status.is-analysis {
  justify-content: flex-start;
  width: 100%;
}

.typing-status.is-analysis .typing-dots {
  margin-left: auto;
}

.typing-status.is-analysis .typing-dot {
  width: 5px;
  height: 5px;
}

.search-analysis-timeline {
  display: contents;
}

.selection-page .search-analysis-timeline .search-analysis-message {
  padding-block: 4px;
  opacity: 0;
  transform: translateY(7px);
  animation: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.selection-page .search-analysis-timeline .search-analysis-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.search-analysis-message-avatar {
  visibility: hidden;
}

.selection-page .search-analysis-step .message-bubble {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(620px, 100%);
  padding: 11px 14px;
  color: #24436f;
  background: #f7faff;
  font-size: 0.88rem;
  font-weight: 680;
}

.search-analysis-step-marker {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #dff4e8;
}

.search-analysis-step-marker::after {
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #178753;
  border-bottom: 2px solid #178753;
  content: "";
  transform: rotate(45deg);
}

.selection-page .search-analysis-selections-title .message-bubble {
  width: min(620px, 100%);
  padding: 12px 15px;
  border-color: #bcd2f5;
  color: var(--blue-700);
  background: #edf4ff;
  font-size: 0.9rem;
  font-weight: 820;
}

.selection-page .search-analysis-selection .message-bubble {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  width: min(680px, 100%);
  padding: 13px 15px;
  border-color: #d4e1f3;
  background: #ffffff;
}

.search-analysis-selection-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #ffffff;
  background: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 850;
}

.search-analysis-selection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.search-analysis-selection-heading strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 820;
  line-height: 1.35;
}

.search-analysis-selection-heading span {
  flex: 0 0 auto;
  max-width: 42%;
  padding: 3px 7px;
  border-radius: 7px;
  color: #245ba4;
  background: #edf4ff;
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.25;
  text-align: right;
}

.selection-page .search-analysis-selection .message-bubble p {
  margin-top: 5px;
  color: #53667f;
  font-size: 0.82rem;
  line-height: 1.48;
}

.composer-quick-replies {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 2px 2px 0;
}

.composer-quick-replies[hidden] {
  display: none;
}

.script-option {
  min-height: 38px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid #c9daf7;
  border-radius: 999px;
  color: var(--blue-700);
  background: #eef5ff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, opacity 150ms ease;
}

.script-option:not(:disabled):hover {
  border-color: var(--blue-700);
  background: #e2edff;
}

.script-option:focus-visible {
  outline: 3px solid rgba(29, 111, 242, 0.2);
  outline-offset: 2px;
}

.script-option:disabled {
  cursor: default;
  opacity: 0.52;
}

.selection-page .result-message .message-bubble {
  max-width: 100%;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fbff;
}

.selection-page .result-message {
  grid-template-columns: minmax(0, 1fr);
}

.selection-page .result-message .message-avatar {
  margin-bottom: 8px;
}

.results-board {
  margin-top: 18px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 38, 84, 0.08);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.result-card:hover,
.result-card:focus-visible,
.result-card.active {
  border-color: #8bb7ff;
  box-shadow: 0 18px 42px rgba(21, 84, 192, 0.15);
  transform: translateY(-2px);
  outline: none;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px 0;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: calc(100% - 48px);
  min-height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  color: #007a58;
  background: #e8f8f1;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
}

.result-badge-best {
  color: #064fc4;
  background: #eaf3ff;
}

.result-badge-fresh {
  color: #6b2ac9;
  background: #f2eaff;
}

.result-badge-alt {
  color: #e26b00;
  background: #fff1e5;
}

.result-badge-icon,
.result-favorite-icon,
.result-preview-icon,
.result-open-arrow-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.result-badge-icon {
  width: 16px;
  height: 16px;
}

.result-badge svg,
.result-favorite svg,
.result-preview-spec svg,
.result-open-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.result-favorite {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #dce6f4;
  border-radius: 8px;
  color: var(--blue-900);
  background: #fbfdff;
}

.result-favorite-icon {
  width: 20px;
  height: 20px;
}

.favorite-saved .result-favorite {
  color: #0454dc;
  border-color: #b9d3ff;
  background: #eaf3ff;
}

.favorite-saved .result-favorite svg,
.car-detail-action.is-active svg,
.car-detail-gallery-button.favorite.is-active svg {
  fill: currentColor;
}

.result-card-preview {
  display: grid;
  grid-template-columns: minmax(148px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  min-width: 0;
  padding: 0 16px;
}

.result-image {
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1f7;
  aspect-ratio: 1.12;
}

.result-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-card-summary {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.result-card h3 {
  margin: 0;
  color: #07142d;
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.result-preview-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.result-preview-spec {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #28406d;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.result-preview-icon {
  width: 16px;
  height: 16px;
  color: #214c8f;
}

.result-location {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 16px 12px;
  color: #1d3359;
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.25;
}

.result-location-flag {
  position: relative;
  flex: 0 0 auto;
  width: 23px;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 33, 73, 0.14);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 38, 84, 0.08);
}

.result-location-flag-jp::before {
  content: "";
  position: absolute;
  inset: 4px 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d94141 0 50%, #1f57b8 50% 100%);
}

.result-location-flag-kr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(13, 33, 73, 0.16);
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
}

.result-location-flag-kr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-location-label {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  line-height: 16px;
}

.result-location-flag-jp::before {
  background: #d94141;
}

.result-location-flag-us {
  background:
    linear-gradient(#214c8f 0 0) 0 0 / 10px 8px no-repeat,
    repeating-linear-gradient(180deg, #e64646 0 2px, #fff 2px 4px);
}

.result-location-flag-de {
  background: linear-gradient(180deg, #1b1b1b 0 33%, #df3d3d 33% 66%, #f0c247 66% 100%);
}

.result-location-flag-pl {
  background: linear-gradient(180deg, #fff 0 50%, #dc3445 50% 100%);
}

.result-location-flag-ge {
  background:
    linear-gradient(#d93434 0 0) center / 100% 3px no-repeat,
    linear-gradient(90deg, transparent 0 45%, #d93434 45% 55%, transparent 55% 100%),
    #fff;
}

.result-location-flag-generic::before {
  content: "";
  position: absolute;
  inset: 4px 8px 4px 7px;
  border-radius: 50%;
  background: var(--blue-700);
}

.result-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 68px;
  border-top: 1px solid #e2eaf5;
}

.result-price-main,
.result-price-saving {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px 0 16px;
}

.result-price-saving {
  border-left: 1px solid #e2eaf5;
}

.result-price-main span,
.result-price-saving span {
  color: #35486a;
  font-size: 0.74rem;
  font-weight: 650;
}

.result-price-main strong,
.result-price-saving strong {
  color: #07142d;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.result-price-saving strong {
  color: #00a66a;
  font-size: 0.96rem;
}

.result-open-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  color: var(--blue-700);
}

.result-open-arrow-icon {
  width: 24px;
  height: 24px;
}

.result-specs,
.result-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.result-spec,
.result-price {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f7f9fd;
}

.result-spec span,
.result-price span {
  color: var(--muted);
  font-size: 0.72rem;
}

.result-spec strong,
.result-price strong {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.result-prices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-price {
  background: #eef5ff;
}

.result-reason {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.45;
}

.result-card-summary .result-reason {
  padding: 9px 10px;
  border-left: 3px solid #9dbff1;
  border-radius: 0 8px 8px 0;
  color: #405875;
  background: #f3f7fd;
  font-size: 0.78rem;
  line-height: 1.4;
}

.result-open {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--blue-700);
  background: #eef5ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.car-detail-panel {
  display: grid;
  gap: 22px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d7e5f7;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 22px 54px rgba(15, 38, 84, 0.14);
}

.car-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.96fr) minmax(360px, 1.04fr);
  gap: 22px;
  align-items: start;
}

.car-detail-gallery {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.car-detail-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  border-radius: 8px;
  background: #e9eef7;
  object-fit: cover;
}

.car-detail-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(12, 25, 52, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
}

.car-detail-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.car-detail-thumb {
  flex: 0 0 66px;
  width: 66px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #e9eef7;
  cursor: pointer;
}

.car-detail-thumb.active,
.car-detail-thumb:focus-visible {
  border-color: var(--blue-700);
  outline: none;
}

.car-detail-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-detail-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.car-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.car-detail-summary h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.52rem;
  line-height: 1.16;
}

.car-detail-summary > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.car-detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.car-detail-metric {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 11px;
  border-radius: 8px;
  background: #eef4fc;
}

.car-detail-metric.accent {
  color: #0f3c7f;
  background: #e7f1ff;
}

.car-detail-metric span {
  color: var(--muted);
  font-size: 0.72rem;
}

.car-detail-metric strong {
  color: inherit;
  font-size: 1.02rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.car-detail-fast-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.car-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.car-detail-action {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd9ee;
  border-radius: 8px;
  color: var(--blue-700);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.car-detail-action.primary {
  border-color: var(--blue-700);
  color: #fff;
  background: var(--blue-700);
}

.car-detail-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.car-detail-group {
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid #e2eaf6;
}

.car-detail-group h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.96rem;
}

.car-detail-list {
  display: grid;
  gap: 8px;
}

.car-detail-row {
  display: grid;
  grid-template-columns: minmax(118px, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid #eef3fa;
}

.car-detail-row.wide {
  grid-template-columns: 1fr;
}

.car-detail-row > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.car-detail-row > strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.car-detail-row a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.car-detail-json {
  display: grid;
  gap: 12px;
  font-weight: 500;
}

.car-detail-json section {
  display: grid;
  gap: 6px;
}

.car-detail-json h5 {
  margin: 0;
  color: var(--blue-900);
  font-size: 0.82rem;
}

.car-detail-json ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.car-detail-json li,
.car-detail-nested-row > span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f0f5fc;
  color: #24324d;
  font-size: 0.76rem;
}

.car-detail-nested {
  display: grid;
  gap: 8px;
}

.car-detail-nested-row {
  display: grid;
  gap: 5px;
}

.car-detail-nested-row > strong {
  color: var(--muted);
  font-size: 0.76rem;
}

.selection-page .chat-form {
  position: sticky;
  z-index: 20;
  bottom: 0;
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--white) 24%);
}

.selection-page .chat-form input,
.selection-page .chat-form textarea {
  min-height: 54px;
  padding: 16px 18px;
  border-color: #dbe4f1;
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(15, 38, 84, 0.1);
}

.selection-page .chat-form input:disabled,
.selection-page .chat-form textarea:disabled,
.selection-page .send-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.selection-page .send-button {
  width: 46px;
  height: 46px;
  align-self: center;
  border-radius: 14px;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing-dot-pulse {
  0%,
  60%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-dot {
    animation: none;
    opacity: 0.72;
  }

  .selection-page .search-analysis-timeline .search-analysis-message {
    transition: none;
  }
}

#logic,
#trust,
#flow {
  scroll-margin-top: 96px;
}

.home-page {
  background: #f1efec;
}

.home-nav {
  position: fixed;
  z-index: 30;
  top: 30px;
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1120px, calc(100% - 88px));
  min-height: 56px;
  padding: 8px 10px 8px 14px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  backdrop-filter: blur(20px);
}

.home-nav .brand-mark {
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, #1f7aff, #0845d9);
  border: 0;
  box-shadow: 0 10px 20px rgba(12, 76, 205, 0.24);
}

.home-nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.home-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  color: #14233d;
  font-size: 0.92rem;
  font-weight: 750;
}

.home-nav-links a:hover {
  color: #df6109;
  background: transparent;
}

.home-nav .button-primary,
.home-page .button-hero {
  color: var(--white);
  background: linear-gradient(135deg, #ff8128, #df5700);
  box-shadow: 0 14px 34px rgba(219, 84, 0, 0.28);
}

.home-menu-toggle {
  display: none;
  place-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: #0c1e3a;
  background: transparent;
  cursor: pointer;
}

.home-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.landing-hero {
  position: relative;
  display: grid;
  align-items: start;
  isolation: isolate;
  width: min(1516px, calc(100% - 40px));
  min-height: 920px;
  margin: 8px auto 0;
  padding: 112px 0 42px;
  overflow: hidden;
  color: #10213c;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 82% 86% at 50% 40%, #fff 0 56%, rgba(255, 255, 255, 0.9) 68%, rgba(255, 255, 255, 0.45) 84%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 58% 48% at 70% 36%, rgba(239, 244, 249, 0.74), rgba(239, 244, 249, 0) 72%);
  box-shadow:
    inset 74px 0 96px -54px #f1efec,
    inset -74px 0 96px -54px #f1efec,
    inset 0 -132px 136px -74px #f1efec;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, #000 0, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(180deg, #000 0, #000 86%, transparent 100%);
  mask-composite: intersect;
}

.landing-hero-image {
  position: absolute;
  z-index: 1;
  top: 220px;
  left: 400px;
  width: 730px;
  height: auto;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  -webkit-mask-image:
    radial-gradient(ellipse at 50% 51%, #000 0 41%, rgba(0, 0, 0, 0.62) 56%, transparent 76%),
    linear-gradient(180deg, #000 0 67%, rgba(0, 0, 0, 0.75) 76%, transparent 93%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse at 50% 51%, #000 0 41%, rgba(0, 0, 0, 0.62) 56%, transparent 76%),
    linear-gradient(180deg, #000 0 67%, rgba(0, 0, 0, 0.75) 76%, transparent 93%);
  mask-composite: intersect;
  transition: transform 450ms ease;
}

.landing-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 28%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.18) 72%, rgba(255, 255, 255, 0.86) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(238, 243, 248, 0.38) 100%);
  -webkit-mask-image:
    radial-gradient(ellipse 86% 88% at 50% 39%, #000 0 63%, rgba(0, 0, 0, 0.68) 76%, transparent 100%),
    linear-gradient(180deg, #000 0 80%, rgba(0, 0, 0, 0.72) 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 86% 88% at 50% 39%, #000 0 63%, rgba(0, 0, 0, 0.68) 76%, transparent 100%),
    linear-gradient(180deg, #000 0 80%, rgba(0, 0, 0, 0.72) 88%, transparent 100%);
  mask-composite: intersect;
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 230px) 320px;
  grid-template-areas:
    "copy . panel"
    "copy metricA panel"
    "copy metricA metricB"
    "logos logos logos";
  gap: 20px 14px;
  align-items: end;
  width: min(1228px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 22px;
}

.landing-hero .eyebrow {
  color: #df6109;
  font-size: 1rem;
  text-transform: none;
}

.landing-hero h1 {
  max-width: 520px;
  margin-bottom: 18px;
  color: #10213c;
  font-size: 3.9rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.landing-hero h1 span {
  display: block;
  color: #df6109;
}

.hero-lead {
  max-width: 420px;
  margin-bottom: 28px;
  color: #31405a;
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-copy-block {
  grid-area: copy;
  position: relative;
  left: 8px;
  top: -9px;
  margin-left: -58px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.home-page .button-hero {
  gap: 28px;
  min-width: 322px;
  min-height: 68px;
  justify-content: space-between;
  padding: 0 14px 0 30px;
  font-size: 1.06rem;
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #df6109;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(223, 97, 9, 0.06);
}

.button-arrow img {
  display: block;
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.hero-note-wrap {
  position: relative;
  display: inline-block;
  margin-top: 16px;
}

.hero-note {
  margin: 0;
  color: #5b6880;
  font-size: 0.96rem;
}

.hero-note-arrow {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(240, 90, 0, 0.14));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.hero-note-arrow-left {
  right: -39px;
  top: -18px;
  width: 52px;
  height: 30px;
  transform: translate(6px, 11px) rotate(150deg);
}

.hero-note-arrow-right {
  right: -101px;
  top: -31px;
  width: 76px;
  height: 58px;
  transform: translate(-66px, -27px) rotate(0deg);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 104px));
  gap: 31px;
  margin-top: 0;
}

.hero-proof div {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 118px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: center;
}

.hero-proof-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  color: #0f213b;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 38px rgba(55, 68, 90, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.hero-proof-icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hero-proof strong {
  display: block;
  margin-bottom: 0;
  color: #11233e;
  font-size: 0.78rem;
  line-height: 1.24;
}

.hero-proof span {
  color: inherit;
}

.hero-decision-panel {
  grid-area: panel;
  position: relative;
  left: 215px;
  top: 4px;
  display: grid;
  gap: 16px;
  align-self: start;
  min-height: 500px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 64px rgba(33, 43, 60, 0.12);
}

.decision-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #10213c;
  font-size: 0.88rem;
}

.decision-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #13a672;
  background: #dff8ec;
  font-weight: 900;
}

.decision-radar {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin: 0 auto;
  width: min(100%, 258px);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 35%, rgba(238, 98, 17, 0.2) 36% 36.8%, transparent 37.5% 55%, rgba(35, 124, 224, 0.24) 56% 56.8%, transparent 57.5% 75%, rgba(238, 98, 17, 0.2) 76% 76.8%, transparent 77%),
    rgba(246, 248, 251, 0.46);
  overflow: visible;
}

.decision-radar img {
  position: relative;
  z-index: 2;
  width: 82%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(0 18px 22px rgba(13, 30, 58, 0.2));
}

.radar-line {
  position: absolute;
  inset: 50% 8%;
  height: 1px;
  background: rgba(72, 117, 173, 0.46);
}

.radar-line.vertical {
  transform: rotate(90deg);
}

.radar-dot {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ed6a14;
}

.dot-a {
  top: 10%;
  left: 50%;
}

.dot-b {
  top: 26%;
  right: 17%;
}

.dot-c {
  bottom: 18%;
  left: 18%;
  background: #8ec3ee;
}

.dot-d {
  bottom: 13%;
  right: 32%;
}

.radar-badge {
  position: absolute;
  z-index: 4;
  bottom: 14%;
  left: 50%;
  display: inline-flex;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 49, 91, 0.2);
}

.radar-badge b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  color: #fff;
  background: #135ee7;
  font-size: 0.86rem;
}

.radar-badge b + b {
  color: #424b5e;
  background: #eceef2;
}

.decision-stats {
  display: grid;
  gap: 0;
}

.decision-stats div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 1px solid rgba(22, 37, 64, 0.09);
  color: #293750;
  font-size: 0.78rem;
}

.decision-stats div:last-child {
  border-bottom: 0;
}

.decision-stats strong {
  color: #0e1e39;
  font-size: 0.92rem;
}

.decision-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #df6109;
  background: #fff0e7;
  font-size: 0.78rem;
  font-weight: 900;
}

.decision-icon img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.hero-metric-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 52px rgba(33, 43, 60, 0.1);
}

.metric-average {
  grid-area: metricA;
  position: relative;
  left: 213px;
  top: 2px;
}

.metric-total {
  grid-area: metricB;
  position: relative;
  left: 217px;
  top: 4px;
}

.hero-metric-card span {
  color: #33415a;
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-metric-card strong {
  color: #0f213c;
  font-size: 1.65rem;
  line-height: 1;
}

.hero-metric-card svg {
  width: 100%;
  height: 34px;
}

.hero-metric-card polyline {
  fill: none;
  stroke: #eb650e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-logo-strip {
  grid-area: logos;
  position: relative;
  left: 16px;
  top: 9px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  min-height: 92px;
  margin-top: 6px;
  padding: 0 50px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  color: #63718a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 56px rgba(33, 43, 60, 0.1);
  text-align: center;
  font-size: 1.22rem;
  font-weight: 900;
}

.hero-logo-strip span + span {
  border-left: 1px solid rgba(58, 72, 96, 0.26);
}

.hero-logo-strip img {
  display: block;
  width: min(132px, 80%);
  height: 44px;
  margin: 0 auto;
  object-fit: contain;
}

.hero-mobile-visual {
  display: none;
}

.hero-tuner-active .hero-copy-block,
.hero-tuner-active .hero-decision-panel,
.hero-tuner-active .hero-metric-card,
.hero-tuner-active .hero-logo-strip,
.hero-tuner-active .hero-note-arrow {
  cursor: move;
  outline: 1px dashed rgba(21, 84, 192, 0.36);
  outline-offset: 4px;
}

.hero-tuner-active .hero-note-arrow {
  pointer-events: auto;
}

.hero-tuner-active .landing-hero-image {
  cursor: move;
  outline: 1px dashed rgba(21, 84, 192, 0.36);
  outline-offset: 4px;
  transition: none;
}

.hero-tuner-active .is-tune-selected {
  outline: 2px dashed rgba(223, 97, 9, 0.9);
  outline-offset: 5px;
}

.hero-tuner-panel {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  width: 304px;
  padding: 12px;
  border: 1px solid rgba(14, 30, 57, 0.14);
  border-radius: 8px;
  color: #10213c;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(14, 30, 57, 0.18);
}

.hero-tuner-panel strong {
  font-size: 0.9rem;
}

.hero-tuner-panel span {
  color: #5d6a80;
  font-size: 0.72rem;
  line-height: 1.35;
}

.hero-tuner-panel label {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-tuner-panel select {
  min-height: 34px;
  border: 1px solid #d8e2f1;
  border-radius: 8px;
  color: #10213c;
  background: #fff;
  font-weight: 800;
}

.hero-tuner-panel input,
.hero-tuner-panel textarea {
  width: 100%;
  border: 1px solid #d8e2f1;
  border-radius: 8px;
  color: #10213c;
  background: #fff;
}

.hero-tuner-panel input {
  min-height: 32px;
  padding: 0 8px;
}

.hero-tuner-panel textarea {
  resize: none;
  padding: 8px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.hero-tuner-panel div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hero-tuner-panel button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1554c0;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-tuner-panel button:last-child {
  color: #1554c0;
  background: #eaf3ff;
}

.hero-tuner-panel > button {
  color: #10213c;
  background: #eef3fb;
}

.signal-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.signal-track {
  display: flex;
  width: max-content;
  padding: 16px 0;
  animation: signalSlide var(--marquee-duration, 28s) linear infinite;
  will-change: transform;
}

.signal-group {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  padding-right: 12px;
}

.signal-group span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-900);
  background: var(--blue-050);
  font-weight: 800;
}

@keyframes signalSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(var(--marquee-distance, 0px) * -1));
  }
}

.home-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.intro-band {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 800;
}

.intro-band h2,
.section-head h2,
.trust-copy h2,
.cta-section h2 {
  margin-bottom: 14px;
  font-size: 3.1rem;
  line-height: 1.06;
}

.intro-band p,
.section-head p,
.trust-copy p,
.cta-section p {
  max-width: 760px;
  font-size: 1.08rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.logic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.showcase-main {
  position: relative;
  min-height: 486px;
  padding: 24px;
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 16%, rgba(22, 169, 121, 0.24), transparent 32%),
    linear-gradient(145deg, #082457, #071934);
  box-shadow: 0 28px 58px rgba(15, 38, 84, 0.18);
  overflow: hidden;
}

.showcase-main::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.16) 48%, transparent 60%);
  transform: translateX(-45%);
  animation: showcaseScan 6.5s ease-in-out infinite;
  pointer-events: none;
}

.showcase-main > * {
  position: relative;
  z-index: 1;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.showcase-header span {
  color: #9fc6ff;
  font-weight: 850;
}

.showcase-header strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #bff6df;
  background: rgba(22, 169, 121, 0.14);
  font-size: 0.82rem;
}

.score-ring {
  --score-angle: 0deg;
  display: grid;
  place-items: center;
  align-content: center;
  width: 168px;
  height: 168px;
  margin: 34px 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, #071934 54%, transparent 55%),
    conic-gradient(var(--mint) 0 var(--score-angle), rgba(255, 255, 255, 0.18) var(--score-angle) 100%);
  filter: drop-shadow(0 18px 32px rgba(22, 169, 121, 0.16));
  transition: --score-angle 1100ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.score-ring span {
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 0.9;
}

.score-ring small {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}

.signal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease, border-color 220ms ease, background 220ms ease;
}

.signal-list strong {
  color: var(--white);
}

.showcase-main.is-visible .signal-list li {
  opacity: 1;
  transform: translateY(0);
}

.showcase-main.is-visible .signal-list li:nth-child(1) {
  transition-delay: 180ms;
}

.showcase-main.is-visible .signal-list li:nth-child(2) {
  transition-delay: 260ms;
}

.showcase-main.is-visible .signal-list li:nth-child(3) {
  transition-delay: 340ms;
}

.showcase-main.is-visible .signal-list li:nth-child(4) {
  transition-delay: 420ms;
}

.signal-list li:hover {
  border-color: rgba(22, 169, 121, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

@keyframes showcaseScan {
  0%,
  58% {
    transform: translateX(-45%);
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(45%);
    opacity: 0;
  }
}

.logic-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.logic-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(15, 38, 84, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.logic-card:hover {
  transform: translateY(-4px);
  border-color: #bdd5f7;
  box-shadow: 0 24px 48px rgba(15, 38, 84, 0.12);
}

.logic-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-700);
  font-size: 0.92rem;
  font-weight: 900;
}

.logic-card h3,
.flow-step h3 {
  margin: 0 0 10px;
  color: var(--blue-900);
  font-size: 1.22rem;
}

.role-section {
  width: 100%;
  padding: 78px max(20px, calc((100vw - 1180px) / 2));
  background: #071f4f;
}

.role-section .section-head h2,
.role-section .section-head p,
.role-section .eyebrow {
  color: var(--white);
}

.recommendation-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.recommendation-strip article {
  min-height: 170px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.recommendation-strip span {
  display: block;
  margin-bottom: 28px;
  color: #9fc6ff;
  font-weight: 800;
}

.recommendation-strip strong {
  display: block;
  min-height: 60px;
  font-size: 1.26rem;
  line-height: 1.2;
}

.recommendation-strip p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
}

.trust-list {
  display: grid;
  gap: 12px;
}

.trust-row {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border-left: 4px solid var(--blue-700);
  border-radius: 8px;
  background: var(--blue-050);
}

.trust-row strong {
  color: var(--blue-900);
  font-size: 1.08rem;
}

.trust-row span {
  color: var(--muted);
  line-height: 1.5;
}

.flow-section {
  border-top: 1px solid var(--line);
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-step {
  position: relative;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.flow-step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 26px;
  border-radius: 50%;
  color: var(--white);
  background: var(--mint);
  font-weight: 900;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
  padding: 42px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(29, 111, 242, 0.96), rgba(11, 37, 89, 0.98)),
    var(--blue-900);
}

.cta-section h2,
.cta-section .eyebrow {
  color: var(--white);
}

.cta-section p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.transition-page {
  min-height: 100vh;
  background: var(--blue-050);
}

.transition-screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(216, 226, 241, 0.45) 1px, transparent 1px),
    linear-gradient(180deg, rgba(216, 226, 241, 0.45) 1px, transparent 1px),
    radial-gradient(circle at 50% 38%, rgba(29, 111, 242, 0.14), transparent 36%),
    var(--blue-050);
  background-size: 44px 44px, 44px 44px, auto, auto;
  transition: opacity 420ms ease;
}

.transition-page.is-exiting .transition-screen {
  opacity: 0;
}

.loader-card {
  display: grid;
  justify-items: center;
  width: min(420px, 100%);
  text-align: center;
}

.loader-motion {
  position: relative;
  display: grid;
  place-items: center;
  width: min(440px, 100%);
  height: 132px;
  overflow: visible;
}

.loader-mark {
  --wheel-exit: min(55vw, 540px);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(15, 38, 84, 0.14), 0 0 0 0 rgba(11, 37, 89, 0);
  animation: logoToWheel 2.85s cubic-bezier(0.22, 0.72, 0.16, 1) forwards;
  will-change: transform, border-radius;
}

.loader-logo {
  color: var(--blue-700);
  font-weight: 900;
  opacity: 1;
  transition: opacity 180ms ease;
  animation: logoLettersOut 2.85s ease forwards;
}

.loader-wheel {
  position: absolute;
  inset: 7px;
  border: 8px solid #071934;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle, #0b2559 0 11%, transparent 12%),
    radial-gradient(circle, #f8fbff 0 21%, transparent 22%),
    conic-gradient(from 16deg, rgba(29, 111, 242, 0.95) 0 8%, transparent 8% 17%, rgba(29, 111, 242, 0.95) 17% 25%, transparent 25% 34%, rgba(29, 111, 242, 0.95) 34% 42%, transparent 42% 51%, rgba(29, 111, 242, 0.95) 51% 59%, transparent 59% 68%, rgba(29, 111, 242, 0.95) 68% 76%, transparent 76% 85%, rgba(29, 111, 242, 0.95) 85% 93%, transparent 93% 100%),
    radial-gradient(circle, #d8e9ff 0 54%, #ffffff 55% 68%, #9bbceb 69% 100%);
  animation: wheelFaceIn 2.85s ease forwards;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.72),
    inset 0 0 0 14px rgba(11, 37, 89, 0.08);
}

.loader-wheel::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: inherit;
  box-shadow: inset 0 0 0 4px rgba(7, 25, 52, 0.12);
}

.tire-track {
  position: absolute;
  z-index: 0;
  left: calc(50% - 36px);
  bottom: 25px;
  width: min(56vw, 520px);
  height: 18px;
  opacity: 0;
  transform-origin: left center;
  background:
    repeating-linear-gradient(90deg, rgba(11, 37, 89, 0.36) 0 14px, transparent 14px 25px),
    linear-gradient(90deg, rgba(11, 37, 89, 0.24), rgba(11, 37, 89, 0.12), transparent);
  filter: blur(0.15px);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 72%, transparent);
  animation: tireTrack 2.85s cubic-bezier(0.22, 0.72, 0.16, 1) forwards;
}

.tire-smoke {
  --smoke-x: -74px;
  --smoke-y: -18px;
  --smoke-scale: 2.35;
  position: absolute;
  z-index: 0;
  left: calc(50% - 38px);
  bottom: 30px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  opacity: 0;
  background: rgba(86, 109, 144, 0.42);
  filter: blur(8px);
  animation: tireSmoke 2.85s ease-out forwards;
}

.smoke-two {
  --smoke-x: -104px;
  --smoke-y: -8px;
  --smoke-scale: 2.7;
  width: 32px;
  height: 32px;
  animation-delay: 0.1s;
}

.smoke-three {
  --smoke-x: -48px;
  --smoke-y: -30px;
  --smoke-scale: 2.1;
  width: 18px;
  height: 18px;
  animation-delay: 0.2s;
}

@keyframes logoToWheel {
  0% {
    border-radius: 14px;
    transform: translateX(0) rotate(0deg);
  }
  32% {
    border-radius: 22px;
    transform: translateX(0) rotate(360deg);
  }
  48% {
    border-radius: 50%;
    border-color: transparent;
    transform: translateX(0) rotate(560deg);
  }
  78% {
    opacity: 1;
  }
  100% {
    border-radius: 50%;
    border-color: transparent;
    opacity: 0;
    transform: translateX(var(--wheel-exit)) rotate(1160deg);
  }
}

@keyframes logoLettersOut {
  0%,
  34% {
    opacity: 1;
    transform: scale(1);
  }
  48%,
  100% {
    opacity: 0;
    transform: scale(0.72);
  }
}

@keyframes tireTrack {
  0%,
  40% {
    opacity: 0;
    transform: scaleX(0);
  }
  52% {
    opacity: 1;
  }
  100% {
    opacity: 0.78;
    transform: scaleX(1);
  }
}

@keyframes tireSmoke {
  0%,
  42% {
    opacity: 0;
    transform: translate(0, 0) scale(0.45);
  }
  54% {
    opacity: 0.62;
  }
  100% {
    opacity: 0.34;
    transform: translate(var(--smoke-x), var(--smoke-y)) scale(var(--smoke-scale));
  }
}

@keyframes wheelFaceIn {
  0%,
  36% {
    opacity: 0;
  }
  48%,
  100% {
    opacity: 1;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-nav[data-animate] {
  transform: translateX(-50%) translateY(18px);
}

.home-nav[data-animate].is-visible {
  transform: translateX(-50%) translateY(0);
}

.logic-card:nth-child(2),
.recommendation-strip article:nth-child(2),
.trust-row:nth-child(2),
.flow-step:nth-child(2) {
  transition-delay: 80ms;
}

.logic-card:nth-child(3),
.recommendation-strip article:nth-child(3),
.trust-row:nth-child(3),
.flow-step:nth-child(3) {
  transition-delay: 150ms;
}

.logic-card:nth-child(4),
.recommendation-strip article:nth-child(4),
.flow-step:nth-child(4) {
  transition-delay: 220ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .home-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    top: 14px;
    width: calc(100% - 28px);
  }

  .home-nav-links {
    display: none;
  }

  .home-nav .button-primary {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .home-menu-toggle {
    display: grid;
    grid-column: 3;
    justify-self: end;
  }

  .landing-hero {
    width: calc(100% - 18px);
    min-height: auto;
    padding: 96px 0 34px;
  }

  .landing-hero-content {
    grid-template-areas:
      "copy copy"
      "mobileVisual mobileVisual"
      "panel panel"
      "metricA metricB"
      "logos logos";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    width: calc(100% - 32px);
  }

  .landing-hero-image {
    display: none;
  }

  .hero-copy-block,
  .hero-decision-panel,
  .hero-metric-card,
  .hero-logo-strip {
    position: static;
    left: auto;
    top: auto;
  }

  .landing-hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.32) 44%, rgba(229, 235, 242, 0.8) 100%);
  }

  .hero-proof,
  .logic-grid,
  .recommendation-strip,
  .flow-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero h1 {
    max-width: 580px;
    font-size: 3rem;
  }

  .hero-mobile-visual {
    grid-area: mobileVisual;
    display: block;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
  }

  .hero-mobile-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 67% center;
  }

  .hero-decision-panel {
    width: 100%;
    min-height: 0;
    padding: 22px;
  }

  .decision-radar {
    display: none;
  }

  .hero-metric-card {
    min-height: 138px;
  }

  .hero-logo-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 82px;
    padding: 0 18px;
    font-size: 1rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-main {
    min-height: auto;
  }

  .intro-band,
  .trust-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-section {
    padding: 56px 0;
  }

  .role-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .cta-section {
    display: grid;
    padding: 28px;
  }

  .app-shell {
    display: block;
    padding-bottom: calc(65px + env(safe-area-inset-bottom));
    padding-top: 56px;
  }

  .mobile-service-header {
    position: fixed;
    z-index: 55;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #e7edf6;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
  }

  .mobile-service-brand {
    flex: 0 0 auto;
    color: var(--blue-900);
    font-size: 0.98rem;
    font-weight: 850;
  }

  .mobile-dialog-comment {
    display: grid;
    min-width: 0;
    width: min(43vw, 180px);
    min-height: 42px;
    margin-left: auto;
    margin-right: 8px;
    padding: 5px 10px;
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    color: var(--white);
    background: var(--blue-700);
    box-shadow: 0 6px 16px rgba(21, 84, 192, 0.22);
    text-align: left;
    cursor: pointer;
  }

  .mobile-dialog-comment > span {
    font-size: 0.69rem;
    font-weight: 850;
    line-height: 1.2;
  }

  .mobile-dialog-comment > strong {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.72);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.56rem;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dialog-comment:focus-visible {
    outline: 3px solid rgba(29, 111, 242, 0.28);
    outline-offset: 2px;
  }

  .mobile-menu-button {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    color: var(--blue-900);
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 56;
    inset: 0;
    display: block;
    pointer-events: none;
    background: rgba(9, 23, 48, 0);
    opacity: 0;
    transition: opacity 180ms ease, background 180ms ease;
  }

  .sidebar,
  .selection-page .sidebar {
    position: fixed;
    z-index: 60;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(82vw, 304px);
    height: 100dvh;
    max-width: 304px;
    padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
    transform: translateX(-104%);
    transition: transform 220ms ease;
    box-shadow: 24px 0 54px rgba(6, 18, 42, 0.22);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  body.mobile-menu-open .mobile-menu-backdrop {
    pointer-events: auto;
    background: rgba(9, 23, 48, 0.32);
    opacity: 1;
  }

  body.mobile-menu-open .mobile-menu-button span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  body.mobile-menu-open .mobile-menu-button span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu-button span {
    transition: transform 180ms ease;
  }

  .content-grid {
    padding: 16px;
  }

  .selection-grid,
  .profile-grid,
  .single-column {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    min-height: calc(100vh - 96px);
  }

  .selection-grid .chat-panel {
    margin-bottom: 84px;
  }

  .selection-page .chat-layout {
    min-height: 0;
  }

  .selection-page .chat-topbar {
    display: none;
  }

  .selection-page .chat-form {
    width: min(100% - 24px, 860px);
  }

  .selection-page .chat-window {
    width: min(100% - 24px, 1120px);
    padding: 18px 0;
  }

  .selection-page .chat-panel {
    height: calc(100vh - 121px - env(safe-area-inset-bottom));
    height: calc(100dvh - 121px - env(safe-area-inset-bottom));
  }

  .selection-page .chat-form {
    position: static;
    flex: 0 0 auto;
    bottom: auto;
    padding: 10px 0 12px;
    background: var(--white);
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .car-detail-hero {
    grid-template-columns: 1fr;
  }

  .car-detail-metrics,
  .car-detail-fast-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .car-detail-groups {
    grid-template-columns: 1fr;
  }

  .side-panel {
    padding: 18px;
  }

  .mobile-tabs {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #e6edf7;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 26px rgba(15, 38, 84, 0.08);
    backdrop-filter: blur(18px);
  }

  .mobile-tab {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 48px;
    border-radius: 0;
    color: #8794aa;
    font-size: 0.66rem;
    font-weight: 800;
  }

  .mobile-tab span:first-child {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
  }

  .mobile-tab svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
  }

  .mobile-tab.active {
    color: var(--blue-700);
    background: transparent;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0 26px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .car-visual {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .home-nav {
    top: 8px;
    gap: 12px;
    min-height: 58px;
    padding: 8px 10px;
    width: calc(100% - 18px);
    background: rgba(255, 255, 255, 0.82);
  }

  .home-nav[data-animate],
  .home-nav[data-animate].is-visible {
    transform: translateX(-50%) translateY(0);
  }

  .home-nav .brand {
    gap: 8px;
    font-size: 0.98rem;
  }

  .home-nav .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .home-nav .button-primary {
    display: none;
  }

  .landing-hero {
    width: calc(100% - 14px);
    margin-top: 6px;
    padding: 72px 0 18px;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 97%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 97%, transparent 100%);
  }

  .landing-hero-content {
    grid-template-areas:
      "copy"
      "mobileVisual"
      "panel"
      "metricA metricB"
      "logos logos";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 20px);
    gap: 10px;
    padding-top: 0;
  }

  .hero-copy-block {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .hero-copy-block[data-animate],
  .hero-copy-block[data-animate].is-visible,
  .hero-decision-panel[data-animate],
  .hero-decision-panel[data-animate].is-visible,
  .hero-metric-card[data-animate],
  .hero-metric-card[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .landing-hero h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 1.86rem;
    line-height: 1.12;
  }

  .hero-lead {
    display: none;
  }

  .hero-actions {
    order: -2;
    display: grid;
    justify-items: start;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .home-page .button-hero {
    width: min(100%, 260px);
    min-width: 0;
    min-height: 38px;
    justify-content: center;
    padding: 0 16px;
    font-size: 0.84rem;
  }

  .button-arrow,
  .hero-note-wrap {
    display: none;
  }

  .landing-hero .eyebrow {
    order: -1;
    margin-bottom: 8px;
    font-size: 0.86rem;
  }

  .hero-proof,
  .logic-grid,
  .recommendation-strip,
  .flow-line {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
  }

  .hero-proof div {
    min-height: auto;
    padding: 0;
    gap: 8px;
  }

  .hero-proof-icon {
    width: 52px;
    height: 52px;
  }

  .hero-proof strong {
    font-size: 0.66rem;
  }

  .hero-proof span {
    font-size: 0.72rem;
  }

  .hero-mobile-visual {
    grid-column: 1 / -1;
    height: clamp(176px, 64vw, 230px);
    margin-top: 8px;
  }

  .hero-decision-panel {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.76);
  }

  .decision-top {
    font-size: 0.78rem;
  }

  .decision-stats div {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 38px;
    font-size: 0.72rem;
  }

  .decision-stats strong {
    font-size: 0.76rem;
  }

  .logic-grid.compact {
    grid-template-columns: 1fr;
  }

  .hero-metric-card {
    min-height: 104px;
    padding: 12px;
    gap: 8px;
  }

  .hero-metric-card strong {
    font-size: 1.12rem;
  }

  .hero-metric-card span {
    font-size: 0.72rem;
  }

  .hero-logo-strip {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 64px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .hero-logo-strip span:nth-child(n+4) {
    display: none;
  }

  .signal-track {
    animation-duration: 42s;
  }

  .home-section {
    width: calc(100% - 24px);
    padding: 44px 0;
  }

  .intro-band h2,
  .section-head h2,
  .trust-copy h2,
  .cta-section h2 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .logic-card,
  .flow-step,
  .recommendation-strip article,
  .showcase-main {
    min-height: auto;
  }

  .role-section {
    width: 100%;
    padding: 46px 12px;
  }

  .recommendation-strip strong {
    min-height: 0;
  }

  .cta-section {
    width: calc(100% - 24px);
    margin-bottom: 42px;
    padding: 24px;
  }

  .content-grid {
    gap: 14px;
    padding: 12px;
  }

  .workspace {
    box-shadow: 0 18px 42px rgba(15, 38, 84, 0.1);
  }

  .section-heading {
    display: grid;
    padding: 18px;
  }

  h1 {
    font-size: 1.58rem;
  }

  .chat-window {
    padding: 18px;
  }

  .selection-page .chat-layout {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    min-height: auto;
    overflow-x: hidden;
  }

  .selection-page .chat-panel {
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - 121px - env(safe-area-inset-bottom));
    height: calc(100dvh - 121px - env(safe-area-inset-bottom));
    min-width: 0;
    overflow-x: hidden;
  }

  .selection-page .chat-topbar {
    min-height: 58px;
    padding: 10px 12px;
  }

  .selection-page .chat-topbar .eyebrow,
  .selection-page .status-pill {
    display: none;
  }

  .selection-page .chat-topbar h1 {
    font-size: 1rem;
  }

  .selection-page .chat-topbar > div:first-child {
    min-width: 0;
  }

  .selection-page .chat-topbar-actions {
    min-width: 0;
  }

  .selection-page .active-dialog-comment {
    max-width: min(62vw, 230px);
    min-height: 40px;
    gap: 7px;
    padding: 5px 9px;
  }

  .selection-page .active-dialog-comment::before {
    width: 23px;
    height: 23px;
    font-size: 0.76rem;
  }

  .selection-page .active-dialog-comment-label {
    font-size: 0.74rem;
  }

  .selection-page .active-dialog-comment-id {
    max-width: 96px;
    overflow: hidden;
    font-size: 0.61rem;
  }

  .selection-page .active-dialog-comment-id strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .selection-page .chat-window {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .message {
    max-width: 100%;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .message.user {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .message-avatar {
    width: 34px;
    height: 34px;
  }

  .chat-form {
    grid-template-columns: minmax(0, 1fr) 46px;
    padding: 14px;
  }

  .selection-page .message {
    width: 100%;
    min-width: 0;
    gap: 10px;
    padding: 8px 0;
  }

  .selection-page .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .selection-page .message-bubble {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .selection-page .message.user .message-bubble {
    max-width: min(100%, 270px);
    padding: 11px 14px;
    border-radius: 16px;
  }

  .selection-page .search-analysis-timeline .search-analysis-message {
    padding-block: 3px;
  }

  .selection-page .search-analysis-step .message-bubble,
  .selection-page .search-analysis-selections-title .message-bubble,
  .selection-page .search-analysis-selection .message-bubble {
    width: 100%;
  }

  .search-analysis-selection-heading {
    display: grid;
    justify-content: stretch;
    gap: 5px;
  }

  .search-analysis-selection-heading span {
    width: fit-content;
    max-width: 100%;
    text-align: left;
  }

  .composer-quick-replies {
    flex-wrap: nowrap;
    gap: 8px;
    margin-inline: -2px;
    padding: 2px 2px 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .composer-quick-replies::-webkit-scrollbar {
    display: none;
  }

  .composer-quick-replies .script-option {
    flex: 0 0 auto;
    width: auto;
    max-width: min(78vw, 320px);
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .selection-page .result-message {
    display: block;
  }

  .selection-page .result-message .message-avatar {
    display: inline-grid;
    margin-bottom: 8px;
  }

  .selection-page .result-message .message-bubble {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .results-board {
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
    margin-right: 0;
    margin-left: 0;
    overflow: visible;
  }

  .results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    padding: 0 0 4px;
  }

  .result-card {
    gap: 12px;
  }

  .result-card-header {
    padding: 12px 12px 0;
  }

  .result-badge {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.7rem;
  }

  .result-badge-icon {
    width: 15px;
    height: 15px;
  }

  .result-favorite {
    width: 34px;
    height: 34px;
  }

  .result-card-preview {
    grid-template-columns: minmax(96px, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: 12px;
    padding: 0 12px;
  }

  .result-image {
    position: relative;
    align-self: stretch;
    min-height: 126px;
    aspect-ratio: auto;
  }

  .result-image::before {
    content: "";
    display: block;
    padding-top: 98%;
  }

  .result-image img {
    position: absolute;
    inset: 0;
  }

  .result-card-summary {
    gap: 9px;
  }

  .result-card h3 {
    font-size: 1.02rem;
    line-height: 1.16;
  }

  .result-preview-specs {
    gap: 8px 8px;
  }

  .result-preview-spec {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 5px;
    font-size: 0.68rem;
    line-height: 1.22;
  }

  .result-preview-icon {
    width: 14px;
    height: 14px;
  }

  .result-location {
    padding: 0 12px 10px;
    font-size: 0.76rem;
  }

  .result-location-flag {
    width: 21px;
    height: 15px;
  }

  .result-card-footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px;
    min-height: 62px;
  }

  .result-price-main,
  .result-price-saving {
    min-height: 40px;
    padding: 0 8px 0 12px;
  }

  .result-price-main span,
  .result-price-saving span {
    font-size: 0.66rem;
  }

  .result-price-main strong {
    font-size: 1.04rem;
  }

  .result-price-saving strong {
    font-size: 0.82rem;
  }

  .result-open-arrow {
    width: 30px;
  }

  .result-open-arrow-icon {
    width: 22px;
    height: 22px;
  }

  .car-detail-panel {
    width: calc(100vw - 24px);
    margin: 4px 12px 0;
    padding: 12px;
  }

  .car-detail-hero {
    gap: 16px;
  }

  .car-detail-main-image {
    aspect-ratio: 1.36;
  }

  .car-detail-thumbs {
    gap: 6px;
  }

  .car-detail-thumb {
    flex-basis: 58px;
    width: 58px;
    height: 42px;
  }

  .car-detail-summary {
    gap: 12px;
  }

  .car-detail-summary h2 {
    font-size: 1.08rem;
  }

  .car-detail-summary > p {
    font-size: 0.84rem;
  }

  .car-detail-metrics,
  .car-detail-fast-specs,
  .car-detail-actions {
    grid-template-columns: 1fr;
  }

  .car-detail-metric {
    min-height: 62px;
    padding: 10px;
  }

  .car-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 0;
  }

  .car-detail-group {
    padding: 14px 0;
  }

  .car-detail-json ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-header {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
  }

  .field-row {
    display: grid;
    align-content: center;
    justify-content: stretch;
    gap: 4px;
    min-height: 66px;
  }

  .empty-state {
    padding: 32px 18px;
  }

  .empty-visual {
    height: 156px;
  }

  .empty-car {
    width: 184px;
  }

  .home-shell {
    width: min(100% - 24px, 1180px);
    padding: 18px 0;
  }

  .hero-copy h1 {
    font-size: 2.05rem;
  }

  .car-body {
    width: 260px;
    height: 112px;
    bottom: 84px;
  }

  .car-body::before {
    left: 74px;
    top: -58px;
    width: 128px;
    height: 74px;
  }

  .car-window-left {
    left: 88px;
  }

  .car-window-right {
    left: 168px;
    width: 44px;
  }

  .car-wheel {
    bottom: 62px;
    width: 56px;
    height: 56px;
    border-width: 11px;
  }

  .car-wheel-left {
    left: calc(50% - 112px);
  }

  .car-wheel-right {
    right: calc(50% - 112px);
  }
}

@media (max-width: 340px) {
  .selection-page .active-dialog-comment-label {
    display: none;
  }

  .selection-page .active-dialog-comment {
    max-width: 148px;
  }

  .selection-page .chat-window {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }

  .selection-page .result-message .message-bubble {
    padding: 10px;
  }

  .result-card {
    gap: 10px;
  }

  .result-card-header {
    padding: 10px 10px 0;
  }

  .result-card-preview {
    grid-template-columns: minmax(96px, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
    padding: 0 10px;
  }

  .result-image {
    min-height: 138px;
  }

  .result-card-summary {
    gap: 8px;
  }

  .result-card h3 {
    font-size: 0.9rem;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .result-preview-specs {
    gap: 6px;
  }

  .result-preview-spec {
    grid-template-columns: 13px minmax(0, 1fr);
    gap: 4px;
    font-size: 0.62rem;
    line-height: 1.16;
  }

  .result-preview-icon {
    width: 12px;
    height: 12px;
  }

  .result-location {
    padding: 0 10px 10px;
  }

  .result-price-main,
  .result-price-saving {
    padding-right: 7px;
    padding-left: 9px;
  }
}

@media (max-width: 360px) {
  .home-nav {
    width: calc(100% - 14px);
    min-height: 56px;
    padding: 8px;
  }

  .home-nav .brand {
    font-size: 0.9rem;
  }

  .home-menu-toggle {
    width: 38px;
    height: 38px;
  }

  .landing-hero {
    width: calc(100% - 10px);
    padding-top: 70px;
  }

  .landing-hero-content {
    width: calc(100% - 18px);
    gap: 9px;
  }

  .landing-hero h1 {
    margin-bottom: 10px;
    font-size: 1.48rem;
    line-height: 1.12;
  }

  .landing-hero .eyebrow {
    font-size: 0.78rem;
  }

  .home-page .button-hero {
    width: min(100%, 248px);
    min-height: 36px;
    font-size: 0.78rem;
  }

  .hero-proof {
    gap: 7px;
  }

  .hero-proof-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .hero-proof-icon img {
    width: 30px;
    height: 30px;
  }

  .hero-proof strong {
    font-size: 0.6rem;
  }

  .hero-mobile-visual {
    height: 176px;
  }

  .hero-decision-panel {
    gap: 6px;
    padding: 10px;
  }

  .decision-stats div {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 26px;
    font-size: 0.68rem;
  }

  .decision-stats strong {
    font-size: 0.7rem;
  }

  .decision-icon {
    width: 22px;
    height: 22px;
    border-radius: 8px;
  }

  .decision-icon img {
    width: 18px;
    height: 18px;
  }

  .hero-metric-card {
    min-height: 96px;
    padding: 10px;
  }

  .hero-metric-card strong {
    font-size: 1rem;
  }

  .hero-logo-strip {
    min-height: 58px;
    padding: 0 8px;
  }

  .hero-logo-strip img {
    width: min(72px, 82%);
    height: 32px;
  }

  .home-section {
    width: calc(100% - 20px);
    padding: 38px 0;
  }

  .intro-band h2,
  .section-head h2,
  .trust-copy h2,
  .cta-section h2 {
    font-size: 1.72rem;
  }

  .showcase-main,
  .logic-card,
  .flow-step,
  .recommendation-strip article,
  .trust-row,
  .cta-section {
    padding: 18px;
  }

  .showcase-header {
    flex-wrap: wrap;
  }

  .showcase-header strong {
    white-space: normal;
  }
}

body.car-modal-open {
  overflow: hidden;
}

.car-modal-backdrop {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 20, 43, 0.52);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 160ms ease;
}

.car-modal-backdrop.visible {
  opacity: 1;
}

.car-modal {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid rgba(216, 226, 241, 0.96);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(3, 13, 32, 0.34);
}

.car-modal-close {
  position: sticky;
  z-index: 3;
  top: 12px;
  left: calc(100% - 52px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px auto;
  border: 1px solid #d7e3f2;
  border-radius: 8px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 38, 84, 0.12);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.car-modal-close:focus-visible {
  outline: 2px solid rgba(29, 111, 242, 0.22);
  outline-offset: 2px;
}

.car-modal .car-detail-panel {
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.car-modal .car-detail-hero {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
}

.car-modal .car-detail-gallery {
  position: sticky;
  top: 18px;
  align-self: start;
}

.car-modal .car-detail-main-image {
  aspect-ratio: 1.42;
}

.car-modal .car-detail-summary {
  gap: 12px;
  padding-right: 44px;
}

.car-modal .car-detail-summary h2 {
  max-width: 720px;
  font-size: 1.32rem;
}

.car-modal .car-detail-summary > p {
  font-size: 0.9rem;
}

.car-modal .car-detail-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.car-modal .car-detail-metric {
  min-height: 64px;
  padding: 10px;
  border: 1px solid #dbe7f6;
  background: #f5f8fd;
}

.car-modal .car-detail-metric.accent {
  border-color: #b8d2ff;
  background: #eaf3ff;
}

.car-modal .car-detail-metric strong {
  font-size: 0.95rem;
}

.car-modal .car-detail-fast-specs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.car-modal .result-spec {
  min-height: 50px;
  padding: 8px;
  border: 1px solid #e5edf7;
  background: #fbfdff;
}

.car-modal .result-spec span,
.car-modal .car-detail-metric span {
  font-size: 0.68rem;
}

.car-modal .result-spec strong {
  font-size: 0.76rem;
}

.car-modal .car-detail-groups {
  grid-template-columns: 1fr;
  gap: 12px;
}

.car-modal .car-detail-group {
  padding: 14px;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  background: #f8fbff;
}

.car-modal .car-detail-group h4 {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.car-modal .car-detail-list {
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
}

.car-modal .car-detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  background: #fff;
}

.car-modal .car-detail-row.wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.car-modal .car-detail-row > span {
  font-size: 0.7rem;
}

.car-modal .car-detail-row > strong {
  font-size: 0.8rem;
}

.car-modal .car-detail-json {
  gap: 10px;
}

.car-modal .car-detail-json section {
  padding-top: 8px;
  border-top: 1px solid #edf2f8;
}

.car-modal .car-detail-json section:first-child {
  padding-top: 0;
  border-top: 0;
}

.car-modal .car-detail-json h5 {
  font-size: 0.78rem;
}

.car-modal .car-detail-json li,
.car-modal .car-detail-nested-row > span {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .car-modal {
    width: min(760px, 100%);
  }

  .car-modal .car-detail-hero {
    grid-template-columns: 1fr;
  }

  .car-modal .car-detail-gallery {
    position: static;
  }

  .car-modal .car-detail-summary {
    padding-right: 0;
  }

  .car-modal .car-detail-metrics,
  .car-modal .car-detail-fast-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .car-modal-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .car-modal {
    max-height: calc(100dvh - 16px);
  }

  .car-modal-close {
    top: 8px;
    width: 38px;
    height: 38px;
    margin: 8px 8px -46px auto;
  }

  .car-modal .car-detail-panel {
    width: auto;
    margin: 0;
    padding: 10px;
  }

  .car-modal .car-detail-main-image {
    aspect-ratio: 1.28;
  }

  .car-modal .car-detail-summary h2 {
    padding-right: 38px;
    font-size: 1.05rem;
  }

  .car-modal .car-detail-metrics,
  .car-modal .car-detail-fast-specs,
  .car-modal .car-detail-list {
    grid-template-columns: 1fr;
  }

  .car-modal .car-detail-group {
    padding: 12px;
  }
}

/* Dealer-style detail card */
.car-modal {
  width: min(760px, calc(100% - 36px));
  border: 0;
  border-radius: 8px;
  background: #f7faff;
}

.car-modal .car-detail-panel {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.car-modal-close {
  position: absolute;
  z-index: 6;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  color: #07142d;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(15, 38, 84, 0.16);
  line-height: 1;
  backdrop-filter: blur(14px);
}

.car-modal-close-icon {
  display: block;
  width: 22px;
  height: 22px;
  transform: rotate(180deg);
}

.car-detail-gallery {
  position: relative;
  display: grid;
  gap: 0;
  background: #eef3fa;
}

.car-detail-gallery-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #e9eef7;
}

.car-modal .car-detail-gallery {
  position: relative;
  top: auto;
}

.car-detail-main-image,
.car-modal .car-detail-main-image {
  width: 100%;
  aspect-ratio: 1.43;
  border-radius: 0;
  background: #e9eef7;
  object-fit: cover;
}

.car-detail-gallery-toolbar {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
}

.car-detail-gallery-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(15, 38, 84, 0.16);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.car-detail-gallery-button-icon {
  width: 22px;
  height: 22px;
}

.car-detail-gallery-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  color: #07142d;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 6px 18px rgba(15, 38, 84, 0.1);
  cursor: pointer;
  opacity: 0.58;
  transform: translateY(-50%);
  transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease;
  backdrop-filter: blur(10px);
}

.car-detail-gallery-nav.previous {
  left: 12px;
}

.car-detail-gallery-nav.next {
  right: 12px;
}

.car-detail-gallery-nav:hover,
.car-detail-gallery-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.82);
  opacity: 1;
  outline: none;
}

.car-detail-gallery-nav-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.car-detail-gallery-nav.previous .car-detail-gallery-nav-icon {
  transform: rotate(180deg);
}

.car-modal-close-icon svg,
.car-detail-gallery-nav-icon svg,
.car-detail-gallery-button svg,
.car-detail-badge svg,
.car-detail-spec svg,
.car-detail-mini-metric svg,
.car-detail-action svg,
.car-detail-insight svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.car-detail-gallery-button.favorite.is-active {
  color: #0454dc;
  border-color: rgba(185, 211, 255, 0.9);
  background: rgba(234, 243, 255, 0.9);
}

.car-detail-counter {
  top: auto;
  right: 18px;
  bottom: 92px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(13, 24, 45, 0.68);
  font-size: 0.88rem;
}

.car-detail-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  overflow-x: auto;
  background: #fff;
  scrollbar-width: none;
}

.car-detail-thumbs::-webkit-scrollbar {
  display: none;
}

.car-detail-thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #e9eef7;
}

.car-detail-thumb.active,
.car-detail-thumb:focus-visible {
  border-color: #075cff;
  box-shadow: 0 0 0 1px rgba(7, 92, 255, 0.14);
}

.car-detail-summary,
.car-modal .car-detail-summary {
  display: grid;
  gap: 18px;
  padding: 24px 22px 26px;
}

.car-detail-summary h2,
.car-modal .car-detail-summary h2 {
  max-width: none;
  margin: 0;
  padding-right: 0;
  color: #07142d;
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1.12;
}

.car-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.car-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #00815c;
  background: #e8f8f1;
  font-size: 0.82rem;
  font-weight: 850;
}

.car-detail-badge-verified,
.car-detail-badge-best {
  color: var(--blue-700);
  border-color: #cfe0ff;
  background: #f2f7ff;
}

.car-detail-badge-fresh {
  color: #6b2ac9;
  background: #f2eaff;
}

.car-detail-badge-alt {
  color: #e26b00;
  background: #fff1e5;
}

.car-detail-badge-icon {
  width: 17px;
  height: 17px;
}

.car-detail-fast-specs,
.car-modal .car-detail-fast-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.car-detail-spec {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.car-detail-spec-icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #244b86;
}

.car-detail-spec span {
  display: block;
  margin-bottom: 3px;
  color: #65708a;
  font-size: 0.82rem;
  font-weight: 650;
}

.car-detail-spec strong {
  display: block;
  color: #07142d;
  font-size: clamp(0.68rem, 2.35vw, 0.9rem);
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
  overflow-wrap: normal;
}

.car-detail-spec strong[data-fit],
.car-detail-spec strong {
  min-width: 0;
}

.car-detail-spec-vin {
  grid-column: 1 / -1;
  max-width: 100%;
}

.car-detail-spec-vin strong {
  font-size: clamp(0.56rem, 2.8vw, 0.9rem);
  letter-spacing: 0;
}

.car-detail-price-box {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #d8e7ff;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.car-detail-price-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.car-detail-price-saving {
  padding-left: 18px;
  border-left: 1px solid #d9e5f6;
}

.car-detail-price-primary,
.car-detail-price-saving {
  display: grid;
  gap: 5px;
}

.car-detail-price-primary span,
.car-detail-price-saving span {
  color: #24406d;
  font-size: 0.86rem;
  font-weight: 700;
}

.car-detail-price-primary strong {
  color: #07142d;
  font-size: clamp(1.35rem, 7.4vw, 2rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.car-detail-price-saving strong {
  color: #00a66a;
  font-size: clamp(0.95rem, 4.6vw, 1.28rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.car-detail-price-box p {
  margin: 0;
  color: #536686;
  font-size: 0.92rem;
  line-height: 1.45;
}

.car-detail-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 14px;
  border-top: 1px solid #d9e5f6;
}

.car-detail-mini-metric {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid #d9e5f6;
}

.car-detail-mini-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.car-detail-mini-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  color: var(--blue-700);
  background: #f3f8ff;
}

.car-detail-mini-metric span {
  display: block;
  color: #65708a;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.15;
}

.car-detail-mini-metric strong {
  display: block;
  color: #07142d;
  font-size: clamp(0.62rem, 2.05vw, 0.9rem);
  font-weight: 900;
  line-height: 1.08;
  white-space: nowrap;
}

.car-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.car-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid #c8d9f4;
  border-radius: 8px;
  color: #0454dc;
  background: #fff;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}

.car-detail-action.primary {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  min-height: 68px;
  border-color: #034fe8;
  color: #fff;
  background: linear-gradient(135deg, #075cff 0%, #003cc8 100%);
  box-shadow: 0 12px 24px rgba(3, 77, 214, 0.22);
}

.car-detail-action.primary::after {
  content: "Мы свяжемся и расскажем детали";
  font-size: 0.8rem;
  font-weight: 650;
  opacity: 0.88;
}

.car-detail-action-icon {
  width: 20px;
  height: 20px;
}

.car-detail-action.primary .car-detail-action-icon {
  display: none;
}

.car-detail-action.is-active {
  border-color: #a9c8fb;
  color: #034fe8;
  background: #eaf3ff;
}

.car-detail-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.car-detail-insights {
  display: grid;
  gap: 12px;
}

.car-detail-insight {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 20px;
  border: 1px solid #d7eadf;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5fffb 0%, #eefaf4 100%);
}

.car-detail-insight-warning {
  border-color: #ffd9b8;
  background: linear-gradient(135deg, #fff8f1 0%, #fff1e7 100%);
}

.car-detail-insight-icon {
  width: 30px;
  height: 30px;
  color: #00a66a;
}

.car-detail-insight-warning .car-detail-insight-icon {
  color: #ff7900;
}

.car-detail-insight-caret {
  color: var(--blue-700);
}

.car-detail-insight h3 {
  margin: 0 0 8px;
  color: #07142d;
  font-size: 1rem;
  line-height: 1.2;
}

.car-detail-insight p,
.car-detail-insight li {
  color: #23375a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.car-detail-insight p,
.car-detail-insight ul {
  margin: 0;
}

.car-detail-insight ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

.car-detail-insight li::marker {
  color: #ff7900;
}

.car-detail-insight-caret {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  transition: transform 160ms ease;
}

.car-detail-risk {
  grid-template-columns: 36px minmax(0, 1fr);
}

.car-detail-risk-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.car-detail-risk-toggle h3 {
  margin: 0;
}

.car-detail-risk-toggle[aria-expanded="true"] .car-detail-insight-caret {
  transform: rotate(90deg);
}

.car-detail-risk.collapsed {
  align-items: center;
}

.car-detail-risk-body {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.car-detail-risk-body[hidden] {
  display: none;
}

.car-detail-risk-report {
  display: grid;
  gap: 12px;
}

.car-detail-risk-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 121, 0, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.car-detail-risk-summary span,
.car-detail-risk-report-section h4 {
  margin: 0;
  color: #7a4b20;
  font-size: 0.78rem;
  font-weight: 850;
}

.car-detail-risk-summary strong {
  color: #07142d;
  font-size: 0.86rem;
  line-height: 1.35;
}

.car-detail-risk-report-section {
  display: grid;
  gap: 7px;
}

.car-detail-risk-report-rows {
  display: grid;
  gap: 6px;
}

.car-detail-risk-report-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58px, max-content);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid rgba(255, 121, 0, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.car-detail-risk-report-rows > div.has-details {
  grid-template-columns: minmax(0, 1fr) auto;
}

.car-detail-risk-report-rows span {
  color: #24375a;
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-wrap: normal;
}

.car-detail-risk-report-rows strong {
  display: block;
  color: #07142d;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.car-detail-risk-report-rows small {
  display: block;
  grid-column: 1 / -1;
  max-width: 100%;
  margin-top: 3px;
  color: #65708a;
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
}

.car-detail-risk-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 121, 0, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.car-detail-risk-state span {
  color: #7a4b20;
  font-size: 0.78rem;
  font-weight: 750;
}

.car-detail-risk-state strong {
  color: #07142d;
  font-size: clamp(0.68rem, 2.6vw, 0.82rem);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.car-detail-groups,
.car-modal .car-detail-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.car-detail-group,
.car-modal .car-detail-group {
  padding: 14px;
  border: 1px solid #e1eaf6;
  border-radius: 8px;
  background: #fbfdff;
}

.car-detail-group h4,
.car-modal .car-detail-group h4 {
  margin: 0 0 10px;
  color: #07142d;
  font-size: 0.94rem;
}

.car-detail-list,
.car-modal .car-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.car-detail-row,
.car-modal .car-detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-height: 0;
  padding: 9px 10px;
  border: 1px solid #e8eef7;
  border-radius: 8px;
  background: #fff;
}

.car-detail-row.wide,
.car-modal .car-detail-row.wide {
  grid-column: 1 / -1;
}

.car-detail-row > span,
.car-modal .car-detail-row > span {
  color: #65708a;
  font-size: 0.7rem;
  font-weight: 650;
}

.car-detail-row > strong,
.car-modal .car-detail-row > strong {
  color: #07142d;
  font-size: 0.78rem;
  font-weight: 820;
}

@media (max-width: 620px) {
  .car-modal-backdrop {
    padding: 0;
    background: #f7faff;
  }

  .car-modal {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .car-modal-close {
    top: 28px;
    left: 18px;
    width: 40px;
    height: 40px;
  }

  .car-detail-gallery-toolbar {
    top: 28px;
    right: 18px;
  }

  .car-detail-gallery-button {
    width: 40px;
    height: 40px;
  }

  .car-detail-gallery-nav {
    width: 32px;
    height: 40px;
  }

  .car-detail-gallery-nav.previous {
    left: 10px;
  }

  .car-detail-gallery-nav.next {
    right: 10px;
  }

  .car-detail-main-image,
  .car-modal .car-detail-main-image {
    aspect-ratio: 1.34;
  }

  .car-detail-counter {
    right: 18px;
    bottom: 86px;
  }

  .car-detail-summary,
  .car-modal .car-detail-summary {
    padding: 20px 16px 24px;
  }

  .car-detail-summary h2,
  .car-modal .car-detail-summary h2 {
    font-size: 1.42rem;
  }

  .car-detail-fast-specs,
  .car-modal .car-detail-fast-specs {
    gap: 13px 14px;
  }

  .car-detail-price-box {
    padding: 16px;
  }

  .car-detail-price-primary strong {
    font-size: 1.72rem;
  }

  .car-detail-price-saving strong {
    font-size: 1.08rem;
  }

  .car-detail-mini-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .car-detail-mini-metric {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px;
    padding: 0 5px;
    border-left: 1px solid #d9e5f6;
  }

  .car-detail-mini-metric:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .car-detail-mini-icon {
    width: 24px;
    height: 24px;
  }

  .car-detail-mini-metric span {
    font-size: 0.56rem;
  }

  .car-detail-mini-metric strong {
    font-size: clamp(0.5rem, 1.75vw, 0.66rem);
  }

  .car-detail-action {
    gap: 6px;
    min-height: 46px;
    font-size: 0.82rem;
  }

  .car-detail-action-icon {
    width: 18px;
    height: 18px;
  }

  .car-detail-action.primary {
    min-height: 64px;
    font-size: 0.96rem;
  }

  .car-detail-action.primary::after {
    font-size: 0.74rem;
  }

  .car-detail-insight {
    padding: 16px;
  }

  .car-detail-list,
  .car-modal .car-detail-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .car-detail-price-top,
  .car-detail-actions {
    grid-template-columns: 1fr;
  }

  .car-detail-price-saving {
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid #d9e5f6;
    border-left: 0;
  }

  .car-detail-action.primary {
    grid-column: auto;
  }

  .car-detail-fast-specs,
  .car-modal .car-detail-fast-specs {
    grid-template-columns: 1fr;
  }
}
