/* AI search checker (V2-Tool-AISearch) */
.fx-ai { padding-top: 32px; }
.fx-ai__in { display: flex; flex-direction: column; gap: 24px; }
.fx-ai__grid { display: grid; grid-template-columns: minmax(0, 624px) minmax(0, 600px); justify-content: space-between; gap: 48px; align-items: start; }
.fx-ai__copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fx-ai__h { margin: 2px 0 0; font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.fx-ai__h em { display: block; font-style: normal; color: var(--violet); }
.fx-ai__intro { margin: 6px 0 0; max-width: 560px; }
.fx-ai__ex { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: #F5F3FA; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 9.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: #7A7395; white-space: nowrap; }
.fx-ai code { font-family: var(--font-mono); font-size: .92em; }

/* Input card */
.fx-ai__card { display: flex; flex-direction: column; gap: 16px; margin: 6px 0 0; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.fx-ai__f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fx-ai__lrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fx-ai__l { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.fx-ai__hint { font-size: 12.5px; color: var(--muted); }
.fx-ai__fld { position: relative; display: flex; align-items: center; height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; transition: border-color 150ms, box-shadow 150ms; }
.fx-ai__fld:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.fx-ai__fld.is-error { border-color: #CC3F25; box-shadow: 0 0 0 4px #FDECE7; }
.fx-ai__fld input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px 0 42px; font: inherit; font-size: 15.5px; color: var(--ink); }
.fx-ai__fld input::placeholder { color: #9A93B5; }
.fx-ai__in-site { font-family: var(--font-mono) !important; font-size: 14.5px !important; }
.fx-ai__fic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); display: flex; color: #8B84A8; pointer-events: none; }
.fx-ai__msg:empty { display: none; }
.fx-ai__msg { margin-top: -4px; padding: 10px 12px; border-radius: 10px; background: #FDECE7; border: 1px solid #F6C4B6; color: #8A2A16; font-size: 13.5px; line-height: 1.5; }
.fx-ai__go { width: 100%; justify-content: center; height: 56px; font-size: 16.5px; }
.fx-ai__go:disabled { opacity: .7; cursor: progress; }
.fx-ai__priv { display: flex; align-items: center; gap: 8px; margin: -2px 0 0; font-size: 13px; color: var(--muted); }
.fx-ai__priv svg { flex: none; }
.fx-ai__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.fx-ai__rating { display: inline-flex; align-items: center; gap: 8px; }
.fx-ai__rating b { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--ink); }
.fx-ai__sep { width: 1px; height: 16px; background: var(--line); }

/* Summary card */
.fx-ai__sum { margin-top: 30px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -48px rgba(23, 17, 46, .35); overflow: hidden; min-width: 0; }
.fx-ai__bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; background: #F7F6FB; border-bottom: 1px solid var(--line); }
.fx-ai__bar > i { width: 9px; height: 9px; border-radius: 50%; background: #DDD8EA; }
.fx-ai__url { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; height: 26px; margin-left: 10px; padding: 0 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; color: #4F4868; }
.fx-ai__url > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-ai__body { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 22px; }
.fx-ai__top { display: flex; align-items: center; gap: 24px; }
.fx-ai__ring { position: relative; flex: none; width: 112px; height: 112px; }
.fx-ai__ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-ai__ring circle { fill: none; stroke: #EEEBF7; stroke-width: 12; }
.fx-ai__ring .fg { stroke: var(--violet); stroke-linecap: round; animation: fxAiRing 1.1s var(--ease) both; }
.fx-ai__ring .n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.fx-ai__ring b { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; color: var(--ink); }
.fx-ai__ring small { margin-top: 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.fx-ai__ring.is-sm { width: 60px; height: 60px; }
.fx-ai__ring.is-sm circle { stroke-width: 11; }
.fx-ai__ring.is-sm b { font-size: 18px; }
.fx-ai__ring.is-sm small { margin-top: 2px; font-size: 9.5px; }
.fx-ai__ring.is-wait .fg { stroke-dasharray: 80 400; animation: fxAiSpin 1s linear infinite; transform-origin: 60px 60px; }
@keyframes fxAiRing { from { stroke-dashoffset: 326.7; } }
@keyframes fxAiSpin { to { transform: rotate(360deg); } }
.fx-ai__tt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fx-ai__kick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.fx-ai__kick > span:first-child { overflow-wrap: anywhere; }
.fx-ai__st { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.fx-ai__sub { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.fx-ai__lab { margin: 8px 0 -2px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #4F4868; }
.fx-ai__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-ai__tile { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.fx-ai__tile.is-no { border-color: #F6C4B6; background: #FFFBFA; }
.fx-ai__ti { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); }
.fx-ai__tile.is-no .fx-ai__ti { background: var(--coral-soft); color: #CC3F25; }
.fx-ai__tn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-ai__tn b { font-weight: 600; font-size: 15px; color: var(--ink); }
.fx-ai__tn code { font-size: 10.5px; color: #6B6585; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-ai__tile .fx-ai__pill { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.fx-ai__pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fx-ai__pill i { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; }
.fx-ai__pill.is-ok { background: #E3F3EF; color: #0B5D4F; }
.fx-ai__pill.is-ok i { background: #0B8574; }
.fx-ai__pill.is-no { background: #FDECE7; color: #A12F19; }
.fx-ai__pill.is-no i { background: #CC3F25; }
.fx-ai__good { display: flex; gap: 10px; margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; background: #F5F3FA; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.fx-ai__good svg { flex: none; margin-top: 2px; color: var(--violet); }
.fx-ai__good b { color: var(--ink); font-weight: 600; }

/* Loading */
.fx-ai__steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.fx-ai__steps li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: #9A93B5; transition: color 200ms; }
.fx-ai__steps i { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed #C9C2DE; }
.fx-ai__steps .is-now { color: var(--ink); }
.fx-ai__steps .is-now span::after { content: "…"; }
.fx-ai__steps .is-now i { border: 2.5px solid #E6E1F5; border-top-color: var(--violet); animation: fxAiSpin .8s linear infinite; }
.fx-ai__steps .is-done { color: var(--ink); }
.fx-ai__steps .is-done i { border: 0; background: #0B8574 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fx-ai__skel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.fx-ai__skel i { height: 64px; border-radius: 14px; background: linear-gradient(90deg, #F1EEF8 0%, #F8F6FC 50%, #F1EEF8 100%) 0 0 / 200% 100%; animation: fxAiSkel 1.4s ease-in-out infinite; }
@keyframes fxAiSkel { to { background-position: -200% 0; } }

/* Error */
.fx-ai__body.is-error { gap: 16px; padding: 28px 26px 26px; }
.fx-ai__erri { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--coral-soft); color: #CC3F25; }
.fx-ai__errh { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.fx-ai__errp { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.fx-ai__errb { display: flex; flex-wrap: wrap; gap: 12px; }
.fx-ai__reason { margin: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* Full results */
.fx-ai__full { padding: 28px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.fx-ai__full[hidden] { display: none; }
.fx-ai__fhead { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.fx-ai__fhead > div { flex: 1; min-width: 0; }
.fx-ai__fhead > .fx-ai__ex { align-self: flex-start; margin-top: 18px; }
.fx-ai__fh { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -0.025em; }
.fx-ai__fd { margin: 4px 0 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.fx-ai__h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.fx-ai__p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.fx-ai__tw { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fx-ai__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fx-ai__table th, .fx-ai__table td { padding: 16px 14px; text-align: left; vertical-align: middle; }
.fx-ai__table thead th { padding-top: 12px; padding-bottom: 12px; background: #F7F6FB; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: #4F4868; }
.fx-ai__table tbody tr + tr th, .fx-ai__table tbody tr + tr td, .fx-ai__table tbody tr:first-child > * { border-top: 1px solid var(--line); }
.fx-ai__table tbody th { font-weight: 400; color: var(--ink); }
.fx-ai__table tbody th code { font-size: 14px; }
.fx-ai__note { color: var(--muted); }
.fx-ai__note code { font-size: 13.5px; color: #4F4868; }
.fx-ai__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 32px; align-items: start; }
.fx-ai__cols > div { display: flex; flex-direction: column; min-width: 0; }
.fx-ai__basics { list-style: none; margin: 12px 0 0; padding: 0; }
.fx-ai__basics li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.fx-ai__basics li > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fx-ai__basics strong { font-weight: 600; font-size: 15px; color: var(--ink); }
.fx-ai__basics li > span:last-child > span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.fx-ai__mk { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; }
.fx-ai__basics .is-pass .fx-ai__mk { background: #0B8574; }
.fx-ai__basics .is-warn .fx-ai__mk { background: #B98200; }
.fx-ai__basics .is-fail .fx-ai__mk { background: #CC3F25; }
.fx-ai__fixes { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fx-ai__fixes li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.fx-ai__fn { flex: none; padding-top: 2px; font-family: var(--font-mono); font-size: 12.5px; color: var(--violet); }
.fx-ai__fixes li > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fx-ai__ft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fx-ai__ft strong { font-weight: 600; font-size: 15px; color: var(--ink); }
.fx-ai__lv { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.fx-ai__lv.is-high { background: #FDECE7; color: #B53A22; }
.fx-ai__lv.is-medium { background: #FFF3D1; color: #7D5A00; }
.fx-ai__fx { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.fx-ai__none { margin: 12px 0 0; padding: 16px 18px; border-radius: 16px; background: #E3F3EF; color: #0B5D4F; font-size: 14.5px; }
.fx-ai__audit { width: 100%; justify-content: center; height: 52px; margin-top: 12px; }
.fx-ai__train { margin-top: 24px; padding: 20px 18px 18px; border-radius: 22px; background: #F3F1F9; }
.fx-ai__train .fx-ai__p { margin-top: 8px; font-size: 14px; }
.fx-ai__train ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fx-ai__train li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.fx-ai__train li > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; color: var(--muted); }
.fx-ai__train li code { font-size: 13px; color: var(--ink); }
.fx-ai__choice { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: #F3F1F9; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: #4F4868; white-space: nowrap; }

@media (max-width: 1180px) {
	.fx-ai__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.fx-ai__h { font-size: 50px; }
}
@media (max-width: 960px) {
	.fx-ai__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.fx-ai__sum { margin-top: 0; scroll-margin-top: 90px; }
	.fx-ai__cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
	/* Crawler table: one stacked row per crawler, so the result never scrolls off screen. */
	.fx-ai__table thead { display: none; }
	.fx-ai__table, .fx-ai__table tbody, .fx-ai__table tr, .fx-ai__table th, .fx-ai__table td { display: block; }
	.fx-ai__table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
	.fx-ai__table tbody tr + tr { border-top: 1px solid var(--line); }
	.fx-ai__table tbody th, .fx-ai__table tbody td, .fx-ai__table tbody tr:first-child > * { padding: 0; border: 0 !important; }
	.fx-ai__table tbody th code { font-size: 14px; font-weight: 500; }
	.fx-ai__table td[data-l] { font-size: 14px; }
	.fx-ai__table td.fx-ai__note::before { content: attr(data-l) ": "; color: #6B6585; }
	.fx-ai__table tbody td:last-child { margin-top: 4px; }
}
@media (max-width: 600px) {
	.fx-ai { padding-top: 20px; }
	.fx-ai__in { gap: 24px; }
	.fx-ai__h { font-size: 36px; line-height: 1.04; }
	.fx-ai__card { padding: 20px; border-radius: 20px; }
	.fx-ai__sum { border-radius: 22px; }
	.fx-ai__body { padding: 20px 16px 18px; }
	.fx-ai__top { gap: 16px; align-items: flex-start; }
	.fx-ai__ring { width: 92px; height: 92px; }
	.fx-ai__ring b { font-size: 28px; }
	.fx-ai__st { font-size: 21px; }
	.fx-ai__tiles, .fx-ai__skel { grid-template-columns: minmax(0, 1fr); }
	.fx-ai__full { padding: 20px 16px; border-radius: 22px; }
	.fx-ai__fhead { flex-wrap: wrap; }
	.fx-ai__fh { font-size: 24px; }
	.fx-ai__fhead > .fx-ai__ex { margin-top: 0; }
	.fx-ai__h3 { font-size: 20px; }
	.fx-ai__train { padding: 18px 14px 14px; }
	.fx-ai__train li { flex-direction: column; align-items: flex-start; }
	.fx-ai__errh { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
	.fx-ai__ring .fg, .fx-ai__steps .is-now i, .fx-ai__skel i { animation: none; }
}
.fx-ai__tool { margin-top: 8px; }
