/* Agra AI tool-directory card refinement. Brand SVGs are served locally. */
.tools-pricing-note{margin:0 0 22px;padding:12px 15px;border:1px solid rgba(23,59,46,.11);border-left:3px solid #bd8a3b;border-radius:12px;background:rgba(255,254,250,.82);color:#596a60;font-size:12px;line-height:1.7}
.tools-pricing-note strong{color:#244b35}
.tool-brand-icon{display:grid;place-items:center;overflow:hidden;background:#fff;border:1px solid rgba(23,59,46,.12);box-shadow:0 4px 12px rgba(23,59,46,.055)}
.tool-brand-icon img{display:block;width:28px;height:28px;max-width:100%;max-height:100%;object-fit:contain}
.generic-tool-icon img{width:29px;height:29px}
.tool-plan-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tool-plan-badges .agraai-badge{background:#eaf1df;color:#244b35}
.tool-plan-badges .provider-free-badge{background:#f4eddf;color:#79582d}
.tool-card{border-color:rgba(23,59,46,.12);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.tool-card:hover{border-color:rgba(189,138,59,.48);box-shadow:0 14px 32px rgba(23,59,46,.09)}
.tool-card:focus-within{border-color:rgba(189,138,59,.65)}
.tool-card a:focus-visible,.tool-card button:focus-visible{outline:3px solid #bd8a3b;outline-offset:4px;border-radius:4px}
@media(prefers-reduced-motion:reduce){.tool-card{transition:none}.tool-card:hover{transform:none}}

/* AGRA AI — SINGLE-VIEW, MOBILE-FIRST AUDIENCE COLLECTIONS */
.tool-collections{margin:22px 0 28px;padding:clamp(16px,2vw,24px);border:1px solid rgba(23,59,46,.13);border-radius:20px;background:linear-gradient(145deg,#fffefa 0%,#f4f5ef 100%);box-shadow:0 10px 26px rgba(23,59,46,.045)}
.tool-collections[hidden]{display:none}
.tool-collections-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.tool-collections-kicker{display:block;margin-bottom:7px;color:#946b32;font-size:9px;font-weight:900;letter-spacing:.14em}
.tool-collections-heading h2{margin:0;color:#244b35;font-family:Georgia,'Times New Roman',serif;font-size:clamp(22px,2.5vw,28px);line-height:1.18;letter-spacing:-.025em}
.tool-collections-heading p{max-width:670px;margin:7px 0 0;color:#596a60;font-size:12px;line-height:1.65}
.tool-collections-date{flex:0 0 auto;padding:7px 9px;border:1px solid rgba(189,138,59,.28);border-radius:999px;background:#fffefa;color:#79582d;font-size:9px;font-weight:800;line-height:1.3}
.tool-collections .audience-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:16px 0 13px}
.tool-collections .audience-choice{
  appearance:none;
  -webkit-appearance:none;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:58px;
  margin:0;
  padding:10px 12px;
  border:1px solid rgba(23,59,46,.16);
  border-radius:12px;
  background:#fffefa;
  color:#244b35;
  font:inherit;
  font-size:12px;
  line-height:1.35;
  text-align:left;
  white-space:normal;
  box-sizing:border-box;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.tool-collections .audience-choice span{
  display:block;
  width:100%;
  max-width:100%;
  color:#244b35;
  font-size:12px;
  font-weight:850;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.tool-collections .audience-choice small{
  display:block;
  width:100%;
  max-width:100%;
  margin:4px 0 0;
  color:#718075;
  font-size:10px;
  line-height:1.3;
  font-weight:500;
  overflow-wrap:anywhere;
}
.tool-collections .audience-choice[aria-pressed="true"]{
  border-color:#244b35;
  background:#eaf1e4;
  box-shadow:inset 0 0 0 1px rgba(36,75,53,.1);
}
.tool-collections .audience-choice[aria-pressed="true"] span{color:#173b2e}
.tool-collections .audience-choice:focus-visible,
.tool-collections .audience-browse-link:focus-visible,
.tool-collections .audience-tool-link:focus-visible{outline:3px solid #bd8a3b;outline-offset:3px}
.audience-content{min-width:0;padding:17px 17px 14px;border:1px solid rgba(23,59,46,.12);border-radius:15px;background:rgba(255,255,255,.82)}
.audience-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(23,59,46,.1)}
.audience-panel-kicker{color:#946b32;font-size:8px;font-weight:900;letter-spacing:.13em}
.audience-panel-heading h3{margin:4px 0 0;color:#244b35;font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1.24}
.audience-panel-heading p{max-width:650px;margin:5px 0 0;color:#66746a;font-size:11px;line-height:1.55}
.audience-pick-count{flex:0 0 auto;padding:6px 8px;border-radius:999px;background:#f3f0e7;color:#79582d;font-size:9px;font-weight:850;white-space:nowrap}
.audience-tool-list{display:flex;flex-direction:column}
.audience-tool-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;padding:12px 0;border-bottom:1px solid rgba(23,59,46,.09)}
.audience-tool-main{min-width:0}
.audience-tool-title{display:flex;align-items:center;gap:8px;min-width:0}
.audience-tool-no{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border:1px solid rgba(189,138,59,.4);border-radius:50%;color:#79582d;font-size:9px;font-weight:850}
.audience-tool-title>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
.audience-tool-title strong{color:#244b35;font-size:12px;line-height:1.35}
.audience-tool-type{color:#758176;font-size:9px;line-height:1.35}
.audience-tool-main>p{margin:5px 0 3px 32px;color:#596a60;font-size:11px;line-height:1.55;overflow-wrap:anywhere}
.audience-tool-main>small{display:block;margin-left:32px;color:#6b786e;font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.audience-tool-main>small b{color:#79582d}
.audience-tool-link{display:inline-flex;align-items:center;justify-content:center;min-width:70px;min-height:36px;padding:8px 10px;border:1px solid rgba(189,138,59,.4);border-radius:999px;background:#fffefa;color:#244b35;font-size:10px;font-weight:850;line-height:1.2;text-decoration:none;white-space:nowrap}
.audience-tool-link:hover{border-color:#bd8a3b;background:#f7f3e9}
.audience-tool-row:last-child{border-bottom:0}
.audience-next-step{display:flex;align-items:flex-start;gap:9px;margin-top:8px;padding:10px 11px;border-left:2px solid #bd8a3b;border-radius:0 9px 9px 0;background:#f7f5ed;color:#596a60;font-size:10px;line-height:1.55}
.audience-next-step strong{flex:0 0 auto;color:#244b35;font-size:9px;letter-spacing:.035em;text-transform:uppercase}
.audience-browse-link{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;margin-top:12px;padding:9px 12px;border:1px solid #244b35;border-radius:999px;background:#244b35;color:#fffefa;font-size:10px;font-weight:850;line-height:1.3;text-align:left;cursor:pointer}
.audience-browse-link:hover{border-color:#bd8a3b;background:#315a45}
.tool-collections-footnote{margin:12px 2px 0;color:#68756c;font-size:9px;line-height:1.55}
@media(max-width:900px){.tool-collections .audience-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 .tool-collections{margin:18px 0 22px;padding:14px;border-radius:17px}
 .tool-collections-heading{align-items:flex-start;flex-direction:column;gap:7px}
 .tool-collections-date{white-space:normal}
 .tool-collections .audience-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0 11px}
 .tool-collections .audience-choice{min-height:56px;padding:9px 10px;border-radius:11px}
 .tool-collections .audience-choice span{font-size:11px}
 .tool-collections .audience-choice small{font-size:9px}
 .audience-content{padding:13px 12px 12px;border-radius:13px}
 .audience-panel-heading h3{font-size:17px}
 .audience-panel-heading p{font-size:10px}
 .audience-tool-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:11px 0}
 .audience-tool-title strong{font-size:11px}
 .audience-tool-main>p{font-size:10px}
 .audience-tool-main>small{font-size:9px}
 .audience-tool-link{min-width:62px;min-height:36px;padding:7px 8px;font-size:9px}
 .audience-next-step{display:block;font-size:10px}
 .audience-next-step strong{display:block;margin-bottom:3px}
}
@media(max-width:360px){
 .audience-tool-row{grid-template-columns:minmax(0,1fr) auto;gap:6px}
 .audience-tool-link{min-width:56px;padding:6px 7px;font-size:8px}
 .audience-tool-title{gap:6px}
 .audience-tool-main>p,.audience-tool-main>small{margin-left:30px}
 .audience-tool-no{width:22px;height:22px;flex-basis:22px}
}
@media(prefers-reduced-motion:reduce){.tool-collections .audience-choice{transition:none}}


/* AGRA AI — TOOLS PAGE / PREMIUM EDITORIAL DESIGN SYSTEM */
body.tools-page{--tools-ink:#173b2e;--tools-muted:#66756b;--tools-line:rgba(23,59,46,.13);--tools-gold:#bd8a3b;background:#f7f6f0}
body.tools-page .page-hero{position:relative;overflow:hidden;padding:clamp(42px,6vw,68px) 0 34px;background:radial-gradient(ellipse at 92% 8%,rgba(189,138,59,.10),transparent 34%),linear-gradient(180deg,#f2f3ec 0%,#f7f6f0 100%);border-bottom:1px solid rgba(23,59,46,.07)}
body.tools-page .page-hero .wrap,body.tools-page main>.section>.wrap{max-width:1160px}
body.tools-page .page-hero .eyebrow{font-size:10px;letter-spacing:.15em;color:#8b6a3b}
body.tools-page .page-hero .eyebrow:before{width:22px;background:#bd8a3b}
body.tools-page .page-hero h1{max-width:790px;margin:16px 0 15px;color:#173b2e;font-size:clamp(35px,5.2vw,57px);line-height:1.04;letter-spacing:-.065em}
body.tools-page .page-hero p{max-width:690px;margin:0;color:#657369;font-size:14px;line-height:1.75}
body.tools-page main>.section{padding-top:22px!important}

/* Compact search and category controls. */
body.tools-page .tool-search-intro{max-width:760px;margin:0 auto 9px;display:flex;flex-direction:column;gap:3px}
body.tools-page .tool-search-intro strong{color:#244b35;font-size:12px;font-weight:850}
body.tools-page .tool-search-intro span{color:#778278;font-size:10px;line-height:1.5}
body.tools-page .search-panel,body.tools-page .tools-search-panel{max-width:760px;min-height:54px;margin:0 auto 16px;padding:6px 7px 6px 15px;gap:8px;align-items:center;border:1px solid rgba(23,59,46,.15);border-radius:15px;background:#fffefa;box-shadow:0 7px 22px rgba(23,59,46,.045)}
body.tools-page .search-panel:focus-within{border-color:rgba(189,138,59,.7);box-shadow:0 0 0 3px rgba(189,138,59,.10)}
body.tools-page .search-panel input{min-height:40px;padding:8px 6px;color:#173b2e;font-size:13px}
body.tools-page .search-panel input::placeholder{color:#9aa39a}
body.tools-page .search-panel button{appearance:none;-webkit-appearance:none;min-height:36px;padding:0 14px;border:1px solid rgba(23,59,46,.14);border-radius:999px;background:#eef2e9;color:#244b35;font-size:10px;font-weight:800;cursor:pointer}
body.tools-page .search-panel button:hover{background:#e3eadc;border-color:#bd8a3b}
body.tools-page .filter-row{display:flex;justify-content:center;gap:7px;margin:15px 0 18px}
body.tools-page .filter-btn{appearance:none;-webkit-appearance:none;min-height:34px;padding:7px 12px;border:1px solid rgba(23,59,46,.14);border-radius:999px;background:#fffefa;color:#526359;font-size:10px;line-height:1.2;font-weight:800;white-space:nowrap;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}
body.tools-page .filter-btn:hover{border-color:rgba(189,138,59,.65);color:#173b2e}
body.tools-page .filter-btn.active{border-color:#173b2e;background:#173b2e;color:#fffefa;box-shadow:0 3px 9px rgba(23,59,46,.12)}
body.tools-page .tools-pricing-note{max-width:980px;margin:0 auto 20px;padding:11px 14px;border:1px solid rgba(23,59,46,.09);border-left:3px solid #bd8a3b;border-radius:11px;background:#f0f3e9;color:#596a60;font-size:10px;line-height:1.65}
body.tools-page .tools-pricing-note strong{color:#244b35}

/* Curated role selector. */
body.tools-page .tool-collections{max-width:980px;margin:20px auto 34px;padding:clamp(16px,2.4vw,25px);border:1px solid rgba(23,59,46,.12);border-radius:20px;background:linear-gradient(145deg,#fffefa 0%,#f1f3eb 100%);box-shadow:0 10px 28px rgba(23,59,46,.045)}
body.tools-page .tool-collections-heading h2{font-size:clamp(22px,2.6vw,28px)}
body.tools-page .tool-collections-heading p{font-size:11px;line-height:1.65}
body.tools-page .audience-content{border-color:rgba(23,59,46,.11);background:rgba(255,255,255,.88)}
body.tools-page .audience-tool-row{padding:13px 0}
body.tools-page .audience-tool-link{min-height:34px;min-width:66px;padding:7px 10px;border-color:rgba(189,138,59,.42);background:#fffefa;color:#244b35;font-size:9px}
body.tools-page .audience-next-step{font-size:10px}

/* Directory cards. */
body.tools-page .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:15px}
body.tools-page .tool-card{min-width:0;min-height:0;padding:19px;border:1px solid rgba(23,59,46,.12);border-radius:17px;background:#fffefa;box-shadow:0 4px 14px rgba(23,59,46,.025);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
body.tools-page .tool-card:hover{transform:translateY(-2px);border-color:rgba(189,138,59,.48);box-shadow:0 12px 26px rgba(23,59,46,.075)}
body.tools-page .tool-card:focus-within{border-color:rgba(189,138,59,.62)}
body.tools-page .tool-card .tool-top{align-items:center;gap:11px}
body.tools-page .tool-card .tool-icon{width:43px;height:43px;flex:0 0 43px;border-radius:13px}
body.tools-page .tool-card .tool-meta{font-size:9px;line-height:1.4;letter-spacing:.105em}
body.tools-page .tool-card .tool-top strong{display:block;margin-top:3px;color:#173b2e;font-size:17px;line-height:1.2;letter-spacing:-.025em}
body.tools-page .tool-card>p{margin:12px 0 13px;color:#657369;font-size:12px;line-height:1.65}

/* Missing JavaScript-generated prompt and action styles — root cause of native grey buttons. */
body.tools-page .tool-card .tool-prompt{display:block;margin:0 0 13px;padding:13px 13px 12px;border:1px solid rgba(23,59,46,.085);border-radius:13px;background:#f3f5ee}
body.tools-page .tool-card .tool-prompt>strong{display:block;margin:0 0 5px;color:#8a6a3d;font-size:9px;font-weight:900;letter-spacing:.12em;line-height:1.4;text-transform:uppercase}
body.tools-page .tool-card .tool-prompt-text{margin:0;color:#526258;font-size:11px;line-height:1.65}
body.tools-page .tool-card .tool-prompt-actions,body.tools-page .tool-card .tool-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:11px}
body.tools-page .tool-card .tool-action-btn{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:33px;margin:0;padding:7px 11px;border:1px solid rgba(23,59,46,.18);border-radius:999px;background:#fffefa;color:#244b35;font-family:inherit;font-size:10px;font-weight:850;line-height:1.2;text-align:center;white-space:nowrap;box-shadow:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
body.tools-page .tool-card .tool-action-btn[data-copy-tool-prompt]{border-color:#173b2e;background:#173b2e;color:#fffefa}
body.tools-page .tool-card .tool-action-btn[data-open-tool-site]{border-color:rgba(189,138,59,.45);background:#fffefa;color:#244b35}
body.tools-page .tool-card .tool-action-btn:hover{transform:translateY(-1px);border-color:#bd8a3b;background:#f5f1e7;color:#173b2e;box-shadow:none}
body.tools-page .tool-card .tool-action-btn[data-copy-tool-prompt]:hover{background:#28563e;color:#fffefa}
body.tools-page .tool-card .tool-action-btn:focus-visible{outline:3px solid rgba(189,138,59,.7);outline-offset:2px}
body.tools-page .tool-card .tool-action-btn:disabled{opacity:.45;cursor:not-allowed}

/* Metadata: clear hierarchy, restrained pills and source link. */
body.tools-page .tool-card .card-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:7px;margin-top:auto;padding-top:12px;border-top:1px solid rgba(23,59,46,.085);color:#6a786e;font-size:10px}
body.tools-page .tool-card .official-link-pill{margin:0;padding:5px 8px;border:1px solid rgba(23,59,46,.08);background:#f1f3ec;color:#657369;font-size:8px;font-weight:750;line-height:1.35}
body.tools-page .tool-card .card-foot>a{display:inline-flex;align-items:center;min-height:28px;padding:4px 2px;color:#526c59;font-size:9px;font-weight:800;text-decoration:none}
body.tools-page .tool-card .card-foot>a:hover{color:#9a6d2e;text-decoration:underline}
body.tools-page .tool-card .tool-plan-badges{display:flex;flex-wrap:wrap;gap:6px;width:100%;margin-top:2px}
body.tools-page .tool-card .tool-plan-badges .pill{padding:5px 8px;font-size:9px;line-height:1.3}

/* Directory subsections and empty state. */
body.tools-page .tool-directory-subsection{margin-top:38px;padding-top:4px}
body.tools-page .tool-directory-subsection h2{display:flex;align-items:center;gap:10px;margin:0 0 8px;color:#173b2e;font-family:Georgia,'Times New Roman',serif;font-size:clamp(21px,2.4vw,26px);line-height:1.2;letter-spacing:-.025em}
body.tools-page .tool-directory-subsection h2:before{content:"";display:block;width:3px;height:23px;border-radius:4px;background:#bd8a3b}
body.tools-page .tool-directory-subsection>p{max-width:760px;margin:0 0 17px;color:#68766c;font-size:11px;line-height:1.65}
body.tools-page .empty-state{margin:14px 0;padding:26px 16px;border:1px dashed rgba(23,59,46,.2);border-radius:15px;background:#fffefa;color:#68766c;font-size:12px}
body.tools-page .callout{border-radius:13px;line-height:1.65}
body.tools-page .tool-card a:focus-visible,body.tools-page .filter-btn:focus-visible,body.tools-page .search-panel button:focus-visible{outline:3px solid rgba(189,138,59,.72);outline-offset:3px}

/* Responsive: readable single-column tool cards on phones. */
@media(max-width:960px){body.tools-page .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 body.tools-page .page-hero{padding:35px 0 25px}
 body.tools-page .page-hero h1{font-size:clamp(31px,8vw,39px);line-height:1.06}
 body.tools-page .page-hero p{font-size:12px;line-height:1.7}
 body.tools-page main>.section{padding-top:17px!important}
 body.tools-page .search-panel,body.tools-page .tools-search-panel{min-height:48px;margin-bottom:12px;padding:5px 6px 5px 12px;border-radius:13px}
 body.tools-page .search-panel input{min-height:36px;font-size:12px}
 body.tools-page .search-panel button{min-height:33px;padding:0 11px;font-size:9px}
 body.tools-page .filter-row{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;margin:12px -2px 14px;padding:2px 2px 7px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
 body.tools-page .filter-btn{min-height:32px;padding:7px 11px;font-size:9px}
 body.tools-page .tools-pricing-note{margin-bottom:14px;padding:10px 11px;font-size:9px}
 body.tools-page .tool-collections{margin:15px auto 25px;padding:14px;border-radius:16px}
 body.tools-page .tool-collections-heading h2{font-size:22px}
 body.tools-page .tool-collections-heading p{font-size:10px}
 body.tools-page .audience-content{padding:12px 11px}
 body.tools-page .tool-grid{grid-template-columns:minmax(0,1fr);gap:11px}
 body.tools-page .tool-card{padding:16px;border-radius:15px}
 body.tools-page .tool-card .tool-top strong{font-size:16px}
 body.tools-page .tool-card>p{font-size:11px;line-height:1.6}
 body.tools-page .tool-card .tool-prompt{padding:11px}
 body.tools-page .tool-card .tool-prompt-text{font-size:10px;line-height:1.6}
 body.tools-page .tool-card .tool-action-btn{min-height:32px;padding:7px 10px;font-size:9px}
 body.tools-page .tool-card .card-foot{gap:6px;padding-top:10px}
 body.tools-page .tool-card .tool-plan-badges .pill{font-size:8px}
 body.tools-page .tool-directory-subsection{margin-top:30px}
}
@media(max-width:360px){
 body.tools-page .tool-card{padding:14px}
 body.tools-page .tool-card .tool-action-btn{min-height:31px;padding:6px 9px;font-size:8px}
 body.tools-page .tool-card .card-foot>a{font-size:8px}
}
@media(prefers-reduced-motion:reduce){
 body.tools-page .tool-card,body.tools-page .tool-card .tool-action-btn,body.tools-page .filter-btn{transition:none}
 body.tools-page .tool-card:hover,body.tools-page .tool-card .tool-action-btn:hover{transform:none}
}
