[hidden] { display: none !important; }
/* beats class rules like .demo-note { display:flex }
.narrow { max-width: 52rem; }
.btn-lime { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); padding: .95rem 1.6rem; font-size: 1rem; box-shadow: 0 10px 30px hsl(var(--accent) / .35); }
.btn-lime:hover { opacity: .92; box-shadow: 0 14px 40px hsl(var(--accent) / .45); }
/* ---------- Composer / Search ---------- */ .composer-shell { max-width: 44rem; margin: 2.25rem 0 0; text-align: left; }
.composer {
      display: flex; align-items: flex-start; gap: .85rem;
      background: hsl(var(--card)); border: 1px solid hsl(var(--border));
      border-radius: var(--radius-lg); padding: 1rem 1.1rem;
      box-shadow: var(--shadow-md); transition: border-color .15s, box-shadow .15s;
    }
.composer:focus-within { border-color: hsl(var(--accent)); box-shadow: 0 0 0 4px hsl(var(--accent) / .20), var(--shadow-md); }
.composer .avatar {
      flex: none; width: 2.4rem; height: 2.4rem; border-radius: 9999px; margin-top: .1rem;
      background: var(--gradient-hero); color: hsl(var(--primary-foreground));
      display: grid; place-items: center; position: relative; overflow: hidden;
    }
.composer .avatar::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 25%, hsl(var(--accent) / .85), transparent 55%); }
.composer .avatar svg { position: relative; z-index: 1; }
.composer textarea {
      flex: 1; min-width: 0; border: 0; background: transparent; resize: none; outline: none;
      font-family: var(--font-body); font-size: 1.05rem; line-height: 1.55; color: hsl(var(--foreground));
      padding: .5rem 0; min-height: 5.1rem; max-height: 14rem; overflow-y: hidden;
    }
.composer textarea::placeholder { color: hsl(var(--muted-foreground) / .8); }
.send {
      flex: none; align-self: flex-end; height: 2.7rem; padding: 0 1.3rem; border: 0; border-radius: .8rem;
      background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); cursor: pointer;
      display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-weight: 600; font-size: .95rem;
      box-shadow: var(--shadow-sm); transition: opacity .15s, transform .1s;
    }
.send:hover { opacity: .9; }
.send:active { transform: translateY(1px); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; padding: 0 .2rem; }
.chip {
      font-size: .84rem; font-weight: 500; color: hsl(var(--muted-foreground));
      background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 9999px;
      padding: .45rem .85rem; cursor: pointer; transition: all .15s;
    }
.chip:hover { border-color: hsl(var(--foreground) / .4); color: hsl(var(--foreground)); }
/* Prose, not a flex row. As flex, each text node and the brand <span> became its own item, so on a narrow screen the sentence broke apart instead of wrapping. */ .composer-foot { display: block; text-align: center; margin-top: 1.15rem; font-size: .82rem; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.composer-foot svg { vertical-align: -.15em; margin-right: .35rem; }
.composer-foot .brandword { font-weight: 600; color: hsl(var(--foreground)); }
/* ---------- Results ---------- */ #results { max-width: 52rem; margin: 3.5rem auto 0; text-align: left; display: none; }
#results.show { display: block; animation: fade .5s ease; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.results-head h2 { font-size: 1.5rem; }
.results-head .query-echo { color: hsl(var(--muted-foreground)); font-size: .95rem; }
.results-head .query-echo b { color: hsl(var(--foreground)); font-weight: 600; }
.results-count { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.thinking { display: none; align-items: center; gap: .8rem; color: hsl(var(--muted-foreground)); font-size: 1rem; margin: 2.5rem auto 0; max-width: 52rem; }
.thinking.show { display: flex; }
.thinking .spinner { width: 1.2rem; height: 1.2rem; border: 2.5px solid hsl(var(--border)); border-top-color: hsl(var(--foreground)); border-radius: 9999px; animation: spin .7s linear infinite; }
.company {
      background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg);
      padding: 1.4rem 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .15s, border-color .2s;
    }
.company:hover { box-shadow: var(--shadow-md); border-color: hsl(var(--foreground) / .18); }
.company-top { display: flex; align-items: flex-start; gap: 1rem; }
.company-meta { flex: 1; min-width: 0; }
.company-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.verified { color: hsl(78 85% 40%); display: inline-flex; }
.company-sub { color: hsl(var(--muted-foreground)); font-size: .9rem; margin-top: .15rem; }
.company-sub .sep { opacity: .5; margin: 0 .5rem; }
.match { flex: none; text-align: right; }
.match .score { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: hsl(78 85% 34%); line-height: 1; }
.match .label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-top: .25rem; }
.products { list-style: none; margin-top: 1.1rem; display: grid; gap: .55rem; }
.product {
      display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem;
      background: hsl(var(--bg-2)); border: 1px solid hsl(var(--border) / .6); border-radius: .7rem;
      min-width: 0; /* .product is a grid item (in .products); without this its nowrap
                       .pspec descendant blows out the grid track and the whole card. */
    }
