/* Scoped to the AI Tools page; loaded only by page-templates/tools-index.php. */
/* Keep the tools hero flush beneath the fixed primary navigation. */
.app:has(> .ai-tools) > .main-conteiner_banners { display: none; }
.header-nav_mb0:has(+ .ai-tools) { height: auto !important; min-height: 0; }
.header-nav_mb0:has(+ .ai-tools) > header.header { display: flow-root; height: auto !important; min-height: 60px; padding-top: 0; }
.header-nav_mb0:has(+ .ai-tools) .wrapp_header-nav { box-sizing: border-box; height: 60px; margin: 0; border: 0; box-shadow: none; }
.ai-tools { --ait-ink: #191b25; --ait-muted: #656773; --ait-line: #e3e4eb; --ait-brand: #a41683; background: #f7f8fb; color: var(--ait-ink); font-family: OpenSans, Arial, sans-serif; font-size: 14px; line-height: 1.65; }
.ai-tools *, .ai-tools *::before, .ai-tools *::after { box-sizing: border-box; }
.ai-tools [hidden] { display: none !important; }
.ai-tools h1, .ai-tools h2, .ai-tools h3, .ai-tools p, .ai-tools ul { margin: 0; padding: 0; }
.ai-tools h1, .ai-tools h2, .ai-tools h3 { font-family: OpenSans, Arial, sans-serif; color: inherit; font-weight: 800; }
.ai-tools a { color: inherit; text-decoration: none; }
.ai-tools a:hover { color: var(--ait-brand); }
.ai-tools a:focus-visible, .ai-tools button:focus-visible, .ai-tools summary:focus-visible, .ai-tools input:focus-visible, .ai-tools select:focus-visible { outline: 3px solid #bc60b1; outline-offset: 4px; }
.ai-tools svg { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.ait-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.ait-hero { padding: 24px 0 48px; color: #fff; background: radial-gradient(ellipse at 5% 115%, #672247 0, transparent 54%), radial-gradient(ellipse at 100% 110%, #353265 0, transparent 50%), #111217; }
.ait-breadcrumb { display: flex; gap: 14px; align-items: center; color: #c6c5ce; font-size: 12px; margin-bottom: 38px; }
.ait-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.ait-breadcrumb > span:nth-child(2) { color: #73717d; }
.ait-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: center; gap: 70px; }
.ai-tools .ait-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.8px; line-height: 1.5; color: var(--ait-brand); margin-bottom: 13px; }
.ait-hero .ait-eyebrow { color: #e2b6d8; }
.ait-hero-grid > div > .ait-eyebrow::before { content: ''; display: inline-block; width: 18px; height: 2px; background: #df9ace; vertical-align: middle; margin-right: 9px; }
.ai-tools .ait-hero h1 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -1.8px; line-height: 1.18; margin-bottom: 20px; }
.ait-hero h1 span { color: #d9cadf; }
.ai-tools .ait-hero-copy { color: #d0ccd6; max-width: 695px; font-size: 15px; line-height: 1.85; }
.ait-actions { display: flex; gap: 28px; align-items: center; margin-top: 26px; }
.ai-tools .ait-button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; background: var(--ait-brand); border: 1px solid var(--ait-brand); border-radius: 6px; padding: 12px 18px; color: #fff; font: 700 12px/1.5 OpenSans, Arial, sans-serif; text-transform: none; letter-spacing: 0; cursor: pointer; min-height: 44px; box-shadow: none; }
.ai-tools .ait-button:hover { background: #7e1467; border-color: #7e1467; color: #fff; }
.ai-tools .ait-button--light { background: #fff; color: #23202b; border-color: #fff; }
.ai-tools .ait-button--light:hover { background: #f0e4ee; border-color: #f0e4ee; color: #451537; }
.ait-button svg { width: 17px; height: 17px; }
.ait-hero-link { font-size: 12px; font-weight: 700; }
.ai-tools .ait-hero-link:hover { color: #f4caec; }
.ait-hero-link span { margin-left: 8px; }
.ait-hero-aside { border-left: 1px solid #ffffff24; padding: 10px 0 10px 30px; }
.ait-hero-aside .ait-eyebrow { font-size: 9px; letter-spacing: 1.25px; color: #c4bacd; }
.ait-hero-number { display: flex; align-items: center; gap: 16px; font-size: 64px; font-weight: 800; letter-spacing: -3px; line-height: 1.25; }
.ait-hero-number span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: #d6d0dc; line-height: 1.65; }
.ait-hero-icons { display: flex; gap: 8px; margin-top: 20px; }
.ait-hero-icons > span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff21; background: #ffffff06; border-radius: 6px; color: #dbc7e0; }
.ait-hero-icons svg { width: 18px; height: 18px; }
.ai-tools .ait-hero-aside > p { color: #b6acbd; font-size: 10px; margin-top: 14px; }
.ait-overview { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ait-line); background: #fff; border-radius: 9px; margin-top: 26px; }
.ait-overview > div { display: flex; flex-direction: column; padding: 22px 26px; }
.ait-overview > div + div { border-left: 1px solid var(--ait-line); }
.ait-overview strong { font-size: 28px; font-weight: 800; line-height: 1.25; letter-spacing: -1px; }
.ait-overview span { font-size: 11px; color: var(--ait-muted); margin-top: 5px; }
.ait-overview .ait-overview-note { flex-direction: row; gap: 16px; align-items: center; }
.ait-overview-note svg { color: var(--ait-brand); width: 30px; height: 30px; }
.ait-overview-note span { margin: 0; font-size: 12px; }
.ait-overview-note b { color: var(--ait-ink); font-weight: 700; }
.ait-section { padding-top: 48px; scroll-margin-top: 85px; }
.ait-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.ai-tools h2 { font-size: 28px; line-height: 1.25; letter-spacing: -.85px; }
.ai-tools .ait-section-heading .ait-eyebrow { margin-bottom: 9px; }
.ait-section-heading > p { color: var(--ait-muted); font-size: 12px; padding-bottom: 3px; }
.ait-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ait-category { background: #fff; border: 1px solid var(--ait-line); border-radius: 8px; padding: 24px 24px 0; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.ait-category:hover { border-color: #cba7c9; box-shadow: 0 5px 20px #24203606; }
.ait-category-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.ait-category-icon { display: grid; place-items: center; background: #f7edf7; color: var(--ait-brand); width: 44px; height: 44px; border-radius: 10px; }
.ait-count { font-size: 10px; color: var(--ait-muted); border: 1px solid var(--ait-line); border-radius: 20px; padding: 4px 9px; }
.ai-tools .ait-category h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.5px; margin-bottom: 9px; }
.ai-tools .ait-category > p { color: var(--ait-muted); font-size: 12px; min-height: 40px; margin-bottom: 17px; }
.ai-tools .ait-topic-list { list-style: none; margin-bottom: 17px; }
.ait-topic-list li { border-bottom: 1px solid #f0f0f5; }
.ait-topic-list li:last-child { border: 0; }
.ait-topic-list a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; font-size: 12px; min-height: 36px; }
.ait-topic-list span { color: #97939f; }
.ai-tools .ait-category-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; padding: 14px 0; border-top: 1px solid var(--ait-line); font-size: 11px; font-weight: 700; color: var(--ait-brand); margin-top: auto; }
.ait-category-footer svg { width: 16px; height: 16px; }
.ait-guide-card { grid-column: span 2; border: 1px solid #e4daeb; border-radius: 8px; background: radial-gradient(ellipse at 95% 0%, #e9e0f4, transparent 70%), #f4eff7; padding: 35px 40px; display: flex; flex-direction: column; justify-content: center; }
.ai-tools .ait-guide-card h3 { font-size: 30px; letter-spacing: -.8px; line-height: 1.25; margin-bottom: 17px; }
.ai-tools .ait-guide-card > p:not(.ait-eyebrow) { max-width: 420px; color: #696172; font-size: 13px; }
.ait-guide-card > a { display: inline-flex; align-items: center; gap: 18px; margin-top: 26px; font-size: 12px; font-weight: 700; }
.ait-guide-card svg { width: 18px; }
.ait-filters { display: grid; grid-template-columns: minmax(0, 1fr) 230px 155px auto; align-items: end; gap: 14px; background: #fff; border: 1px solid var(--ait-line); border-radius: 8px; padding: 20px; }
.ait-filters label { display: block; font-size: 10px; font-weight: 700; color: #5d5e6b; margin-bottom: 7px; }
.ai-tools .ait-filters input[type=search], .ai-tools .ait-filters select { width: 100%; height: 44px; min-height: 44px; border: 1px solid #dedee7; border-radius: 5px; font: 400 12px OpenSans, Arial, sans-serif; background-color: #fff; color: var(--ait-ink); margin: 0; box-shadow: none; padding: 0 12px; }
.ai-tools .ait-filters input[type=search] { padding-left: 37px; appearance: auto; }
.ait-search-field > div { position: relative; }
.ait-search-field svg { position: absolute; left: 12px; top: 14px; height: 16px; width: 16px; color: #8b8994; pointer-events: none; }
.ait-filters .ait-button { height: 44px; }
.ait-results-meta { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 11px; color: var(--ait-muted); }
.ait-results-meta a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 700; }
.ait-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ait-tool { display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--ait-line); border-radius: 8px; }
.ait-tool-top { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.ait-tool-mark { flex-shrink: 0; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #e4dbe9; border-radius: 9px; font-size: 16px; font-weight: 800; background: #f7f3f9; color: #604171; }
.ait-tool-category { font-size: 9px; color: #73707d; line-height: 1.4; }
.ai-tools .ait-tool h3 { font-size: 17px; letter-spacing: -.3px; margin-bottom: 9px; }
.ait-tool h3 a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.ait-tool h3 a > span[aria-hidden] { font-size: 15px; font-weight: 400; color: #95909d; }
.ai-tools .ait-tool > p { font-size: 12px; line-height: 1.8; color: var(--ait-muted); margin-bottom: 20px; }
.ait-tool-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.ait-tool-tags > span { font-size: 9px; padding: 3px 7px; border-radius: 4px; background: #f4f4f8; color: #696472; }
.ai-tools .ait-directory-note { font-size: 11px; color: var(--ait-muted); margin-top: 20px; line-height: 1.8; }
.ait-empty { text-align: center; padding: 55px 20px; background: #fff; border: 1px solid var(--ait-line); border-radius: 8px; }
.ait-empty > svg { width: 30px; height: 30px; color: var(--ait-brand); margin-bottom: 20px; }
.ai-tools .ait-empty h3 { font-size: 22px; margin-bottom: 8px; }
.ai-tools .ait-empty p { color: var(--ait-muted); margin-bottom: 20px; }
.ait-help { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; padding-bottom: 48px; margin-top: 48px; border-top: 1px solid var(--ait-line); }
.ai-tools .ait-help h2 { margin-bottom: 15px; }
.ait-help > div > p:not(.ait-eyebrow) { color: var(--ait-muted); font-size: 16px; }
.ait-faq details { border-bottom: 1px solid var(--ait-line); }
.ait-faq details:first-child { border-top: 1px solid var(--ait-line); }
.ait-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0; font-size: 17px; line-height: 1.5; font-weight: 700; cursor: pointer; list-style: none; }
.ait-faq summary::-webkit-details-marker { display: none; }
.ait-faq summary::after { content: '+'; flex-shrink: 0; font-size: 20px; font-weight: 400; color: var(--ait-brand); }
.ait-faq details[open] summary::after { content: '−'; }
.ai-tools .ait-faq details p { padding: 0 25px 20px 0; font-size: 16px; line-height: 1.75; color: var(--ait-muted); }
.ait-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 0 44px; border-top: 1px solid var(--ait-line); }
.ai-tools .ait-bottom h2 { font-size: 24px; margin-bottom: 9px; }
.ai-tools .ait-bottom p:not(.ait-eyebrow) { font-size: 12px; color: var(--ait-muted); }
.ai-tools .ait-bottom .ait-eyebrow { margin-bottom: 10px; }
.ait-editor-content { padding-top: 0; padding-bottom: 40px; }
.ait-editor-content p { margin-bottom: 16px; }
.ait-editor-content a { text-decoration: underline; }
@media (max-width: 1050px) {
	.ait-hero-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; }
	.ait-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ait-filters { grid-template-columns: minmax(0, 1fr) 190px 135px; }
	.ait-filters > button { grid-column: 1 / -1; }
	.ait-overview > div { padding: 20px; }
}
@media (max-width: 800px) {
	.ait-category-grid, .ait-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ait-hero-grid { grid-template-columns: 1fr; }
	.ait-hero-aside { display: none; }
	.ait-hero-copy { max-width: 620px; }
	.ait-section-heading { align-items: start; flex-direction: column; gap: 12px; }
	.ait-filters { grid-template-columns: 1fr 1fr; }
	.ait-filters > .ait-search-field { grid-column: 1 / -1; }
	.ait-overview { grid-template-columns: 1fr 1fr; }
	.ait-overview > div:nth-child(3) { border-left: 0; }
	.ait-overview > div:nth-child(n+3) { border-top: 1px solid var(--ait-line); }
	.ait-help { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 520px) {
	.ait-hero { padding: 22px 0 34px; }
	.ait-breadcrumb { margin-bottom: 28px; }
	.ai-tools .ait-hero h1 { font-size: 33px; letter-spacing: -1.1px; }
	.ai-tools .ait-hero-copy { font-size: 13px; }
	.ait-actions { gap: 18px; flex-wrap: wrap; }
	.ait-category-grid, .ait-tool-grid { grid-template-columns: 1fr; }
	.ait-guide-card { grid-column: auto; padding: 28px; }
	.ait-category { padding: 22px 22px 0; }
	.ai-tools .ait-category > p { min-height: 0; }
	.ait-topic-list a { min-height: 44px; }
	.ait-section { padding-top: 36px; }
	.ai-tools h2 { font-size: 25px; }
	.ait-filters { padding: 16px; gap: 12px; }
	.ait-filters > div { min-width: 0; }
	.ait-overview > div { padding: 18px; }
	.ait-overview span { font-size: 10px; }
	.ait-overview .ait-overview-note { gap: 10px; }
	.ait-help { margin-top: 36px; }
	.ait-bottom { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .ai-tools * { transition: none !important; scroll-behavior: auto !important; } }

/* Full directory layout. */
.ait-hero-search { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 7px 7px 7px 17px; background: #fff; border: 1px solid #e9e0ed; border-radius: 8px; }
.ait-hero-search > svg { width: 19px; height: 19px; color: #77717e; }
.ai-tools .ait-hero-search input[type=search] { flex: 1; min-width: 0; width: 0; height: 42px; margin: 0; padding: 0; background: #fff; border: 0; box-shadow: none; color: var(--ait-ink); font: 400 13px OpenSans, Arial, sans-serif; }
.ait-hero-search .ait-button { flex-shrink: 0; }
.ait-hero-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; font-size: 10px; color: #bdb0c2; }
.ait-hero-suggestions a { color: #e7d5e8; }
.ait-hero-suggestions a + a { padding-inline-start: 14px; border-inline-start: 1px solid #e7d5e840; }
.ai-tools .ait-hero-suggestions a:hover { color: #fff; text-decoration: underline; }
.ait-hero h1 span { background: linear-gradient(100deg, #edaed7, #c2b2ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ait-directory-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 28px; align-items: start; }
.ait-sidebar { position: sticky; top: 82px; max-height: calc(100vh - 106px); overflow-y: auto; scrollbar-width: thin; padding: 19px 10px; border: 1px solid var(--ait-line); border-radius: 8px; background: #fff; }
.ai-tools .ait-sidebar > .ait-eyebrow { font-size: 8px; letter-spacing: 1px; padding: 0 10px; color: #88818e; }
.ait-sidebar a { display: flex; align-items: center; gap: 8px; border-radius: 5px; padding: 9px 10px; font-size: 10px; line-height: 1.5; }
.ait-sidebar a:hover { background: #f8f4f9; }
.ait-sidebar a[aria-current=true] { color: var(--ait-brand); background: #f6edf7; font-weight: 700; }
.ait-sidebar a svg { width: 15px; height: 15px; color: #96909e; }
.ait-sidebar a span { flex: 1; }
.ait-sidebar small { margin-left: auto; color: #8b8491; font-size: 9px; }
.ait-sidebar .ait-sidebar-all { font-size: 11px; font-weight: 700; }
.ait-sidebar-all span { flex: 0 !important; margin-left: auto; }
.ai-tools .ait-sidebar-group h3 { padding: 18px 10px 6px; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: #92899b; }
.ait-directory-main { min-width: 0; }
.ait-collection-tabs { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; border-bottom: 1px solid var(--ait-line); margin-bottom: 18px; }
.ai-tools .ait-collection-tabs button, .ai-tools .ait-family-filters button { border: 0; border-radius: 0; font: 600 12px/1.5 OpenSans, Arial, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; background: transparent; color: var(--ait-muted); box-shadow: none; padding: 0 0 13px; }
.ait-collection-tabs button[aria-pressed=true] { color: var(--ait-brand); border-bottom: 2px solid var(--ait-brand); }
.ait-collection-tabs button span { margin-left: 7px; font-size: 10px; border-radius: 20px; padding: 2px 7px; background: #ecebf1; color: #716779; }
#ait-save-status { font-size: 10px; color: var(--ait-muted); margin: 0 0 12px auto; }
.ai-tools .ait-text-link { display: inline-flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 700; color: var(--ait-brand); }
.ait-text-link svg { width: 17px; }
.ait-directory .ait-filters { grid-template-columns: minmax(0, 1fr) 170px 137px auto; gap: 10px; padding: 15px; }
.ait-directory .ait-filters > button { grid-column: auto; padding: 10px 12px; }
.ait-directory .ait-filters input::placeholder { font-size: 11px; }
.ait-directory .ait-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ait-directory .ait-tool { padding: 19px; }
.ait-directory .ait-tool-top { gap: 10px; margin-bottom: 15px; }
.ait-directory .ait-tool-mark { width: 40px; height: 40px; font-size: 19px; background: #fff; overflow: hidden; border-radius: 10px; }
.ait-tool-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ait-tool:nth-child(5n+1) .ait-tool-mark { color: #805d9e; background-color: #f7f0ff; }
.ait-tool:nth-child(5n+2) .ait-tool-mark { color: #36796f; background-color: #eef8f4; }
.ait-tool:nth-child(5n+3) .ait-tool-mark { color: #b47737; background-color: #fff6e9; }
.ait-tool:nth-child(5n+4) .ait-tool-mark { color: #6b6aac; background-color: #f1f2ff; }
.ait-tool-category { flex: 1; }
.ai-tools .ait-save { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 36px; padding: 5px; margin: 0 -6px 0 0; border: 0; border-radius: 5px; background: transparent; color: #99909f; cursor: pointer; }
.ait-save svg { width: 16px; height: 16px; }
.ai-tools .ait-save:hover { background: #f7eff8; color: var(--ait-brand); }
.ai-tools .ait-save[aria-pressed=true] { color: var(--ait-brand); }
.ait-save[aria-pressed=true] svg { fill: #f2d9ed; }
.ait-tool-bottom { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 13px; border-top: 1px solid #efedf3; align-items: center; }
.ait-tool-bottom > span { color: #8b8592; font-size: 9px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ait-tool-bottom > a { font-size: 10px; font-weight: 700; color: var(--ait-brand); white-space: nowrap; padding: 3px 0; }
.ait-pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 25px; font-size: 11px; }
.ait-pagination a { padding: 10px 14px; border: 1px solid var(--ait-line); border-radius: 6px; background: #fff; font-weight: 700; }
.ait-pagination span { color: var(--ait-muted); }
.ait-category-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ait-family-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-tools .ait-family-filters button { padding: 8px 17px; border: 1px solid var(--ait-line); border-radius: 6px; font-size: 11px; background: #fff; }
.ai-tools .ait-family-filters button[aria-pressed=true] { background: #271e30; color: #fff; border-color: #271e30; }
#ait-category-count { font-size: 11px; color: var(--ait-muted); }
.ait-category-more { text-align: center; margin-top: 24px; }
.ai-tools .ait-button--outline { color: var(--ait-brand); background: #fff; border-color: #ddc6df; }
.ait-categories { margin-top: 46px; border-top: 1px solid var(--ait-line); }
@media (max-width: 1120px) {
    .ait-directory-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
    .ait-directory .ait-filters { grid-template-columns: minmax(0, 1fr) 150px 130px; }
    .ait-directory .ait-filters > .ait-search-field { grid-column: 1 / -1; }
    .ait-directory .ait-filters > button { grid-column: auto; }
    .ait-directory .ait-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .ait-directory-layout { grid-template-columns: 1fr; }
    .ait-sidebar { display: none; }
    .ait-directory .ait-filters { grid-template-columns: minmax(0, 1fr) 150px auto; }
    .ait-directory .ait-filters > .ait-search-field { grid-column: auto; }
    .ait-directory .ait-filters > div:nth-of-type(3) { grid-column: 1 / 3; }
    .ait-hero-search { max-width: 650px; }
}
@media (max-width: 600px) {
    .ait-directory .ait-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ait-directory .ait-filters > .ait-search-field { grid-column: 1 / -1; }
    .ait-directory .ait-filters > div:nth-of-type(3) { grid-column: auto; }
    .ait-directory .ait-filters > button { grid-column: 1 / -1; }
    .ait-directory .ait-tool-grid { grid-template-columns: 1fr; }
    .ait-directory .ait-tool { padding: 22px; }
    .ait-tool-bottom > a { min-height: 34px; display: inline-flex; align-items: center; font-size: 11px; }
    .ai-tools .ait-save { width: 44px; height: 44px; }
    .ait-hero-search { gap: 8px; padding: 6px 6px 6px 12px; }
    .ait-hero-search .ait-button { padding: 10px 12px; font-size: 11px; gap: 0; }
    .ait-hero-search .ait-button svg { display: none; }
    .ai-tools .ait-hero-search input[type=search] { font-size: 16px; }
    .ai-tools .ait-hero-search input::placeholder { font-size: 11px; }
    .ai-tools .ait-filters input[type=search], .ai-tools .ait-filters select { font-size: 16px; }
    .ait-hero-suggestions { gap: 8px 13px; font-size: 9px; }
    .ait-pagination { gap: 12px; }
    .ait-pagination a { padding: 11px; }
    .ai-tools .ait-family-filters button { min-height: 44px; }
    #ait-save-status { width: 100%; margin: 0 0 10px; }
    #ait-save-status:empty { display: none; }
}
/* Override the legacy theme's content-box rule for search inputs. */
.ai-tools .ait-filters input[type=search], .ai-tools .ait-hero-search input[type=search] { box-sizing: border-box; }
.ait-filters > div { min-width: 0; }

.ait-featured-badge {
    display: inline-flex; align-items: center; align-self: flex-start; gap: 5px;
    margin-bottom: 12px; padding: 3px 8px; border: 1px solid #ead2e5;
    border-radius: 5px; background: #fbf1f8; color: var(--ait-brand);
    font-size: 9px; font-weight: 700; line-height: 1.5; letter-spacing: .25px;
}
.ai-tools .ait-featured-badge svg { width: 12px; height: 12px; }

/* Accessible dropdowns, enhanced from the native GET-form selects. */
.ai-tools .ait-filters select {
    appearance: none; -webkit-appearance: none; padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2370687d' stroke-width='1.6'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; cursor: pointer;
}
.ai-tools .ait-filters .ait-select-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 12px;
    border: 1px solid #dcdce7; border-radius: 6px; background: #fff; color: var(--ait-ink);
    font: 500 12px/1.4 OpenSans, Arial, sans-serif; text-align: left; text-transform: none;
    letter-spacing: 0; cursor: pointer; box-shadow: 0 1px 2px #24203604;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.ait-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-tools .ait-select-trigger svg { flex-shrink: 0; width: 18px; height: 18px; color: #81768b; transition: transform .15s; }
.ai-tools .ait-filters .ait-select-trigger:hover { border-color: #bf9bc4; background: #fcf9fd; }
.ai-tools .ait-filters .ait-select-trigger.has-selection { color: #861570; border-color: #d7b6d5; background: #fcf7fc; }
.ai-tools .ait-filters .ait-select-trigger[aria-expanded=true] { border-color: var(--ait-brand); box-shadow: 0 0 0 3px #a4168312; background: #fff; }
.ait-select-trigger[aria-expanded=true] svg { transform: rotate(180deg); color: var(--ait-brand); }
.ai-tools .ait-filters input[type=search]:focus-visible, .ai-tools .ait-filters select:focus-visible, .ai-tools .ait-filters .ait-select-trigger:focus-visible { outline: 2px solid #a41683; outline-offset: 2px; }
.ai-tools .ait-select-panel {
    position: fixed; z-index: 10010; display: flex; flex-direction: column; padding: 6px;
    border: 1px solid #e1d8e6; border-radius: 12px; background: #fff; color: var(--ait-ink);
    box-shadow: 0 16px 48px #25163124, 0 3px 10px #2516310a;
    overflow: hidden; isolation: isolate;
}
.ait-select-options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d5c6db transparent; padding: 2px; }
.ait-select-search { position: relative; flex-shrink: 0; padding: 7px 7px 12px; border-bottom: 1px solid #efebf3; margin-bottom: 4px; }
.ait-select-search > svg { position: absolute; left: 19px; top: 20px; width: 17px; height: 17px; color: #988c9f; pointer-events: none; }
.ai-tools .ait-select-search input[type=search] { box-sizing: border-box; width: 100%; height: 42px; margin: 0; padding: 0 12px 0 37px; background: #f9f7fb; border: 1px solid #e8e1ed; border-radius: 7px; color: #292130; font: 400 13px OpenSans, Arial, sans-serif; box-shadow: none; }
.ai-tools .ait-select-search input[type=search]:focus { border-color: #d0afd3; outline: 0; box-shadow: 0 0 0 2px #a416830a; }
.ait-select-group { padding: 13px 12px 5px; color: #8b7d97; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.ait-select-option { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 11px; border-radius: 6px; cursor: pointer; font-size: 12px; line-height: 1.45; }
.ait-select-option:hover, .ait-select-option.is-active { background: #f6f3f9; }
.ait-select-option.is-active { box-shadow: inset 0 0 0 1px #d9c7e0; }
.ait-select-option[aria-selected=true] { background: #f8edf6; color: #941479; }
.ait-select-option[aria-selected=true] .ait-select-copy > span { font-weight: 700; }
.ait-select-copy { flex: 1; min-width: 0; }
.ait-select-copy > span { display: block; }
.ait-select-copy > small { display: block; font-size: 10px; color: #89808f; margin-top: 4px; }
.ait-select-count { font-size: 10px; color: #928698; background: #f1edf5; padding: 2px 7px; border-radius: 12px; }
.ait-select-check { width: 15px; flex-shrink: 0; visibility: hidden; font-size: 14px; font-weight: 700; }
.ait-select-option[aria-selected=true] .ait-select-check { visibility: visible; }
.ai-tools .ait-select-empty { padding: 22px 14px; font-size: 12px; color: var(--ait-muted); text-align: center; }
@media (min-width: 1121px) { .ait-directory .ait-filters { grid-template-columns: minmax(0, 1fr) 220px 165px auto; } }
@media (max-width: 600px) {
    .ai-tools .ait-filters .ait-select-trigger { height: 48px; font-size: 13px; padding: 0 11px; }
    .ai-tools .ait-select-search input[type=search] { font-size: 16px; height: 46px; }
    .ait-select-search > svg { top: 22px; }
    .ait-select-option { min-height: 48px; font-size: 13px; }
    .ait-select-copy > small { font-size: 11px; }
}
