/* Agents page as a store (agents.html + store.js): categories, coloured app icons, tiles. */
.store { margin: 8px 0 28px; }
.store-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.store-top .section-title { margin: 0; }
.store-search { max-width: 340px; border-radius: 999px; padding-left: 16px; }
.store-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.store-chips .chip { border: 1px solid var(--line); background: var(--surface, #fff); color: var(--fg); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; }
.store-chips .chip:hover { border-color: var(--accent); }
.store-chips .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.store-sec { margin-top: 22px; }
.store-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.store-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 4px 16px; }
.store-tile { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none;
  color: inherit; border: 1px solid transparent; }
.store-tile:hover, .store-tile:focus-visible { background: var(--accent-soft); border-color: var(--line); }
.store-sec:not(.open) .store-tile.more { display: none; }
.store-tile[hidden], .store-sec[hidden] { display: none; }
.st-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-desc { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.st-meta { font-size: 12px; color: var(--muted); }

/* App icons: a rounded tile with a symbol; the colour follows the agent's category */
.app-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-size: 24px; line-height: 1; box-shadow: 0 1px 2px rgb(15 23 42 / 18%), inset 0 0 0 1px rgb(255 255 255 / 12%); }
.app-icon { color: #fff; }
.app-icon svg { width: 54%; height: 54%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 18%)); }
.agent-card .app-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }
.tone-0 { background: linear-gradient(135deg, #0846aa, #3c83f6); }   /* Engineering & IT: Arthion blue */
.tone-1 { background: linear-gradient(135deg, #0f766e, #14b8a6); }   /* Monitoring: teal */
.tone-2 { background: linear-gradient(135deg, #4338ca, #818cf8); }   /* Operations & reporting: indigo */
.tone-3 { background: linear-gradient(135deg, #1e3a8a, #0ea5e9); }   /* Cross-line insurance: navy to sky */
.tone-4 { background: linear-gradient(135deg, #047857, #34d399); }   /* Annuity: green */
.tone-5 { background: linear-gradient(135deg, #be123c, #fb7185); }   /* Life: rose */
.tone-6 { background: linear-gradient(135deg, #b45309, #f59e0b); }   /* Commercial lines: amber */
.tone-7 { background: linear-gradient(135deg, #0e7490, #22d3ee); }   /* Health: cyan */
.tone-8 { background: linear-gradient(135deg, #6d28d9, #a78bfa); }   /* Distribution & payments: violet */
.tone-10 { background: linear-gradient(135deg, #c2410c, #f43f5e); }  /* Hero agents (KVS products) */
.tone-9 { background: linear-gradient(135deg, #334155, #64748b); }   /* Shared specialists: slate */

/* Insurance catalog (catalog.html): same store layout, tiles with an Add / Open button */
.cat-how { margin: 4px 0 8px; }
.cat-how summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.cat-tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); }
.cat-tile[hidden] { display: none; }
.cat-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.cat-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cat-tile .st-desc { margin: 0; flex: 1; }
.cat-foot { display: flex; align-items: center; gap: 8px; }
.cat-foot .grow { flex: 1; }
.cat-foot .am-faces { display: flex; align-items: center; }
.cat-foot .am-faces .app-icon + .app-icon { margin-left: -6px; }
.cat-hot .cat-tile { border-color: #fdba74; background: linear-gradient(180deg, #fff7ed, var(--surface) 60%); }
@media (prefers-color-scheme: dark) { .cat-hot .cat-tile { background: var(--surface); } }
/* Fluent 3D picture icons (static/icons, scripts/fetch_icons.py): the picture itself is the icon, no tile */
.app-icon.tone-pic { background: none; box-shadow: none; border-color: transparent; }
.app-icon.tone-pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgb(15 23 42 / 18%)); }
.st-team { font-size: 12px; color: var(--accent); font-weight: 600; }
