/* Perform hub — Цілі/OKR (Phase 51). Cards, progress bar, confidence badges,
   KR tree, drawer — all via tokens.css variables, no hardcoded colors. */

.goal-scope { display: flex; gap: var(--space-1); background: var(--color-surface-2); padding: var(--space-1); border-radius: var(--radius-md); flex-shrink: 0; }
.goal-scope__btn { padding: var(--space-2) var(--space-3); border: 0; background: transparent; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--color-fg-muted); cursor: pointer; white-space: nowrap; }
.goal-scope__btn.is-active { background: var(--color-surface); color: var(--color-fg); box-shadow: var(--shadow-sm); }

/* The period select (+ optional team select) and "Нова ціль" button move as
   one group — .lv-section-head's own flex-wrap sends this whole group to a
   second line together on narrow screens, instead of the select shrinking
   to near-zero width mid-row while everything else stays squeezed in place. */
.goal-toolbar-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.goal-toolbar-actions .modal-input { width: auto; min-width: 140px; }
@media (max-width: 480px) {
  .goal-toolbar-actions { width: 100%; }
  .goal-toolbar-actions .modal-input { flex: 1; min-width: 0; }
  .goal-toolbar-actions #goal-new { width: 100%; }
}

.goal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--space-4); }
.goal-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast); }
.goal-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--color-border-strong); }
.goal-card__head { display: flex; align-items: center; gap: var(--space-2); }
/* 2026-07-13 — icon-chip, tinted by confidence on actual OKR goal cards
   (real state, not decorative) or a neutral default on development-plan
   cards (which reuse .goal-card but skip the confidence concept). Same
   device as the Dashboard/Leaves/Profile polish pass this session. */
.goal-card__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--color-primary-soft); color: var(--color-primary); }
.goal-card__icon .icon { width: 15px; height: 15px; }
.goal-card__icon--success { background: var(--color-success-soft); color: var(--color-success); }
.goal-card__icon--warning { background: var(--color-warning-soft); color: var(--color-warning); }
.goal-card__icon--danger { background: var(--color-danger-soft); color: var(--color-danger); }
.goal-card__expand { display: grid; place-items: center; width: 24px; height: 24px; border: 0; background: transparent; color: var(--color-fg-muted); border-radius: var(--radius-sm); flex-shrink: 0; }
.goal-card__expand:hover { background: var(--color-surface-hover); }
.goal-card__owner { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-fg-muted); flex: 1; min-width: 0; }
.goal-card__owner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-card__title { font-size: var(--text-base); font-weight: var(--font-semibold); }
.goal-card__progress { display: flex; align-items: center; gap: var(--space-3); }
.goal-card__due { font-size: var(--text-xs); color: var(--color-fg-subtle); }
.goal-card__children { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }

.goal-bar { flex: 1; height: 8px; border-radius: var(--radius-full); background: var(--color-surface-2); overflow: hidden; }
.goal-bar__fill { height: 100%; background: var(--color-primary); border-radius: var(--radius-full); transition: width var(--dur-base) var(--ease-out); }
.goal-bar__pct { font-size: var(--text-xs); font-weight: var(--font-semibold); color: var(--color-fg-muted); min-width: 2.5em; text-align: right; }

.goal-conf { display: inline-flex; align-items: center; padding: 2px var(--space-2); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: var(--font-semibold); white-space: nowrap; }
.goal-conf--onTrack { background: var(--color-success-soft); color: var(--color-success); }
.goal-conf--atRisk { background: var(--color-warning-soft); color: var(--color-warning); }
.goal-conf--offTrack { background: var(--color-danger-soft); color: var(--color-danger); }

.goal-kr { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.goal-kr__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-fg-muted); }

.goal-drawer__desc { color: var(--color-fg-muted); font-size: var(--text-sm); margin-bottom: var(--space-3); }
.goal-drawer__progress { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.goal-drawer__h { font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--color-fg-muted); margin-bottom: var(--space-2); }
.goal-spark { width: 100%; height: 64px; display: block; margin-bottom: var(--space-4); }

