/* 首页「Check a car with AI」（js/ai-tools.js）：5 个 tab，左边输入、右边示例/结果卡；
   效果图 local-dev/design-mock/home-ai-tools.html（Brian 定稿第三版） */
.ai-tools { --ink: #111827; scroll-margin-top: 4.5rem; }
/* :where() 不加权重，下面各元素自己的样式（按钮颜色、标题间距）优先 */
:where(.ai-tools) :where(h2, h3) { margin: 0; line-height: 1.2; }
:where(.ai-tools) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ai-tools .ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-tools { padding: 3.5rem 2rem 1rem; }
.ai-inner { max-width: 80rem; margin: 0 auto; }
.ai-header { text-align: center; max-width: 48rem; margin: 0 auto 1.75rem; }
.ai-eyebrow { margin: 0 0 .75rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.ai-title { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin-bottom: .75rem; }
.ai-subtitle { font-size: 1.25rem; color: #6b7280; margin: 0; }

/* tabs */
.ai-tabs-wrap { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.ai-tabs {
  display: flex; gap: .375rem; padding: .375rem; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.ai-tabs::-webkit-scrollbar { display: none; }
.ai-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: .625rem 1.125rem; font-size: .9375rem; font-weight: 600; color: var(--gray-600);
  transition: background .15s ease, color .15s ease;
}
.ai-tab svg { width: 1.125rem; height: 1.125rem; }
.ai-tab:hover { background: var(--gray-100); color: var(--ink); }
.ai-tab[aria-selected="true"] { background: var(--primary); color: #fff; box-shadow: 0 4px 6px -1px rgba(59, 130, 246, .3); }
.ai-tab:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* panel layout */
.ai-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ai-panel[hidden] { display: none; }
.ai-panel:focus-visible { outline: 3px solid #93c5fd; outline-offset: 6px; border-radius: 1rem; }
.ai-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 1.125rem; padding: 1.75rem; min-width: 0; }
.ai-input-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: .25rem; }
.ai-input-hint { font-size: .9375rem; color: var(--gray-500); margin: 0 0 1rem; }
.ai-label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: .375rem; }
.ai-label .opt { font-weight: 400; color: var(--gray-400); }
.ai-field { margin-bottom: 1rem; }
.ai-input, .ai-textarea, .ai-select {
  width: 100%; border: 1px solid var(--gray-300); border-radius: .625rem; background: #fff;
  padding: .6875rem .875rem; font-size: 1rem; color: var(--ink);
}
.ai-textarea { min-height: 5.5rem; resize: vertical; line-height: 1.5; }
.ai-input::placeholder, .ai-textarea::placeholder { color: var(--gray-400); }
.ai-input:focus, .ai-textarea:focus, .ai-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.ai-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; }
.ai-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ai-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
  border: 0; border-radius: .75rem; cursor: pointer; padding: .875rem 1.25rem;
  background: var(--primary); color: #fff; font-size: 1rem; font-weight: 600; margin-top: .25rem;
  transition: background .15s ease;
}
.ai-btn:hover { background: var(--primary-dark); }
.ai-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ai-btn svg { width: 1.125rem; height: 1.125rem; }
.ai-btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.ai-or { display: flex; align-items: center; gap: .75rem; color: var(--gray-400); font-size: .8125rem; margin: .25rem 0 1rem; }
.ai-or::before, .ai-or::after { content: ""; flex: 1; height: 1px; background: var(--gray-200); }

.ai-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem;
  border: 2px dashed #bfd0f6; background: #f7faff; border-radius: 1rem; padding: 1.75rem 1rem; margin-bottom: 1rem;
  color: var(--gray-600); cursor: pointer;
}
.ai-drop:hover { border-color: var(--primary); }
.ai-drop:focus-within { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ai-drop-icon { width: 3rem; height: 3rem; border-radius: 50%; background: #e8efff; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.ai-drop-icon svg { width: 1.5rem; height: 1.5rem; }
.ai-drop strong { color: var(--ink); font-size: 1rem; }
.ai-drop small { font-size: .8125rem; color: var(--gray-500); }
.ai-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ai-drop.compact { flex-direction: row; justify-content: flex-start; text-align: left; padding: .875rem 1rem; gap: .875rem; }
.ai-drop.compact .ai-drop-icon { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; }

/* example / result card */
.ai-result { position: relative; box-shadow: 0 12px 28px -14px rgba(15, 23, 42, .18); }
.ai-tag {
  display: inline-flex; align-items: center; gap: .375rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gray-500); background: var(--gray-100); border-radius: 999px; padding: .1875rem .625rem; margin-bottom: 1rem;
}
.ai-result.is-result .ai-tag { color: #047857; background: #d1fae5; }
.ai-q { font-size: .9375rem; color: var(--gray-500); margin: 0 0 .25rem; }
.ai-q b { color: var(--gray-700); font-weight: 600; }
.ai-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.125rem; }
.ai-head-icon { flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: inline-flex; align-items: center; justify-content: center; }
.ai-head-icon svg { width: 2rem; height: 2rem; }
.ai-head h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 .25rem; line-height: 1.3; }
.ai-head p { margin: 0; font-size: .9375rem; color: var(--gray-600); line-height: 1.5; }
.ai-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; margin: 0 0 1.125rem; padding: 0; list-style: none; }
.ai-fact { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: .75rem; padding: .75rem .875rem; min-width: 0; }
.ai-fact dt, .ai-fact .k { font-size: .75rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ai-fact .v { font-size: 1rem; font-weight: 700; color: var(--ink); margin-top: .125rem; line-height: 1.3; }
.ai-tools .badge { line-height: inherit; display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; font-weight: 700; border-radius: 999px; padding: .125rem .625rem; }
.ai-tools .badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.b-green { color: #047857; background: #d1fae5; }
.b-amber { color: #b45309; background: #fef3c7; }
.b-red { color: #b91c1c; background: #fee2e2; }
.b-blue { color: #1d4ed8; background: #dbeafe; }
.ai-steps { margin: 0 0 1.125rem; padding: 0; list-style: none; }
.ai-steps li { position: relative; padding-left: 1.5rem; font-size: .9375rem; color: var(--gray-700); margin-bottom: .375rem; line-height: 1.5; }
.ai-steps li::before { content: ""; position: absolute; left: .25rem; top: .55rem; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--primary); }
.ai-sub { font-size: .8125rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .5rem; }

/* quote groups */
.q-group { border: 1px solid var(--gray-200); border-radius: .875rem; margin-bottom: .75rem; overflow: hidden; }
.q-group-head { display: flex; justify-content: space-between; align-items: center; padding: .5rem .875rem; font-size: .875rem; font-weight: 700; }
.q-must .q-group-head { background: #fef2f2; color: #b91c1c; }
.q-ask .q-group-head { background: #fffbeb; color: #b45309; }
.q-wait .q-group-head { background: #f0fdf4; color: #047857; }
.q-items { list-style: none; margin: 0; padding: 0; }
.q-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .875rem; border-top: 1px solid var(--gray-100); font-size: .9375rem; color: var(--gray-700); }
.q-items li span:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.q-items li small { display: block; color: var(--gray-500); font-size: .8125rem; }
/* compact: group label on the left, one line item on the right */
.q-group { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); margin-bottom: .5rem; }
.q-group-head { padding: .5rem .75rem; }
.q-group-head span:last-child { display: none; }
.q-items li { border-top: 0; }
.q-total { display: flex; justify-content: space-between; font-size: .9375rem; color: var(--gray-600); padding: .25rem .125rem 1rem; }
.q-total b { color: var(--ink); }

/* price bar */
.price-big { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: .125rem 0 .25rem; }
.price-bar { position: relative; height: .75rem; border-radius: 999px; background: linear-gradient(90deg, #fde68a 0%, #bbf7d0 35%, #bbf7d0 65%, #fecaca 100%); margin: 1.75rem 0 .5rem; }
.price-range { position: absolute; left: 30%; right: 30%; top: -.25rem; bottom: -.25rem; border: 2px solid #047857; border-radius: 999px; background: rgba(16, 185, 129, .15); }
.price-marker { position: absolute; left: 50%; top: -1.75rem; transform: translateX(-50%); font-size: .75rem; font-weight: 700; color: #047857; white-space: nowrap; }
.price-marker::after { content: ""; position: absolute; left: 50%; top: 1.25rem; width: 2px; height: 1.35rem; background: #047857; transform: translateX(-50%); }
.price-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--gray-500); margin-bottom: 1rem; }
.ai-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .875rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: .625rem; padding: .625rem .75rem; margin: 0 0 1.125rem; }
.ai-note svg { width: 1rem; height: 1rem; flex: 0 0 auto; margin-top: .15rem; }

/* footer of result card */
.ai-foot { border-top: 1px solid var(--gray-100); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.ai-powered { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--gray-500); }
.ai-powered svg { width: 1rem; height: 1rem; color: var(--primary); }
.ai-link { font-size: .875rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.ai-link:hover { text-decoration: underline; }
.ai-sell-cta { display: inline-block; margin-top: .625rem; font-size: .875rem; color: var(--gray-600); text-decoration: none; }
.ai-sell-cta em { font-style: normal; font-weight: 600; color: var(--primary-dark); }
.ai-sell-cta:hover em { text-decoration: underline; }
.ai-sell-cta span::after { content: " "; }

/* follow-up chat */
.ai-chat { margin-top: 1rem; border-top: 1px solid var(--gray-100); padding-top: 1rem; }
.ai-panel:not(.has-result) .ai-chat { display: none; }
.chat-log { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.bubble { max-width: 88%; font-size: .875rem; line-height: 1.45; padding: .5rem .75rem; border-radius: .875rem; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: .25rem; }
.bubble.ai { align-self: flex-start; background: var(--gray-100); color: var(--gray-700); border-bottom-left-radius: .25rem; }
.chat-form { display: flex; gap: .5rem; }
.chat-form .ai-input { border-radius: 999px; padding: .5625rem 1rem; font-size: .9375rem; }
.chat-send { flex: 0 0 auto; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-send svg { width: 1.125rem; height: 1.125rem; }
.chat-send:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

.ai-disclaimer { display: flex; justify-content: center; align-items: center; gap: .375rem; text-align: center; font-size: .8125rem; color: var(--gray-500); margin: 1.75rem 0 0; }
.ai-disclaimer svg { width: .9375rem; height: .9375rem; flex: 0 0 auto; }

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


/* short/long label variants, try chips, vehicle toggle */
.ai-tools .t-short, .ai-tools .only-m { display: none; }
.ai-try { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin: -.25rem 0 1rem; }
.ai-try-label { font-size: .8125rem; color: var(--gray-500); font-weight: 600; }
.ai-chip { border: 1px solid #c7d7fb; background: #f5f8ff; color: var(--primary-dark); border-radius: 999px; padding: .25rem .75rem; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.ai-chip:hover { background: #e8efff; }
.ai-chip:focus-visible, .ai-more-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ai-more-btn { display: none; border: 0; background: none; padding: 0; margin: 0 0 1rem; color: var(--primary-dark); font-size: .875rem; font-weight: 600; cursor: pointer; }
/* desktop: equal-height columns */
.ai-panel { align-items: stretch; }
.ai-result { display: flex; flex-direction: column; }
.ai-result .ai-foot { margin-top: auto; }
.ai-result .ai-tag { align-self: flex-start; }
.ai-input-hint { display: none; }
.ai-input-title { margin-bottom: 1rem; }
.ai-more-btn { display: inline-block; align-self: flex-start; }
.ai-vehicle { display: none; }
.ai-vehicle.open { display: block; }

@keyframes pop { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ai-result.flash { animation: pop .35s ease; }

/* Car problem 车辆一行 4 格（年份、品牌、车型、里程） */
.ai-row-4 { grid-template-columns: .8fr 1fr 1fr 1fr; }
/* 今天还剩几次 */
.ai-left { margin: .5rem 0 0; font-size: .75rem; color: var(--gray-400); text-align: center; }
.ai-left[hidden] { display: none; }
.ai-error a { color: inherit; font-weight: 600; }
/* 去 WTC 的一行链接 */
.ai-wtc-line { margin: -.25rem 0 1rem; font-size: .875rem; }
.ai-wtc-line a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.ai-wtc-line a:hover { text-decoration: underline; }
.ai-manual { font-size: .8125rem; color: var(--gray-500); font-style: italic; }

/* Warning light：10 个常见灯（自己画的图标） */
.ai-lights { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.ai-light {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .375rem;
  padding: .75rem .25rem .625rem; border: 1px solid var(--gray-200); border-radius: .75rem; background: #fff;
  cursor: pointer; font-size: .75rem; font-weight: 600; line-height: 1.25; color: var(--gray-700); text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.ai-light svg { width: 2rem; height: 2rem; color: var(--tone, #d97706); }
.ai-light:hover { border-color: #bfd0f6; background: #f7faff; }
.ai-light[aria-pressed="true"] { border-color: var(--primary); background: #eff6ff; box-shadow: 0 0 0 1px var(--primary) inset; }
.ai-light:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.ai-upload .ai-drop { margin-bottom: .75rem; }

/* 真实结果用到的补充样式 */
.ai-error { margin: 0 0 .75rem; padding: .625rem .75rem; border-radius: .625rem; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: .875rem; line-height: 1.45; }
.ai-error[hidden], .ai-wait[hidden], .ai-found[hidden] { display: none; }
.ai-wait { margin: .625rem 0 0; font-size: .8125rem; color: var(--gray-500); text-align: center; }
.ai-found { margin: -.25rem 0 .75rem; font-size: .8125rem; color: #047857; font-weight: 600; }
.ai-drop.has-file { border-style: solid; border-color: #86efac; background: #f0fdf4; }
.ai-summary { font-size: .9375rem; color: var(--gray-600); margin: 0 0 1rem; line-height: 1.5; }
.ai-steps li small { color: var(--gray-500); }
.ai-btn:disabled { opacity: .75; cursor: progress; }
.chat-form .ai-input:disabled { background: var(--gray-50); }
.chat-note { font-size: .8125rem; color: var(--gray-500); margin: .5rem 0 0; }
.q-fee .q-group-head { background: var(--gray-50); color: var(--gray-600); }
.q-skip .q-group-head { background: #f5f3ff; color: #6d28d9; }

@media (max-width: 1024px) {
  .ai-tabs-wrap { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .ai-title { font-size: 1.875rem; }
  .ai-subtitle { font-size: 1rem; }
  .ai-header { margin-bottom: 1.5rem; }
  .ai-tabs-wrap { margin: 0 -1rem 1.25rem; padding: 0 1rem; }
  .ai-tab { padding: .5625rem .875rem; font-size: .875rem; }
  .ai-panel { grid-template-columns: 1fr; gap: 1rem; }
  .ai-card { padding: 1.25rem; border-radius: 1rem; }
  .ai-facts { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--gray-100); border-radius: .75rem; overflow: hidden; }
  .ai-fact { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border: 0; border-radius: 0; padding: .625rem .875rem; }
  .ai-fact + .ai-fact { border-top: 1px solid var(--gray-100); }
  .ai-fact .v { margin-top: 0; text-align: right; }
  .ai-head-icon { width: 2.75rem; height: 2.75rem; border-radius: .75rem; }
  .ai-head-icon svg { width: 1.5rem; height: 1.5rem; }
  .ai-head h3 { font-size: 1.125rem; }
  .ai-disclaimer { align-items: flex-start; text-align: left; }
  .ai-disclaimer svg { margin-top: .2rem; }
  .ai-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ai-foot { flex-direction: column; align-items: flex-start; }
}

/* 手机（<768px）：图标 tab 一排、Try 按钮、车辆收起、提交后才出现结果和追问 */
@media (max-width: 767.98px) {
  .ai-tools .t-long, .ai-tools .only-d { display: none; }
  .ai-tools .t-short, .ai-tools .only-m { display: inline; }

  .ai-tools { padding: 2.5rem 1rem .5rem; }
  .ai-header { margin-bottom: 1rem; }
  .ai-eyebrow { margin-bottom: .375rem; font-size: .75rem; }
  .ai-title { font-size: 2rem; margin-bottom: .25rem; }
  .ai-subtitle { font-size: .9375rem; }

  .ai-tabs-wrap { margin: 0 0 .875rem; padding: 0; }
  .ai-tabs { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; padding: .25rem; border-radius: .875rem; overflow: visible; }
  .ai-tab { flex-direction: column; gap: .1875rem; padding: .5rem .125rem; border-radius: .625rem; font-size: .75rem; }
  .ai-tab svg { width: 1.25rem; height: 1.25rem; }

  .ai-panel { gap: .875rem; align-items: start; }
  .ai-card { padding: 1rem; border-radius: .875rem; }
  .ai-input-title, .ai-input-hint { display: none; }
  .ai-field { margin-bottom: .75rem; }
  .ai-textarea { min-height: 5.25rem; }
  .ai-try { margin: -.125rem 0 .75rem; }
  .ai-more-btn { display: inline-block; align-self: flex-start; margin-bottom: .75rem; }
  .ai-drop { padding: 1rem; margin-bottom: .75rem; flex-direction: row; text-align: left; justify-content: flex-start; gap: .75rem; }
  .ai-drop .ai-drop-icon { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; }
  .ai-drop strong, .ai-drop small { display: block; }
  .ai-drop br { display: none; }
  .ai-or { margin: 0 0 .75rem; }
  .ai-btn { padding: .8125rem 1rem; }

  .ai-panel:not(.has-result) .ai-result { display: none; }
  .ai-result { box-shadow: 0 8px 20px -12px rgba(15, 23, 42, .2); scroll-margin-top: 1rem; }
  .ai-chat { margin-top: 1rem; padding-top: .875rem; }
  .ai-disclaimer { font-size: .75rem; margin-top: 1rem; }

  .ai-lights { gap: .3125rem; margin-bottom: .75rem; }
  .ai-light { padding: .5rem .125rem .4375rem; gap: .25rem; font-size: .625rem; border-radius: .625rem; }
  .ai-light svg { width: 1.625rem; height: 1.625rem; }
  .ai-wtc-line { margin: 0 0 .75rem; font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) { .ai-result.flash { animation: none; } }

/* Warning light：照片只是备用，做成一行小控件 */
.ai-tools .ai-mini-row { display: flex; gap: .5rem; align-items: stretch; margin-bottom: .625rem; }
.ai-tools .ai-drop.mini { flex: 1 1 auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: .5rem; padding: .5rem .75rem; margin: 0; min-height: 2.75rem; border-width: 1px; text-align: left; }
.ai-tools .ai-drop.mini .ai-drop-icon { width: 1.75rem; height: 1.75rem; flex: 0 0 auto; }
.ai-tools .ai-drop.mini .ai-drop-icon svg { width: 1rem; height: 1rem; }
.ai-tools .ai-drop.mini strong { display: inline; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.ai-tools .ai-select.mini { flex: 0 0 auto; width: auto; max-width: 8rem; padding-top: .5rem; padding-bottom: .5rem; font-size: .875rem; }
.ai-tools .ai-btn.mini { padding: .5rem 1rem; font-size: .875rem; background: #fff; color: var(--primary); border: 1px solid var(--primary); box-shadow: none; }
.ai-tools .ai-btn.mini:hover { background: #eff4ff; }
