/* Skill Academy: type tabs, grouped grid and the per-employee Skill lines on cards. Loaded after cortex.css. */
.skill-type-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.skill-type-tabs:empty { display: none; }
.skill-type-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--cortex-line-strong, rgba(80, 60, 30, 0.17)); border-radius: 999px; background: rgba(255, 255, 255, 0.78); color: var(--cortex-text, #1d1a14); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer; }
.skill-type-tabs button span { color: var(--cortex-muted, #6b6252); font-weight: 500; }
.skill-type-tabs button[aria-pressed="true"] { background: var(--cortex-text, #1d1a14); border-color: var(--cortex-text, #1d1a14); color: #fff; }
.skill-type-tabs button[aria-pressed="true"] span { color: rgba(255, 255, 255, 0.72); }
.skill-type-updates { display: inline-grid; min-width: 18px; height: 18px; padding: 0 5px; place-items: center; border-radius: 999px; background: #fff0c7; color: #8a5700; font: 700 10px/1 var(--mono, ui-monospace, monospace); font-style: normal; }
.skill-groups { display: grid; gap: 30px; }
.skill-type-group > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--cortex-line, rgba(80, 60, 30, 0.1)); }
.skill-type-group > header h2 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.skill-type-group > header span { font-size: 12px; color: var(--cortex-muted, #6b6252); white-space: nowrap; }
.skill-type-group > header span b { color: #8a5700; font-weight: 700; }
#academySummary { display: block; }
/* Employee cards: one line says how many Skills wait and opens the Academy on that employee. */
.employee-skill-badge { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; border: 0; border-top: 1px solid var(--line, #e4e8e4); background: #f3f5f3; color: #4f5d56; text-align: left; padding: 12px 20px; font-family: inherit; font-size: 13px; cursor: pointer; }
.employee-skill-badge span { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #74807a; }
.employee-skill-badge.has-updates { background: #fff3d6; color: #68501d; }
.employee-skill-badge.has-updates span { color: #8a5700; }
.employee-skill-badge:hover { filter: brightness(0.97); }
/* Employee details: chips mark installed Skills whose catalog version moved on. */
.skill-update-count { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fff0c7; color: #8a5700; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 1px; }
.skill-chips span.is-update { background: #fff3d6; color: #68501d; border-color: #e8cf93; }
.skill-chips span.is-update small { margin-left: 5px; font-size: 10px; opacity: 0.85; }
.skill-reference-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--cortex-line, rgba(80, 60, 30, 0.1)); }
.skill-reference-action p, .skill-reference-note { margin: 0; font-size: 13px; color: var(--cortex-muted, #6b6252); }
.skill-reference-note { margin-top: 12px; }
/* Local employee roster. */
.local-agent-skills { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid #e4e8e4; border-radius: 12px; background: #f3f5f3; color: #4f5d56; font-family: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.local-agent-skills span { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #74807a; }
.local-agent-skills.has-updates { background: #fff3d6; border-color: #e8cf93; color: #68501d; }
.local-agent-skills.has-updates span { color: #8a5700; }
/* Platform catalog grouped by type. */
.catalog-group + .catalog-group { margin-top: 18px; }
.catalog-group-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cortex-muted, #6b6252); }
.catalog-group-title span { font-weight: 500; }
@media (max-width: 820px) {
  .skill-type-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .skill-type-tabs button { flex: 0 0 auto; min-height: 44px; }
  .skill-reference-action { flex-direction: column; align-items: stretch; }
}