/* Goals workspace refresh */
.perform-goals-page { width: min(1160px, 100%); margin: 0 auto; padding-bottom: var(--space-8); }
.goals-page-head { margin: var(--space-5) 0; padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-2xl); background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface)); }
.goals-page-head p { margin: 0 0 var(--space-2); color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--font-bold); text-transform: uppercase; letter-spacing: .08em; }
.goals-page-head h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.goals-page-head span { display: block; max-width: 680px; margin-top: var(--space-2); color: var(--color-fg-muted); font-size: var(--text-sm); line-height: 1.55; }
.goals-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.goals-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.goals-overview > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-xs); }
.goals-overview > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); }
.goals-overview .is-success > span { background: var(--color-success-soft); color: var(--color-success); }
.goals-overview .is-warning > span { background: var(--color-warning-soft); color: var(--color-warning); }
.goals-overview .icon { width: 18px; height: 18px; }
.goals-overview b { font-size: var(--text-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.goals-overview small { color: var(--color-fg-muted); font-size: var(--text-xs); }
.goals-list-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.goals-list-head h3 { margin: 0; font-size: var(--text-lg); }
.goals-list-head p { margin: 4px 0 0; color: var(--color-fg-muted); font-size: var(--text-xs); }
.goals-list-head > span { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-fg-muted); font-size: var(--text-xs); font-weight: var(--font-bold); }
.perform-goals-page .goal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.perform-goals-page .goal-card { position: relative; min-width: 0; min-height: 244px; gap: 0; padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-xs); }
.perform-goals-page .goal-card--success { border-top: 3px solid var(--color-success); }
.perform-goals-page .goal-card--warning { border-top: 3px solid var(--color-warning); }
.perform-goals-page .goal-card--danger { border-top: 3px solid var(--color-danger); }
.perform-goals-page .goal-card__icon { width: 42px; height: 42px; border-radius: var(--radius-lg); }
.perform-goals-page .goal-card__icon .icon { width: 19px; height: 19px; }
.perform-goals-page .goal-card__owner { font-size: var(--text-xs); }
.perform-goals-page .goal-card__title { margin-top: var(--space-5); font-size: var(--text-lg); line-height: 1.35; }
.goal-card__desc { display: -webkit-box; margin: var(--space-2) 0 0; overflow: hidden; color: var(--color-fg-muted); font-size: var(--text-xs); line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.perform-goals-page .goal-card__progress { margin-top: auto; padding-top: var(--space-5); }
.perform-goals-page .goal-bar { height: 10px; }
.perform-goals-page .goal-card > footer { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.perform-goals-page .goal-card > footer > span { display: inline-flex; align-items: center; gap: 5px; color: var(--color-fg-subtle); font-size: 10px; }
.perform-goals-page .goal-card > footer > span .icon { width: 12px; height: 12px; }
.perform-goals-page .goal-card__expand { width: auto; height: auto; display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 5px 8px; color: var(--color-primary); font-size: 10px; font-weight: var(--font-semibold); }
.perform-goals-page .goal-card__children { margin-top: var(--space-4); padding-top: var(--space-4); }
.goals-empty { display: grid; place-items: center; min-height: 280px; padding: var(--space-8); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-xl); text-align: center; }
.goals-empty > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-primary); }
.goals-empty .icon { width: 26px; height: 26px; }
.goals-empty h3 { margin: var(--space-4) 0 0; }
.goals-empty p { margin: var(--space-2) 0 0; color: var(--color-fg-muted); font-size: var(--text-sm); }

/* Reviews and development use the same workspace rhythm as Goals, while
   keeping their own data and actions. */
.perform-workspace-intro { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-5) 0 var(--space-4); padding: var(--space-5) var(--space-6); border: 1px solid color-mix(in srgb, var(--color-primary) 15%, var(--color-border)); border-radius: var(--radius-2xl); background: radial-gradient(circle at 92% -30%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 44%), var(--color-surface); box-shadow: var(--shadow-sm); }
.perform-workspace-intro > span { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 16px; background: var(--color-primary-soft); color: var(--color-primary); }
.perform-workspace-intro .icon { width: 23px; height: 23px; }
.perform-workspace-intro h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -.025em; }
.perform-workspace-intro p { max-width: 720px; margin: 5px 0 0; color: var(--color-fg-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.perform-workspace-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); margin-bottom: var(--space-6); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-xs); }
.perform-workspace-toolbar > .goal-scope:first-child { margin-right: auto; }
.perform-workspace-toolbar > select { width: min(260px, 100%); }
.perform-workspace-toolbar__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.perform-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.perform-overview > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; min-width: 0; column-gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-xs); }
.perform-overview > div > span { display: grid; grid-row: 1 / 3; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); }
.perform-overview .is-success > span { background: var(--color-success-soft); color: var(--color-success); }
.perform-overview .icon { width: 18px; height: 18px; }
.perform-overview b { font-size: var(--text-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.perform-overview small { color: var(--color-fg-muted); font-size: var(--text-xs); }
.perform-list-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.perform-list-head h3 { margin: 0; font-size: var(--text-lg); }
.perform-list-head p { margin: 4px 0 0; color: var(--color-fg-muted); font-size: var(--text-xs); }
.perform-list-head > span { display: grid; place-items: center; min-width: 30px; height: 30px; padding-inline: 8px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-fg-muted); font-size: var(--text-xs); font-weight: var(--font-bold); }
.perform-empty { display: grid; place-items: center; min-height: 270px; padding: var(--space-8); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-xl); background: color-mix(in srgb, var(--color-surface) 82%, transparent); text-align: center; }
.perform-empty > span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--color-primary-soft); color: var(--color-primary); }
.perform-empty .icon { width: 25px; height: 25px; }
.perform-empty h3 { margin: var(--space-4) 0 0; }
.perform-empty p { max-width: 520px; margin: var(--space-2) 0 0; color: var(--color-fg-muted); font-size: var(--text-sm); }
.perform-review-card > footer { margin-top: auto; justify-content: flex-end; color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--font-semibold); }
.perform-review-card > footer .icon { width: 15px; height: 15px; }