.product .pic { flex:none; width: 1.85rem; height: 1.85rem; border-radius: .45rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); display:grid; place-items:center; color: hsl(var(--muted-foreground)); }
.product .pinfo { flex: 1; min-width: 0; }
.product .pname { display: block; font-weight: 600; font-size: .93rem; }
.product .pspec { display: block; font-size: .8rem; color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .1rem; }
.product .price { flex: none; font-size: .82rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.product .relevant { flex: none; font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: hsl(78 85% 30%); background: hsl(var(--accent) / .22); border-radius: 9999px; padding: .2rem .5rem; }
.agent-cta {
      margin-top: 2rem; background: var(--gradient-hero); color: hsl(var(--primary-foreground));
      border-radius: var(--radius-lg); padding: 2rem; text-align: center; position: relative; overflow: hidden;
      box-shadow: var(--shadow-lg);
    }
.agent-cta::before { content:""; position:absolute; top:-40%; left:50%; transform:translateX(-50%); width:40rem; height:40rem; border-radius:9999px; background: radial-gradient(circle, hsl(var(--accent) / .22), transparent 62%); pointer-events:none; }
.agent-cta > * { position: relative; z-index: 1; }
.agent-cta h3 { font-size: 1.5rem; color: #fff; }
.agent-cta p { color: hsl(42 20% 82%); margin-top: .6rem; max-width: 38rem; margin-inline: auto; font-size: .98rem; }
.agent-cta .btn-lime { margin-top: 1.5rem; }
.crumbs .sep { opacity: .5; }
/* ---------- search.v2 variants ---------- */ /* One list, three card variants. The tier heading is a label on the order the API already chose — it never regroups or re-sorts anything. */ .tier-head { margin: 2rem 0 .85rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
      text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.tier-head:first-child { margin-top: 0; }
.co-src.src-flowmarket { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border-color: transparent; }
.co-src.src-software { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: transparent; }
.sw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; }
.cat-chip { font-size: .72rem; font-weight: 600; padding: .18rem .5rem; border-radius: 9999px;
      background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.sw-offer { font-size: .78rem; font-weight: 600; color: hsl(var(--foreground)); }
.sw-offer + .sw-offer { font-weight: 500; color: hsl(var(--muted-foreground)); }
/* Company profile text — the API returns a full `about`/`description` for
   FlowMarket and directory rows; clamp it rather than drop it. */
.company-desc { margin-top: .5rem; font-size: .86rem; line-height: 1.55; color: hsl(var(--foreground) / .78);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Capability chips. `is-match` is one that hit the query, so it earns the
   accent; the rest stay quiet, and `is-rest` just counts what is not shown. */
.cat-chip.is-match { background: hsl(var(--accent) / .22); color: hsl(78 85% 26%); }
.cat-chip.is-rest { background: transparent; border: 1px dashed hsl(var(--border)); }
/* Open-web results are unverified, so the badge is neutral grey — never the
   brand accent, which on this page means "checked". */
.co-src.src-web { background: hsl(var(--muted-foreground)); color: hsl(var(--background)); border-color: transparent; }
.product.is-more { justify-content: center; font-size: .8rem; font-weight: 600;
  color: hsl(var(--muted-foreground)); border-style: dashed; }
/* ---------- Live-results extras (real Search API response) ---------- */ .company-reason { margin-top: .55rem; font-size: .86rem; line-height: 1.5; color: hsl(var(--muted-foreground)); }
.logo-img { position: relative; overflow: hidden; border: 1px solid hsl(var(--border)); }
.logo-img .logo-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; }
.logo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: .22rem; }
.company-name .co-site { display: inline-flex; align-items: center; color: hsl(var(--muted-foreground)); transition: color .15s; }
.company-name .co-site:hover { color: hsl(var(--foreground)); }
/* Directory badge. Results are merged from more than one directory, so each card must say where the company — and its ↗ listing link — came from. IndustryStock keeps its brand green; diribo gets a distinct blue. */ .co-is { display: inline-flex; align-items: center; flex: none; height: 1rem; padding: 0 .35rem; background: #1d4e2c; border-radius: .3rem; transition: opacity .15s; }
.co-is:hover { opacity: .82; }
.co-is img { height: .46rem; width: auto; display: block; filter: brightness(0) invert(1); }
/* source SVG is dark-on-transparent; invert to white for the green badge */ .co-src {
      display: inline-flex; align-items: center; flex: none; height: 1rem; padding: 0 .4rem;
      border-radius: .3rem; font-size: .58rem; font-weight: 700; letter-spacing: .06em;
      text-transform: uppercase; color: #fff; transition: opacity .15s;
    }
.co-src:hover { opacity: .82; }
.co-src.src-diribo { background: #1b4f9c; }
.co-src.src-industrystock { background: #1d4e2c; }
a.pname { color: inherit; }
a.pname:hover { text-decoration: underline; }
.pic-img { padding: 0; overflow: hidden; }
.pic-img img { width: 100%; height: 100%; object-fit: contain; position: relative; }
/* The icon sits behind the image, so a thumbnail that 404s leaves a
   placeholder rather than an empty box. */
.pic-img { position: relative; }
.pic-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: hsl(var(--muted-foreground)); }
.product.is-top { border-color: hsl(var(--accent) / .55); background: hsl(var(--accent) / .09); }
.relevant.subtle { color: hsl(var(--muted-foreground)); background: hsl(var(--muted)); }
.demo-note { margin: -.25rem 0 1.15rem; font-size: .82rem; color: hsl(36 45% 30%); background: hsl(48 90% 93%); border: 1px solid hsl(46 70% 82%); border-radius: .6rem; padding: .55rem .8rem; display: flex; align-items: center; gap: .5rem; }
.demo-note svg { flex: none; }
.search-error { max-width: 44rem; margin: 2.25rem auto 0; text-align: center; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg); padding: 1.85rem; box-shadow: var(--shadow-sm); }
.search-error.is-empty { border-style: dashed; }
.search-error .err-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.search-error p { color: hsl(var(--muted-foreground)); margin-top: .55rem; font-size: .96rem; line-height: 1.6; }
.search-error .rid { display: inline-block; margin-top: .9rem; font-size: .72rem; color: hsl(var(--muted-foreground)); font-family: var(--font-mono); opacity: .7; }
.send:disabled { opacity: .55; cursor: default; }
/* ---------- Abuse protection (cheap frontend layer) ---------- Keep this block + the matching HTML/JS when copying this page to a new niche — every stamped product page should ship with the same basic protection: honeypot field, client-side validation, cooldown. */ .hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.field-error { max-width: 44rem; margin: .7rem auto 0; padding: 0 .2rem; font-size: .85rem; font-weight: 600; color: hsl(8 70% 42%); text-align: left; }

/* The composer is lifted from a page where it sits in its own centred column.
   Inside the hero grid it has to be able to shrink to the phone width. */
.composer-shell { max-width: min(44rem, 100%); }
@media (max-width: 560px) {
  .composer { flex-wrap: wrap; gap: .65rem; padding: .85rem .9rem; }
  .composer .avatar { width: 2rem; height: 2rem; }
  .composer textarea { flex: 1 1 100%; order: 2; min-width: 0; }
  .composer .send { order: 3; margin-left: auto; height: 2.5rem; padding: 0 1.05rem; }
  .chips { margin-top: .85rem; }
  .chip { max-width: 100%; white-space: normal; text-align: left; }
  .composer-foot { font-size: .78rem; }
}
