:root {
  --atf-ink: #0b1220;
  --atf-muted: #667085;
  --atf-line: #e5e7eb;
  --atf-paper: #fbfbf8;
  --atf-blue: #165dc8;
  --atf-blue-soft: #eef4ff;
  --atf-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

/* Tool profiles: Figma 36:2 / 36:56 and 38:2 / 38:56. */
.atf-profile * { box-sizing: border-box; }
.atf-profile { line-height: 1.45; }
.atf-profile a { color: var(--atf-blue); text-decoration: none; }
.atf-profile a:hover { text-decoration: underline; }
.atf-profile :is(a, summary):focus-visible { outline: 3px solid var(--atf-blue); outline-offset: 4px; border-radius: 4px; }
.atf-profile h1, .atf-profile h2, .atf-profile h3 { margin: 0; font-family: Sora, sans-serif; font-weight: 600; color: var(--atf-ink); }
.atf-profile p, .atf-profile figure, .atf-profile dl { margin: 0; }
.atf-profile .header-inner { justify-content: space-between; gap: 24px; }
.atf-profile .brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.atf-profile .brand:hover { text-decoration: none; }
.atf-profile .nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.atf-profile .nav a { color: #4b5563; }
.atf-profile .button { display: inline-flex; min-height: 40px; padding: 9px 18px; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; white-space: nowrap; }
.atf-profile .button-dark { color: #fff; }
.atf-profile .profile-menu { display: none; }
.atf-profile .profile-skip { position: absolute; left: 20px; top: -100px; z-index: 50; padding: 12px; background: white; }
.atf-profile .profile-skip:focus { top: 8px; }
.atf-profile .profile-main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 40px; }
.atf-profile .profile-crumb { margin-bottom: 24px; font-size: 13px; color: var(--atf-muted); }
.atf-profile .profile-crumb a { color: inherit; }
.atf-profile .profile-hero { display: grid; justify-items: start; gap: 10px; padding: 28px; margin-bottom: 24px; border: 1px solid var(--atf-line); border-radius: 16px; background: #fff; }
.atf-profile .profile-kicker { color: var(--atf-blue); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.atf-profile .profile-hero h1 { font-size: 38px; line-height: 1.45; }
.atf-profile .profile-lead { color: var(--atf-muted); font-size: 18px; }
.atf-profile .profile-visit { min-height: 46px; min-width: 190px; display: inline-flex; align-items: center; padding: 12px; border-radius: 9px; background: var(--atf-blue); color: white; font-size: 15px; }
.atf-profile .profile-review { color: var(--atf-muted); font-size: 12px; }
.atf-profile .profile-layout { display: grid; grid-template-columns: minmax(0, 780fr) minmax(0, 356fr); grid-template-areas: 'article glance' 'article toc' 'article related'; grid-template-rows: auto auto 1fr; align-items: start; gap: 20px 24px; }
.atf-profile .profile-article { grid-area: article; display: grid; gap: 20px; min-width: 0; }
.atf-profile .profile-card { min-width: 0; padding: 24px; border: 1px solid var(--atf-line); border-radius: 14px; background: white; scroll-margin-top: 24px; }
.atf-profile .profile-card h2 { font-size: 22px; line-height: 1.45; margin-bottom: 10px; }
.atf-profile .profile-card p, .atf-profile .profile-card li, .atf-profile .profile-card dd { color: var(--atf-muted); font-size: 16px; }
.atf-profile .profile-card p + p, .atf-profile .profile-card ul + p, .atf-profile .profile-card dl + p { margin-top: 14px; }
.atf-profile .profile-card ul, .atf-profile .profile-card ol { padding-left: 22px; margin: 12px 0 0; }
.atf-profile .profile-card li + li { margin-top: 10px; }
.atf-profile .profile-card strong { color: var(--atf-ink); }
.atf-profile .profile-card figcaption { font-size: 16px; color: var(--atf-muted); margin-bottom: 12px; }
.atf-profile .profile-card figure img { display: block; width: 100%; height: 330px; object-fit: contain; border-radius: 10px; }
.atf-profile .profile-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; align-items: start; }
.atf-profile .profile-plan { display: grid; gap: 8px; padding: 16px; border-radius: 10px; background: var(--atf-blue-soft); }
.atf-profile .profile-plan h3 { font-family: 'Source Sans 3', sans-serif; font-size: 16px; }
.atf-profile .profile-plan .profile-price { font-size: 23px; font-weight: 600; }
.atf-profile .profile-plan p { font-size: 15px; }
.atf-profile .profile-comparison { display: grid; gap: 16px; }
.atf-profile .profile-comparison > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--atf-line); }
.atf-profile .profile-comparison dt { font-weight: 600; }
.atf-profile .profile-comparison dd, .atf-profile .profile-facts dd { margin: 0; }
.atf-profile .profile-glance { grid-area: glance; }
.atf-profile .profile-facts { display: grid; gap: 22px; }
.atf-profile .profile-facts dt { font-size: 13px; text-transform: uppercase; color: var(--atf-muted); margin-bottom: 4px; }
.atf-profile .profile-facts dd { font-size: 16px; }
.atf-profile .profile-toc { grid-area: toc; }
.atf-profile .profile-toc a, .atf-profile .profile-related a, .atf-profile .profile-toc-mobile a { display: block; padding: 5px 0; }
.atf-profile .profile-related { grid-area: related; }
.atf-profile .profile-toc-mobile { display: none; }
.atf-profile .profile-footer { width: min(1160px, calc(100% - 48px)); margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; padding: 0 0 32px; color: var(--atf-muted); font-size: 13px; }
.atf-profile .profile-footer nav { display: flex; gap: 20px; }
@media (max-width: 900px) {
  .atf-profile .header-inner > .nav, .atf-profile .header-inner > .button { display: none; }
  .atf-profile .profile-menu { display: block; }
  .atf-profile .profile-menu summary { cursor: pointer; padding: 12px 4px; font-size: 14px; color: var(--atf-muted); }
  .atf-profile .profile-menu .nav { position: absolute; z-index: 30; top: 59px; left: 0; right: 0; display: grid; gap: 0; padding: 12px 24px; background: white; border-bottom: 1px solid var(--atf-line); box-shadow: var(--atf-shadow); }
  .atf-profile .profile-menu .nav a { padding: 12px 0; }
  .atf-profile .profile-layout { grid-template-columns: 1fr; grid-template-areas: 'mobiletoc' 'glance' 'article' 'related'; grid-template-rows: auto; }
  .atf-profile .profile-toc { display: none; }
  .atf-profile .profile-toc-mobile { display: block; grid-area: mobiletoc; padding-top: 16px; padding-bottom: 16px; }
  .atf-profile .profile-toc-mobile summary { font-weight: 600; cursor: pointer; }
  .atf-profile .profile-toc-mobile nav { padding-top: 10px; }
  .atf-profile .profile-toc-mobile a { padding: 10px 0; }
}
@media (max-width: 600px) {
  .atf-profile .profile-main, .atf-profile .profile-footer { width: calc(100% - 40px); }
  .atf-profile .profile-hero { padding: 20px; }
  .atf-profile .profile-hero h1 { font-size: 32px; }
  .atf-profile .profile-visit { min-width: 180px; }
  .atf-profile .profile-plans { grid-template-columns: 1fr; }
  .atf-profile .profile-card figure img { height: 170px; }
  .atf-profile .profile-comparison > div { grid-template-columns: 1fr; gap: 6px; }
}

body.atf-v2 { margin: 0; background: var(--atf-paper); color: var(--atf-ink); font-family: "Source Sans 3", sans-serif; }
.atf-v2 .shell, .atf-v2 .wrap { width: min(1360px, calc(100% - 48px)); max-width: none; margin-inline: auto; }
.atf-v2 .site-header, .atf-v2 .site-nav, .atf-v2 > header:first-of-type { height: 60px; position: relative; top: auto; border: 0; border-bottom: 1px solid var(--atf-line); background: #fff; color: var(--atf-ink); box-shadow: none; }
.atf-v2 .site-header .header-inner, .atf-v2 .nav-inner, .atf-v2 > header:first-of-type > div { height: 100%; padding-block: 0; display: flex; align-items: center; }
.atf-v2 .brand-mark { width: 34px; height: 34px; border-radius: 50%; background: transparent; color: var(--atf-blue); overflow: hidden; }
.atf-v2 .brand-mark img { display: block; width: 100%; height: 100%; }
.atf-v2 .brand-index { display: none; }
.atf-v2 .brand-name, .atf-v2 .nav-brand, .atf-v2 > header:first-of-type > div > a:first-child { color: var(--atf-ink); font-family: Sora, sans-serif; font-size: 20px; font-weight: 800; }
.atf-brand { display: inline-flex !important; align-items: center; gap: 9px; text-decoration: none; }
.atf-brand img { width: 32px; height: 32px; flex: 0 0 32px; }
.atf-v2 .nav, .atf-v2 .nav-back, .atf-v2 > header:first-of-type nav { color: #4b5563; }
.atf-v2 .button-dark { border-radius: 999px; background: var(--atf-ink); color: #fff; }
.atf-v2 .button-light { border-radius: 999px; background: #fff; }

.atf-v2-home .hero { padding: 40px 0 34px; border-bottom: 1px solid var(--atf-line); background: radial-gradient(circle at 34% 12%, rgba(189,234,255,.6) 0, rgba(189,234,255,0) 25%), radial-gradient(circle at 67% 12%, rgba(255,224,173,.52) 0, rgba(255,224,173,0) 24%), #fffdfa; text-align: center; }
.atf-v2-home .hero-main { display: block; max-width: 820px; margin: auto; }
.atf-v2-home .hero-copy h1 { max-width: 790px; margin: 0 auto 13px; font-size: 46px; line-height: 1.08; letter-spacing: -.045em; }
.hero-highlight { position: relative; z-index: 0; white-space: nowrap; }
.hero-highlight::after { content: ""; position: absolute; z-index: -1; right: -4px; bottom: 3px; left: -4px; height: .42em; border-radius: 4px; background: #a9e8ff; transform: rotate(-1deg); }
.atf-v2-home .hero-copy p { max-width: 720px; margin: auto; color: var(--atf-muted); font-size: 18px; }
.atf-v2-home .hero-actions { justify-content: center; margin: 18px 0 10px; }
.atf-v2-home .search-panel { max-width: 780px; margin: 18px auto 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.atf-v2-home .search-label { display: none; }
.atf-v2-home .search-row { padding: 8px; border: 1px solid #d6dce5; border-radius: 15px; background: #fff; box-shadow: 0 9px 25px rgba(15,23,42,.08); }
.atf-v2-home .search-row input, .atf-v2-home .search-row button { height: 44px; }
.atf-v2-home .search-row input { padding: 0 12px; }
.atf-v2-home .search-row button { border-radius: 10px; background: var(--atf-blue); }
.atf-v2-home .jump-row { justify-content: center; gap: 10px; margin-top: 18px; }
.atf-v2-home .jump-row a { border-radius: 999px; background: #fff; }
.atf-v2-home .section { padding: 34px 0; }
.atf-v2-home .section-stone, .atf-v2-home .section-sage { background: transparent; }
.atf-v2-home .section-head h2 { font-size: 26px; }
.atf-v2-home .category-grid, .atf-v2-home .profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.atf-v2-home .category-card { min-height: 210px; border: 1px solid var(--atf-line); border-radius: 20px; background: #fff; }
.atf-v2-home .profile-card { border: 1px solid var(--atf-line); border-radius: 20px; background: #fff; box-shadow: none; }
.atf-v2-home .category-card:hover, .atf-v2-home .profile-card:hover { transform: translateY(-2px); border-color: #a9bfe2; box-shadow: var(--atf-shadow); }
.atf-v2-home .task-card, .atf-v2-home .guide-card, .atf-v2-home .index-col { border-radius: 16px; background: #fff; }
.atf-v2-home .guide-grid { gap: 14px; border: 0; }
.atf-v2-home .guide-card-visual { --guide-accent: #315b8f; --guide-wash: #eaf2ff; min-height: 270px; display: flex; position: relative; overflow: hidden; padding: 0; border: 1px solid var(--atf-line); border-radius: 18px; background: #fff; box-shadow: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.atf-v2-home .guide-card-visual:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--guide-accent) 48%, #d7dce4); box-shadow: var(--atf-shadow); text-decoration: none; }
.guide-card-visual::before { content: ""; position: absolute; inset: 0 0 auto; height: 112px; background: linear-gradient(135deg, var(--guide-wash), #fff 76%); border-bottom: 1px solid color-mix(in srgb, var(--guide-accent) 18%, #e5e7eb); }
.guide-card-visual::after { content: ""; position: absolute; top: 0; right: 0; width: 90px; height: 112px; opacity: .35; background-image: linear-gradient(90deg, transparent 15px, color-mix(in srgb, var(--guide-accent) 18%, transparent) 16px), linear-gradient(transparent 15px, color-mix(in srgb, var(--guide-accent) 18%, transparent) 16px); background-size: 16px 16px; }
.guide-cover-label { position: absolute; z-index: 2; top: 15px; left: 16px; color: var(--guide-accent); font: 700 10px/1 Sora, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.guide-logo-row { position: absolute; z-index: 2; top: 50px; left: 16px; display: flex; }
.guide-logo-row i { width: 48px; height: 48px; display: grid; place-items: center; margin-right: -7px; overflow: hidden; border: 4px solid #fff; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.12); transform: rotate(-4deg); }
.guide-logo-row i:nth-child(2) { transform: translateY(-5px) rotate(3deg); }
.guide-logo-row i:nth-child(3) { transform: rotate(6deg); }
.guide-logo-row img { width: 74%; height: 74%; object-fit: contain; border-radius: 7px; }
.guide-copy { min-height: 158px; display: flex; flex: 1; flex-direction: column; justify-content: flex-start; margin-top: 112px; padding: 15px 16px 14px; }
.atf-v2-home .guide-card-visual .mini-label { color: var(--guide-accent); }
.atf-v2-home .guide-card-visual h3 { max-width: none; margin-top: 8px; font-size: 17px; line-height: 1.22; }
.guide-copy small { display: block; margin-top: 8px; color: var(--atf-muted); font-size: 12px; }
.atf-v2-home .guide-card-visual .guide-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--atf-line); color: var(--atf-muted); }
.guide-work { --guide-accent: #73612d; --guide-wash: #f5f0d9; }
.guide-code { --guide-accent: #356456; --guide-wash: #e4f3ed; }
.guide-image { --guide-accent: #984f39; --guide-wash: #f8e8e0; }
.guide-search { --guide-accent: #276e7b; --guide-wash: #e1f2f4; }
.guide-free { --guide-accent: #39704a; --guide-wash: #e7f4e9; }
.guide-agents { --guide-accent: #74518e; --guide-wash: #f0e7f6; }
.guide-directory { --guide-accent: #46566f; --guide-wash: #e8edf5; }

.atf-v2-tools .site-nav { padding: 0; }
.atf-v2-tools .nav-inner { max-width: 1360px; }
.atf-v2-tools .nav-brand { color: var(--atf-ink); }
.atf-v2-tools .nav-back { color: #4b5563; }
.atf-v2-tools .hero { padding: 20px 0 10px; background: transparent; color: var(--atf-ink); text-align: left; }
.atf-v2-tools .hero h1 { font-size: 32px; letter-spacing: -.04em; }
.atf-v2-tools .hero p { max-width: none; margin-top: 5px; color: var(--atf-muted); }
.atf-v2-tools .search-wrap { max-width: none; margin: 12px 0 0; padding: 7px; border: 1px solid var(--atf-line); border-radius: 12px; background: #fff; box-shadow: 0 5px 14px rgba(15,23,42,.04); }
.atf-v2-tools .search-input { max-width: none; height: 42px; border: 0; border-radius: 8px; background: #fff; color: var(--atf-ink); }
.atf-v2-tools .search-input::placeholder { color: #8690a0; }
.atf-v2-tools .operator-note { display: none; }
.atf-v2-tools .tools-section { padding: 8px 0 64px; }
.atf-v2-tools .count-line { margin-bottom: 10px; color: var(--atf-muted); font-size: 14px; }
.atf-v2-tools .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.atf-v2-tools .tool-card { min-height: 146px; display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid var(--atf-line); border-radius: 14px; background: #fff; box-shadow: none; }
.atf-v2-tools .tool-card:hover { transform: translateY(-2px); border-color: #a9bfe2; box-shadow: var(--atf-shadow); }
.atf-card-head { display: flex; align-items: center; gap: 11px; padding: 14px 14px 10px; }
.atf-card-head .mini-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; overflow: hidden; border: 1px solid #e1e5eb; border-radius: 10px; background: #f5f7fa; color: #344054; font: 800 12px Sora, sans-serif; }
.atf-card-head .mini-mark.aitf-logo-mark { background: #fff; }
.atf-card-head .mini-mark img { width: 76%; height: 76%; object-fit: contain; }
.atf-card-head strong { font-family: Sora, sans-serif; font-size: 15px; line-height: 1.25; }
.atf-card-copy { display: grid; gap: 8px; padding: 0 14px 14px; }
.atf-card-copy span { display: -webkit-box; overflow: hidden; color: var(--atf-muted); font-size: 13px; line-height: 1.4; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Dense, data-driven directory surfaces. */
.directory-live { padding: 28px 0 34px !important; border-bottom: 1px solid #dae5f2; background: linear-gradient(135deg, rgba(255,255,255,.5) 0 12%, transparent 12% 88%, rgba(255,255,255,.45) 88%), #eaf3ff; }
.directory-live-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 17px; }
.directory-live-head h2 { margin: 7px 0 6px; font: 700 28px/1.15 Sora, sans-serif; letter-spacing: -.035em; }
.directory-live-head p { max-width: 680px; color: var(--atf-muted); }
.directory-stats { min-width: 250px; display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: 5px 9px; padding: 12px 14px; border: 1px solid #d9e0e8; border-radius: 12px; background: rgba(255,255,255,.76); }
.directory-stats strong { font: 800 21px/1 Sora, sans-serif; }
.directory-stats span { color: var(--atf-muted); font-size: 12px; }
.directory-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.directory-tabs::-webkit-scrollbar { display: none; }
.directory-tabs button, .filter-chip, .price-filter { min-height: 34px; padding: 7px 12px; border: 1px solid #d7dde6; border-radius: 9px; background: #fff; color: #536070; font: 700 12px/1 "Source Sans 3", sans-serif; cursor: pointer; white-space: nowrap; }
.directory-tabs button:hover, .filter-chip:hover, .price-filter:hover { border-color: #91aad0; color: var(--atf-ink); }
.directory-tabs button.is-active, .filter-chip.is-active, .price-filter.is-active { border-color: var(--atf-ink); background: var(--atf-ink); color: #fff; }
.inventory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.inventory-card { min-width: 0; min-height: 190px; display: flex; flex-direction: column; padding: 14px; border: 1px solid #dde3ea; border-radius: 13px; background: #fff; color: var(--atf-ink); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.inventory-card:hover { transform: translateY(-2px); border-color: #8fa9d0; box-shadow: 0 10px 22px rgba(15,23,42,.07); text-decoration: none; }
.inventory-card-top { display: flex; align-items: center; gap: 10px; }
.inventory-card .mini-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; overflow: hidden; border: 1px solid #e0e5eb; border-radius: 10px; background: #f4f6f8; color: #334155; font: 800 11px/1 Sora, sans-serif; }
.inventory-card .mini-mark.aitf-logo-mark { background: #fff; }
.inventory-card .mini-mark img { width: 74%; height: 74%; object-fit: contain; }
.inventory-card-title { min-width: 0; display: grid; gap: 2px; }
.inventory-card-title strong { overflow: hidden; font: 700 14px/1.25 Sora, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.inventory-card-title small { color: var(--atf-muted); font-size: 11px; }
.inventory-arrow { margin-left: auto; color: #8490a0; font-size: 13px; }
.inventory-card-description { min-height: 38px; display: -webkit-box; overflow: hidden; margin-top: 11px; color: #566274; font-size: 12.5px; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.inventory-card-meta { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; }
.price-pill { padding: 4px 7px; border-radius: 6px; background: #eaf2ff; color: #245a9f; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.price-from { min-width: 0; overflow: hidden; color: #374151; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.inventory-card-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf0f3; color: #7b8491; font-size: 10px; }
.home-inventory-grid .inventory-card:nth-child(4n+1) { box-shadow: inset 0 3px #5b8def; }
.home-inventory-grid .inventory-card:nth-child(4n+2) { box-shadow: inset 0 3px #e98568; }
.home-inventory-grid .inventory-card:nth-child(4n+3) { box-shadow: inset 0 3px #30a987; }
.home-inventory-grid .inventory-card:nth-child(4n) { box-shadow: inset 0 3px #9a77cf; }
.directory-loading { grid-column: 1 / -1; padding: 30px; border: 1px dashed #cbd5e1; color: var(--atf-muted); text-align: center; }
.directory-live-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: var(--atf-muted); font-size: 12px; }
.directory-live-foot a { color: var(--atf-blue); font-weight: 800; }

.atf-v2-home .hero { padding: 28px 0 24px; }
.atf-v2-home .hero-copy h1 { font-size: 42px; }
.atf-v2-home .hero-copy p { font-size: 16px; }
.atf-v2-home .hero-actions { margin: 13px 0 6px; }
.atf-v2-home .search-panel { margin-top: 13px; }
.atf-v2-home .jump-row { margin-top: 12px; }
.atf-v2-home #categories .category-card { min-height: 158px; padding: 15px; }
.atf-v2-home #categories .category-card p { font-size: 13px; }

/* Category shelves: compact visual browsing, backed by the existing directory. */
.atf-v2-home #categories { background: #fff9ef; }
.atf-v2-home #categories .section-head { margin-bottom: 20px; }
.atf-v2-home #categories .category-shelves { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; }
.atf-v2-home #categories .category-card { --category-ink: #17345c; --category-wash: #dceaff; min-height: 276px; overflow: hidden; padding: 0; border: 1px solid color-mix(in srgb, var(--category-ink) 18%, #e6e0d6); border-radius: 18px; background: #fff; box-shadow: 0 7px 0 rgba(21,31,46,.035); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.atf-v2-home #categories .category-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--category-ink) 50%, #d8d3ca); background: #fff; box-shadow: 0 14px 26px rgba(30,42,60,.1); text-decoration: none; }
.category-visual { min-height: 110px; display: grid; position: relative; grid-template-columns: 1fr auto; align-items: start; overflow: hidden; padding: 15px; background: var(--category-wash); }
.category-visual::after { content: ""; position: absolute; right: -25px; bottom: -45px; width: 125px; height: 125px; border: 1px solid color-mix(in srgb, var(--category-ink) 28%, transparent); border-radius: 50%; box-shadow: 0 0 0 19px color-mix(in srgb, var(--category-ink) 5%, transparent), 0 0 0 38px color-mix(in srgb, var(--category-ink) 4%, transparent); }
.category-glyph { color: var(--category-ink); font: 800 28px/1 Sora, sans-serif; letter-spacing: -.08em; }
.category-count { position: relative; z-index: 2; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--category-ink) 18%, transparent); border-radius: 999px; background: rgba(255,255,255,.68); color: var(--category-ink); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.category-logo-stack { position: absolute; z-index: 2; bottom: 13px; left: 15px; display: flex; }
.category-logo-stack i { width: 36px; height: 36px; display: grid; place-items: center; margin-right: -7px; overflow: hidden; border: 3px solid var(--category-wash); border-radius: 11px; background: #fff; box-shadow: 0 4px 10px rgba(15,23,42,.1); transform: rotate(-3deg); }
.category-logo-stack i:nth-child(2) { transform: translateY(-3px) rotate(3deg); }
.category-logo-stack i:nth-child(3) { transform: rotate(6deg); }
.category-logo-stack img { width: 72%; height: 72%; object-fit: contain; }
.category-copy { min-height: 166px; display: flex; flex-direction: column; padding: 14px 15px 15px; }
.category-kicker { color: var(--category-ink); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.atf-v2-home #categories .category-card h3 { margin-top: 6px; font-size: 17px; }
.atf-v2-home #categories .category-card p { margin-top: 7px; color: #626b78; line-height: 1.4; }
.category-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1px solid #ece8e0; color: #303b4b; font-size: 11px; font-weight: 700; }
.category-link b { color: var(--category-ink); font-size: 13px; }
.category-aqua { --category-ink: #146c75 !important; --category-wash: #d9f3f2 !important; }
.category-violet { --category-ink: #62448f !important; --category-wash: #eadff7 !important; }
.category-coral { --category-ink: #914730 !important; --category-wash: #f9dfd5 !important; }
.category-sun { --category-ink: #765800 !important; --category-wash: #f7e8a8 !important; }
.category-mint { --category-ink: #23674d !important; --category-wash: #d8efe1 !important; }
.category-rose { --category-ink: #8a3d5c !important; --category-wash: #f6dce7 !important; }
.category-sky { --category-ink: #285f8d !important; --category-wash: #d9ebf8 !important; }

.atf-v2-tools .hero { padding: 16px 0 6px; }
.atf-v2-tools .search-wrap { margin-top: 10px; }
.atf-v2-tools .tools-section { padding-top: 5px; }
.directory-controls { position: sticky; top: 0; z-index: 12; margin-bottom: 10px; padding: 10px; border: 1px solid var(--atf-line); border-radius: 12px; background: rgba(251,251,248,.96); box-shadow: 0 5px 16px rgba(15,23,42,.05); backdrop-filter: blur(10px); }
.filter-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.filter-chip span { margin-left: 4px; opacity: .64; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 8px; border-top: 1px solid #e3e7ec; }
.pricing-filters { display: flex; gap: 6px; overflow-x: auto; }
.sort-control { display: flex; align-items: center; gap: 7px; color: var(--atf-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.sort-control select { height: 34px; padding: 0 28px 0 10px; border: 1px solid #d7dde6; border-radius: 8px; background: #fff; color: var(--atf-ink); font: 700 12px "Source Sans 3", sans-serif; }
.atf-v2-tools .count-line { display: flex; align-items: baseline; gap: 4px; margin: 11px 2px; }
.atf-v2-tools .count-line strong { color: var(--atf-ink); font: 800 17px Sora, sans-serif; }
.atf-v2-tools .count-line span { margin-left: 4px; color: #818a98; font-size: 11px; }
.atf-v2-tools .tools-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.atf-v2-tools .tool-card.inventory-card { min-height: 190px; padding: 13px; }
.atf-v2-tools .tool-card .inventory-card-top { display: flex; width: auto; align-items: center; }
.atf-v2-tools .tool-card .inventory-card-title { display: grid; width: auto; flex: 1; }
.atf-v2-tools .tool-card .inventory-card-title strong,
.atf-v2-tools .tool-card .inventory-card-title small { display: block; width: auto; }
.atf-v2-tools .tool-card .inventory-arrow { display: inline; width: auto; }
.atf-v2-tools .tools-grid.is-empty::after { content: "No tools match these filters. Try a broader search or reset a filter."; grid-column: 1 / -1; padding: 34px; border: 1px dashed #cbd5e1; border-radius: 12px; color: var(--atf-muted); text-align: center; }

.atf-v2-submit { background: var(--atf-paper); }
.atf-v2-submit .top { height: 60px; background: #fff; color: var(--atf-ink); border-bottom: 1px solid var(--atf-line); }
.atf-v2-submit .top-inner { height: 100%; padding: 0; }
.atf-v2-submit .top .brand, .atf-v2-submit .top .nav a { color: var(--atf-ink); }
.atf-v2-submit .crumb { padding: 8px 0; font-size: 13px; }
.atf-v2-submit .hero { padding: 8px 0 12px; }
.atf-v2-submit .hero-card { padding: 22px 24px; border-radius: 14px; box-shadow: none; }
.atf-v2-submit .eyebrow { margin-bottom: 9px; background: var(--atf-blue-soft); color: var(--atf-blue); }
.atf-v2-submit h1 { font-size: 34px; letter-spacing: -.04em; }
.atf-v2-submit .deck { max-width: 1000px; margin: 8px 0 14px; line-height: 1.5; }
.atf-v2-submit .actions { margin-top: 12px; gap: 9px; }
.atf-v2-submit .btn { padding: 10px 14px; }
.atf-v2-submit main > .section:first-child { padding: 20px 22px; }
.atf-v2-submit main > .section:first-child h2 { font-size: 22px; }
.atf-v2-submit main > .section:first-child > p { margin-bottom: 12px; line-height: 1.5; }
.atf-v2-submit main > .section:first-child .grid { gap: 10px; }
.atf-v2-submit main > .section:first-child .card { padding: 14px; }
.atf-v2-submit main > .section:first-child .card p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }
.atf-v2-submit .section { border-radius: 14px; box-shadow: none; }

.atf-v2-detail { background: var(--atf-paper) !important; color: var(--atf-ink) !important; }
.atf-v2-detail > header:first-of-type { background: #fff !important; }
.atf-v2-detail > header:first-of-type a { color: var(--atf-ink) !important; }
.atf-v2-detail .wrap { width: min(1360px, calc(100% - 48px)); }
.atf-v2-detail main.wrap { padding-bottom: 60px; }
.atf-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.atf-detail-grid > .card { margin: 0 !important; padding: 22px !important; border: 1px solid var(--atf-line) !important; border-radius: 16px !important; background: #fff !important; box-shadow: none !important; }
.atf-product-title { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.atf-product-title img { width: 54px; height: 54px; object-fit: contain; border: 1px solid var(--atf-line); border-radius: 13px; background: #fff; padding: 6px; }
.atf-product-title h1 { margin: 0 !important; }
.atf-detail-aside { display: grid; gap: 10px; }
.atf-detail-sidecard { padding: 16px; border: 1px solid var(--atf-line); border-radius: 14px; background: #fff; }
.atf-detail-sidecard h3 { margin: 0 0 6px; font-size: 17px; }
.atf-detail-sidecard p { margin: 0 0 11px; color: var(--atf-muted); font-size: 14px; line-height: 1.4; }
.atf-detail-sidecard a { display: flex; justify-content: center; padding: 9px; border-radius: 9px; background: var(--atf-ink); color: #fff; font-size: 14px; font-weight: 700; }
.atf-v2-detail main.wrap > .card { border-radius: 14px !important; box-shadow: none !important; }

@media (max-width: 960px) {
  .atf-v2-home .category-grid, .atf-v2-home .profile-grid, .atf-v2-tools .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atf-detail-grid { grid-template-columns: 1fr; }
  .atf-v2-home #categories .category-shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .atf-v2 .shell, .atf-v2 .wrap { width: min(100% - 28px, 1360px); }
  .atf-v2 .nav { display: none; }
  .atf-v2-home .hero { padding: 22px 0 18px; }
  .atf-v2-home .hero-copy h1 { font-size: 31px; }
  .atf-v2-home .hero-actions, .atf-v2-home .jump-row { display: none; }
  .atf-v2-home .search-panel { margin-top: 16px; }
  .atf-v2-home .category-grid, .atf-v2-home .profile-grid, .atf-v2-tools .tools-grid { grid-template-columns: 1fr; }
  .atf-v2-home #categories .category-shelves { grid-template-columns: 1fr; }
  .atf-v2-home #categories .category-card { min-height: 0; }
  .atf-v2-home #categories .category-visual { min-height: 96px; }
  .atf-v2-home #categories .category-copy { min-height: 122px; }
  .directory-live-head { display: block; }
  .directory-stats { min-width: 0; margin-top: 14px; }
  .inventory-grid { grid-template-columns: 1fr; }
  .home-inventory-grid .inventory-card:nth-child(n+9) { display: none; }
  .directory-live-foot { display: grid; }
  .directory-controls { position: static; padding: 8px; }
  .control-row { align-items: stretch; flex-direction: column; }
  .sort-control { justify-content: space-between; }
  .sort-control select { flex: 1; }
  .atf-v2-tools .count-line span { display: none; }
  .atf-v2-submit h1 { font-size: 30px; }
  .atf-product-title img { width: 46px; height: 46px; }
}

/* OLVA branded introduction: Figma 38:9 and 38:62. */
.atf-profile .profile-hero-branded { grid-template-columns: minmax(0, 1fr) 390px; align-items: center; gap: 24px; }
.atf-profile .profile-hero-copy { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.atf-profile .profile-logo-heading { display: flex; align-items: center; gap: 18px; line-height: 1; font-size: 34px; }
.atf-profile .profile-logo-heading img { display: block; width: 44px; height: 52px; object-fit: contain; }
.atf-profile .profile-hero-preview { display: block; width: 100%; }
.atf-profile .profile-hero-preview img { display: block; width: 100%; height: 220px; object-fit: contain; border-radius: 10px; }
@media (max-width: 900px) {
 .atf-profile .profile-hero-branded { grid-template-columns: 1fr; }
 .atf-profile .profile-hero-preview { display: none; }
}

@media (max-width: 600px) { .atf-profile .profile-hero h1.profile-logo-heading { font-size: 30px; } }