@media (max-width: 700px) {
  .goal-list { grid-template-columns: 1fr; }
  .goals-toolbar { align-items: stretch; flex-direction: column; }
  .goal-toolbar-actions { width: 100%; }
  .goals-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perform-goals-page .goal-list { grid-template-columns: 1fr; }
  .perform-workspace-toolbar { align-items: stretch; flex-direction: column; }
  .perform-workspace-toolbar > .goal-scope:first-child { margin-right: 0; }
  .perform-workspace-toolbar > select { width: 100%; }
  .perform-workspace-toolbar__actions { width: 100%; margin-left: 0; }
  .perform-workspace-toolbar__actions .btn { flex: 1; }
  .perform-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perform-overview > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .goals-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .goals-overview > div { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 5px; padding: var(--space-3); }
  .goals-overview > div > span { grid-row: auto; width: 32px; height: 32px; }
  .goals-overview .icon { width: 15px; height: 15px; }
  .perform-goals-page .goal-card { min-height: 0; padding: var(--space-4); }
  .perform-goals-page .goal-card__title { margin-top: var(--space-4); }
  .goals-page-head { padding: var(--space-5); }
  .perform-workspace-intro { align-items: flex-start; flex-direction: column; padding: var(--space-5); }
  .perform-workspace-toolbar__actions { flex-direction: column; }
  .perform-workspace-toolbar__actions .btn { width: 100%; }
}

/* Phase 52 — competencies, rating scales, review templates, review cycles. */
.rt-roles { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-1); }
.rt-section { flex-wrap: wrap; }
.rt-section select[multiple] { height: auto; padding: var(--space-2); }

.review-matrix-wrap { overflow-x: auto; margin-bottom: var(--space-4); }
.review-matrix { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.review-matrix th { text-align: left; padding: var(--space-2) var(--space-3); color: var(--color-fg-muted); font-weight: var(--font-medium); border-bottom: 1px solid var(--color-border); }
.review-matrix td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); vertical-align: top; }
.review-matrix td .goal-conf { margin: 0 var(--space-1) var(--space-1) 0; }
.review-matrix td .modal-input { min-width: 90px; }

/* Phase 53 — filling in a review form + calibration histogram. */
.rf-section { padding: var(--space-5); margin-bottom: var(--space-4); }
.rf-section textarea { margin-top: var(--space-3); }
.rf-scale { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-2) 0; }
.rf-scale__opt { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); }
.rf-competency { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.rf-competency:last-of-type { border-bottom: 0; }
.rf-competency__name { display: block; font-weight: var(--font-medium); margin-bottom: var(--space-1); }
.rf-goal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; }
.rf-goal__title { flex: 1; min-width: 200px; font-size: var(--text-sm); }
.rf-goal input { max-width: 140px; }

.cal-histogram { width: 100%; max-width: 400px; height: 100px; display: block; margin-bottom: var(--space-4); }

/* Phase 54 — development plans, 1:1 snapshot block. */
.dev-action { flex-wrap: wrap; gap: var(--space-2); }
.dev-action__status { display: inline-flex; align-items: center; border: 0; border-radius: var(--radius-full); padding: 2px var(--space-2); font-size: var(--text-xs); font-weight: var(--font-semibold); cursor: pointer; white-space: nowrap; }
.dev-action__status--todo { background: var(--color-surface-2); color: var(--color-fg-muted); }
.dev-action__status--in_progress { background: var(--color-warning-soft); color: var(--color-warning); }
.dev-action__status--done { background: var(--color-success-soft); color: var(--color-success); }

.mt-perf-list { list-style: none; margin: var(--space-2) 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-sm); }
.mt-perf-list li { padding: var(--space-1) 0; }

/* ── Competencies (read-only glossary) ───────────────────────────────── */
.competencies-intro { display: flex; align-items: center; gap: var(--space-5); margin: var(--space-5) 0; padding: var(--space-5) var(--space-6); border: 1px solid color-mix(in srgb, var(--color-primary) 15%, var(--color-border)); border-radius: var(--radius-2xl); background: radial-gradient(circle at 92% -35%, color-mix(in srgb, var(--color-primary) 17%, transparent), transparent 44%), var(--color-surface); box-shadow: var(--shadow-sm); }
.competencies-intro__icon { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 18px; background: var(--color-primary-soft); color: var(--color-primary); }
.competencies-intro__icon .icon { width: 26px; height: 26px; }
.competencies-intro > div { min-width: 0; }
.competencies-intro p { margin: 0 0 4px; color: var(--color-primary); font-size: var(--text-xs); font-weight: var(--font-bold); letter-spacing: .08em; text-transform: uppercase; }
.competencies-intro h2 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.8rem); letter-spacing: -.03em; }
.competencies-intro > div > span { display: block; max-width: 720px; margin-top: 5px; color: var(--color-fg-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.competencies-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-xs); }
.competencies-toolbar .people-search { width: min(520px, 100%); margin: 0; }
.competencies-toolbar__hint { padding-right: var(--space-2); color: var(--color-fg-subtle); font-size: var(--text-xs); }
.competencies-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.competencies-overview > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; min-width: 0; column-gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-xs); }
.competencies-overview > div > span { display: grid; grid-row: 1 / 3; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); }
.competencies-overview .icon { width: 18px; height: 18px; }
.competencies-overview b { font-size: var(--text-xl); line-height: 1; font-variant-numeric: tabular-nums; }
.competencies-overview small { color: var(--color-fg-muted); font-size: var(--text-xs); }
.comp-category { margin-bottom: var(--space-7); }
.comp-category__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); padding-inline: 2px; }
.comp-category__head > div > span { color: var(--color-fg-subtle); font-size: 10px; font-weight: var(--font-bold); letter-spacing: .08em; text-transform: uppercase; }
.comp-category__head h3 { margin: 3px 0 0; font-size: var(--text-lg); letter-spacing: -.02em; }
.comp-category__head > b { display: grid; place-items: center; min-width: 29px; height: 29px; padding-inline: 8px; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-fg-muted); font-size: var(--text-xs); }
.comp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.comp-card { position: relative; display: flex; min-width: 0; min-height: 220px; flex-direction: column; gap: var(--space-4); overflow: hidden; padding: var(--space-5); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); transition: border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast); }
.comp-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 28%, transparent)); content: ''; opacity: .7; }
.comp-card:hover { border-color: color-mix(in srgb, var(--color-primary) 28%, var(--color-border)); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.comp-card__head { display: flex; align-items: center; min-width: 0; gap: var(--space-3); }
.comp-card__icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: var(--radius-lg); background: var(--color-primary-soft); color: var(--color-primary); }
.comp-card__icon .icon { width: 19px; height: 19px; }
.comp-card__head > div { min-width: 0; }
.comp-card__name { font-size: var(--text-base); font-weight: var(--font-semibold); line-height: var(--leading-snug); overflow-wrap: anywhere; }
.comp-card__head > div > span { display: block; margin-top: 2px; overflow: hidden; color: var(--color-fg-subtle); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
.comp-card__desc { display: -webkit-box; min-height: 42px; margin: 0; overflow: hidden; color: var(--color-fg-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.comp-card__desc--empty { color: var(--color-fg-subtle); font-style: italic; }
.comp-card__scale-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--color-border); color: var(--color-fg-subtle); font-size: var(--text-xs); }
.comp-card__scale-head b { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: var(--radius-full); background: var(--color-surface-2); font-size: 10px; }
.comp-scale { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.comp-scale .chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 9px; border: 1px solid var(--color-border); background: var(--color-surface-2); color: var(--color-fg-muted); overflow-wrap: anywhere; }
.comp-scale .chip b { color: var(--color-primary); }
.comp-card__no-scale { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--color-border); color: var(--color-fg-subtle); font-size: var(--text-xs); }
@media (max-width: 760px) { .comp-list { grid-template-columns: 1fr; } .competencies-toolbar { align-items: stretch; flex-direction: column; } .competencies-toolbar__hint { padding: 0 var(--space-1); } }
@media (max-width: 560px) { .competencies-intro { align-items: flex-start; flex-direction: column; gap: var(--space-3); padding: var(--space-5); } .competencies-intro__icon { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; } .competencies-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); } .competencies-overview > div { grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 5px; padding: var(--space-3); } .competencies-overview > div > span { grid-row: auto; width: 32px; height: 32px; } .competencies-overview > div:last-child:nth-child(odd) { grid-column: 1 / -1; } .comp-card { min-height: 0; padding: var(--space-4); } }
