/* Competency UI — faithful port of the Angular competency-management SCSS
   + Global Theme Guidelines (light mode). Tokens/sizes copied from the originals. */
[x-cloak] { display: none !important; }
:root {
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --bg-page: #fafafa;
  --surface-card: #ffffff;
  --line: rgba(15, 23, 42, .1);
  --line-soft: rgba(15, 23, 42, .07);
  --ink-1: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --danger: #ef4444;
  --fast: 150ms cubic-bezier(.4, 0, .2, 1);

  /* --- aligned with the Angular light theme (styles.scss [data-theme='light'])
     Angular defaults to LIGHT unless localStorage opts into dark, so these are the
     values the product actually renders. Palette already matched; what was missing
     here was Angular's border colour, shadow scale, radii and spacing — which is
     what made the same screens read differently. */
  --bg-page: #F8FAFC;                 /* was #fafafa */
  --glass-bg: #FFFFFF;
  --glass-bg-hover: #F1F5F9;
  --glass-border: #E2E8F0;            /* solid slate-200, not a translucent rule */
  --line: #E2E8F0;
  --line-soft: #F1F5F9;
  --card-border-hover: #CBD5E1;

  --card-shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
  --card-shadow-md: 0 4px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04);
  --card-shadow-lg: 0 10px 24px rgba(0, 0, 0, .1), 0 4px 8px rgba(0, 0, 0, .05);
  --card-shadow-hover: 0 12px 28px rgba(0, 0, 0, .12), 0 6px 12px rgba(0, 0, 0, .06);
  --glass-shadow: var(--card-shadow-sm);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, .1);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-pill: 9999px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;

  --accent-primary: var(--accent);
  --accent-glow: rgba(59, 130, 246, .15);
  --text-primary: var(--ink-1);
  --text-secondary: var(--ink-2);
  --text-muted: var(--ink-3);
  --color-success: #166534;  --color-success-bg: #DCFCE7;
  --color-warning: #D97706;  --color-warning-bg: #FEF3C7;
  --color-danger: #ef4444;   --color-danger-bg: #FEE2E2;
  --color-info: #1E40AF;     --color-info-bg: #DBEAFE;
  --color-danger-hover: #dc2626;

  /* --- remainder of the Angular light palette, copied verbatim from
     frontend/src/styles.scss [data-theme='light'] (CLAUDE.md §17: match by
     reading source, never by eye). These were referenced by component CSS but
     never defined here, so each consumer silently fell back to its own ad-hoc
     hex and the same element rendered differently per screen. */
  --accent-secondary: #60a5fa;
  --accent-gradient: #3b82f6;
  --accent-primary-alpha: rgba(59, 130, 246, .1);
  --text-disabled: #CBD5E1;
  --glass-bg-dark: rgba(0, 0, 0, .02);
  --glass-blur: none;

  --button-ghost-bg: #ffffff;
  --button-ghost-border: #e4e4e7;
  --button-ghost-hover-bg: #f4f4f5;
  --button-ghost-text: #18181b;

  --input-bg: #FFFFFF;
  --input-border: #CBD5E1;
  --input-focus-border: #3b82f6;
  --input-focus-shadow: rgba(59, 130, 246, .1);

  --bg-surface: #FFFFFF;
  --bg-surface-solid: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, .8);
  --border-subtle: #E2E8F0;
  --border-muted: #F1F5F9;
  --overlay-bg: rgba(15, 23, 42, .4);
  --calendar-icon-filter: none;

  --sidebar-tab-bg: rgba(0, 0, 0, .04);
  --sidebar-active-bg: var(--accent-primary-alpha);
  --sidebar-active-text: var(--accent-primary);
  --sidebar-hover-bg: rgba(0, 0, 0, .06);

  --card-bg-white: #FFFFFF;
  --card-bg-gradient: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --card-border-light: #E2E8F0;

  --spacing-xxl: 48px;
  --gap-panels: 32px;
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --transition-fast: var(--duration-fast) var(--ease-in-out);
  --transition-normal: var(--duration-normal) var(--ease-in-out);
  --transition-slow: var(--duration-slow) var(--ease-in-out);

  /* Status card palettes (Angular drives every status chip/card from these). */
  --status-upcoming-bg: #EFF6FF;
  --status-upcoming-border: #BFDBFE;
  --status-upcoming-icon: #2563EB;
  --status-upcoming-gradient: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  --status-completed-bg: #DCFCE7;
  --status-completed-border: #BBF7D0;
  --status-completed-icon: #16A34A;
  --status-completed-gradient: linear-gradient(135deg, #BBF7D0 0%, #DCFCE7 100%);
  --status-overdue-bg: #FEE2E2;
  --status-overdue-border: #FECACA;
  --status-overdue-icon: #DC2626;
  --status-overdue-gradient: linear-gradient(135deg, #FECACA 0%, #FEE2E2 100%);
  --status-missed-bg: #FEE2E2;
  --status-missed-border: #FECACA;
  --status-missed-icon: #DC2626;
  --status-missed-gradient: linear-gradient(135deg, #FECACA 0%, #FEE2E2 100%);
  --status-cancelled-bg: #F3F4F6;
  --status-cancelled-border: #E5E7EB;
  --status-cancelled-icon: #6B7280;
  --status-cancelled-gradient: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
  --status-drafts-bg: #FEF3C7;
  --status-drafts-border: #FDE68A;
  --status-drafts-icon: #D97706;
  --status-drafts-gradient: linear-gradient(135deg, #FDE68A 0%, #FEF3C7 100%);

  /* Short aliases the meeting-flow screens were written against. Pointed at the
     Angular tokens above so those screens stop rendering an off-palette
     (#f5f7fb page, #e3e6ec rules, #15803d success) that never existed in the
     Angular app. */
  --bg: var(--bg-page);
  --border: var(--glass-border);
  --muted: var(--text-secondary);
  --muted-bg: var(--glass-bg-hover);
  --primary: var(--accent-primary);
  --primary-soft: var(--status-upcoming-bg);
  --success: var(--color-success);
  --success-soft: var(--color-success-bg);
}

/* ── Form controls ─────────────────────────────────────────────────────────
   Port of the GLOBAL rule in frontend/src/styles.scss:1066 (input, textarea,
   select) with the [data-theme='light'] values resolved, plus the light
   placeholder (:1117) and color-scheme (:493) fixes.

   Why this is needed: Angular styles EVERY form control globally, so a bare
   <input> there still looks like the design system. This stylesheet had no
   bare-element rule at all, so the 123 unclassed inputs/selects/textareas in
   our templates fell back to the browser's own chrome (#f0f0f0 fill, #767676
   border, 13.33px system font) — which is why the same field read differently
   here than in Angular.

   Deviation (deliberate): Angular's selector has no exclusions, so it also hits
   checkboxes and radios; its components then re-style those individually. We
   have no such per-component overrides, so applying a 12px 16px padded box to a
   native checkbox would break it. Checkbox/radio//button-like inputs are
   excluded here and keep their native rendering.

   Specificity MUST be (0,0,1) so .ui-input / .field-input / .cs-* / .okr-search input
   keep winning. `:not([type=…])` is NOT free — each one adds (0,1,0), so the
   previous selector weighed (0,7,1) and beat every class rule in the app: the
   toolbar search boxes (.okr-search / .am-search / .okr-hier__search) rendered
   a bordered, 12px-padded input INSIDE their own bordered pill (QA: "UI issue
   for the search option" on Teams/OKR/KRI/KPI/Meetings). `:where()` keeps the
   exclusions but contributes zero specificity. */
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="range"]):not([type="color"])),
textarea,
select {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  transition: all var(--transition-fast);
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="range"]):not([type="color"])):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15), 0 0 0 1px var(--accent-primary);
}

/* An input that sits INSIDE a bordered wrapper (toolbar search pills, the KR/KPI
   value+unit box, the hierarchy search) must not draw its own focus ring: the
   wrapper already does via :focus-within. The global :focus rule above (0,1,1)
   was still painting its 1px + 3px box-shadow around the inner input, so a
   focused search box showed TWO boxes — the pill and a ring inside it
   (QA: "search bar UI issue, 2 boxes are appearing"). */
.okr-search input:focus, .am-search input:focus, .okr-hier__search input:focus, .mw-search input:focus,
.kpir-search input:focus, .topbar-search input:focus, .pd-linkcard__search input:focus,
.kr-valwrap input:focus, .search-wrap input:focus, .toolbar-search input:focus, .header-search input:focus,
.okr-search input:focus-visible, .am-search input:focus-visible, .topbar-search input:focus-visible {
  box-shadow: none; border-color: transparent; outline: none;
}

input::placeholder,
textarea::placeholder { color: #9CA3AF; opacity: 1; }

select,
input[type="date"],
input[type="time"],
input[type="datetime-local"] { color-scheme: light; }

* { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--ink-1);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.muted { color: var(--ink-2); }
.small { font-size: 12px; }
a { color: var(--accent-hover); text-decoration: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .2); border-radius: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toolbar ───────────────────────────────────────────────────────────────── */
.list-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.page-title { display: inline-flex; align-items: center; gap: 10px; }
.page-title h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-1); }
.page-title__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 8px; font-size: 11.5px; font-weight: 600;
  border-radius: 9999px; background: rgba(59, 130, 246, .12); color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-input-wrap { position: relative; width: 240px; max-width: 100%; }
.search-input-wrap .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #475569; pointer-events: none; z-index: 2;
  transition: color var(--fast);
}
.search-input {
  width: 100%; height: 38px; padding: 8px 12px 8px 38px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; color: var(--ink-1);
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.search-input:hover { border-color: rgba(15, 23, 42, .18); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.search-input::placeholder { color: var(--ink-3); }
.search-input-wrap:focus-within .search-icon { color: var(--accent); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 18px;
  border-radius: 6px; font-size: 13px; font-weight: 500; letter-spacing: .2px;
  cursor: pointer; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-family: inherit; transition: background var(--fast), border-color var(--fast);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-1);
  font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}
.btn-secondary:hover:not(:disabled) { background: #f8fafc; border-color: rgba(15, 23, 42, .22); color: var(--accent); }

/* ── Type dropdown (toolbar filter) ───────────────────────────────────────── */
.custom-dropdown { position: relative; width: 170px; }
.dropdown-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 38px; width: 100%; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink-1); font-size: 13px;
  font-weight: 500; cursor: pointer; font-family: inherit; transition: all var(--fast);
}
.dropdown-trigger:hover { border-color: rgba(15, 23, 42, .18); }
.dropdown-trigger.open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .1); }
.dropdown-trigger .label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 8px; }
.dropdown-chevron { color: var(--ink-3); transition: transform var(--fast); font-size: 10px; }
.dropdown-chevron.open { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 100;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .1); overflow: hidden; padding: 4px 0;
  animation: dropdownFade var(--fast);
}
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer;
  font-size: 13px; color: var(--ink-1); transition: background var(--fast); border: 0; background: transparent; width: 100%; text-align: left; font-family: inherit;
}
.dropdown-option:hover { background: #f4f7fa; }
.dropdown-option.selected { color: #2563eb; background: rgba(37,99,235,.06); font-weight: 600; }
.dropdown-option.selected .dot-indicator { box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.dot-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; }

/* ── Competency cards ──────────────────────────────────────────────────────── */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.comp-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; background: var(--surface-card); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
  transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast);
}
.comp-card:hover {
  border-color: rgba(59, 130, 246, .35); box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}
.comp-card:hover .comp-card-name { color: var(--accent); }
.comp-card:hover .comp-card-delete { opacity: 1; pointer-events: auto; }
/* Multi-select (QA 2026-10-06): checkbox before the icon; a ticked card is outlined. */
.comp-card-check { flex-shrink: 0; display: flex; align-items: center; height: 44px; cursor: pointer; }
.comp-card-check input { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: var(--accent); }
.comp-card:has(.comp-sel:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* Sticky: on a long grid (Question Templates) the bar stays in view while ticking cards further down.
   top = -(.perf-content padding-top) so it pins flush to the scroll edge, with no strip of cards above it. */
.comp-selbar { position: sticky; top: -12px; z-index: 5; display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 8px 12px 8px 14px;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; font-size: 13px; color: #1e3a8a; }
.comp-selbar__count strong { font-weight: 700; }
.comp-selbar__link { background: none; border: 0; padding: 0; color: #2563eb; font-weight: 600; cursor: pointer; font-size: 13px; }
.comp-selbar__link:hover { text-decoration: underline; }
.comp-selbar__delete { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px;
  border: 1px solid #fecaca; background: #fff; color: #b91c1c; font-size: 13px; font-weight: 600; cursor: pointer; }
.comp-selbar__delete:hover { background: #fef2f2; border-color: #f87171; }
.comp-card-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid transparent;
}
.comp-card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.comp-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 32px; }
.comp-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comp-card-name {
  font-size: 14.5px; font-weight: 650; color: var(--ink-1); margin: 0; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
  transition: color var(--fast);
}
.comp-card-desc {
  font-size: 12.5px; color: var(--ink-2); margin: 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.comp-card-desc-empty { color: var(--ink-3); font-style: italic; }
.comp-card-foot {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px;
  padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 11.5px;
}
.comp-card-foot .foot-text { color: var(--ink-2); }
.comp-card-foot .foot-text strong { color: var(--ink-1); font-weight: 600; }
.comp-card-foot .foot-muted { color: var(--ink-3); }
.comp-card-foot .foot-sep { color: var(--ink-3); opacity: .6; }
.comp-card-delete {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink-3);
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity var(--fast), background var(--fast), color var(--fast), border-color var(--fast);
}
.comp-card-delete:hover { background: rgba(239, 68, 68, .1); color: var(--danger); border-color: rgba(239, 68, 68, .25); }
.comp-card-delete svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Type badge ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px;
  border-radius: 6px; font-size: 9px; font-weight: 700; line-height: 1;
  text-transform: uppercase; letter-spacing: .04em;
}

/* ── Empty state ───────────────────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; text-align: center; }
.empty-illustration {
  width: 80px; height: 80px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .03); border: 1px dashed rgba(15, 23, 42, .08); margin-bottom: 20px; color: var(--ink-3);
}
.empty-illustration svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--ink-1); margin: 0 0 5px; letter-spacing: -0.02em; }
.empty-desc { font-size: 13px; color: var(--ink-3); margin: 0 0 20px; max-width: 320px; line-height: 1.5; }
.grid-count { margin-top: 16px; font-size: 11.5px; color: var(--ink-3); }

/* ── Drawer (right-side sliding panel) ────────────────────────────────────── */
.drawer-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.details-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 500px; max-width: 90vw; z-index: 9999;
  display: flex; flex-direction: column; background: #fff; box-shadow: -12px 0 32px rgba(15, 23, 42, .12);
  transform: translateX(100%); transition: transform 220ms cubic-bezier(.4, 0, .2, 1);
}
.details-drawer.open { transform: translateX(0); }
.details-drawer.wide { width: 560px; }
#drawer-host { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.details-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.details-header h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-1); letter-spacing: -0.01em; }
.details-header .back-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-1); cursor: pointer; letter-spacing: -0.01em; }
.details-header .back-link svg { width: 16px; height: 16px; color: var(--ink-3); }
.details-header .back-link:hover, .details-header .back-link:hover svg { color: #2563eb; }
.details-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.details-footer { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fafbfc; }
.icon-btn { border: 0; background: transparent; font-size: 15px; cursor: pointer; color: var(--ink-3); width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: rgba(15, 23, 42, .05); color: var(--ink-1); }
.bulk-card__remove { display: inline-flex; align-items: center; justify-content: center; }

/* ── Form fields ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.field-label .req { color: var(--danger); margin-left: 3px; }
.field-input {
  width: 100%; height: 44px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13.5px; color: var(--ink-1); background: #fff; outline: none; font-family: inherit;
  transition: all .2s ease; letter-spacing: -0.01em;
}
.field-input:hover { border-color: rgba(15, 23, 42, .18); }
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .1); }
.field-input::placeholder { color: var(--ink-3); }
.field-textarea { height: auto; min-height: 100px; resize: vertical; line-height: 1.5; }
select.field-input { appearance: auto; cursor: pointer; }

/* ── Bulk drawer ───────────────────────────────────────────────────────────── */
.bulk-hint { font-size: 12.5px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.5; }
.bulk-error {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; margin-bottom: 12px;
  background: rgba(239, 68, 68, .08); border: 1px solid rgba(239, 68, 68, .25); border-radius: 8px;
  color: var(--danger); font-size: 12.5px; font-weight: 500; line-height: 1.4;
}
.bulk-cards { display: flex; flex-direction: column; gap: 14px; }
.bulk-card {
  display: flex; flex-direction: column; gap: 16px; padding: 16px 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.bulk-card:hover { border-color: rgba(15, 23, 42, .14); }
.bulk-card.dup { background: rgba(239, 68, 68, .04); border-color: rgba(239, 68, 68, .35); }
.bulk-card.dup .field-input { border-color: rgba(239, 68, 68, .35); }
.bulk-card__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.bulk-card__title { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.bulk-card__remove { width: 26px; height: 26px; border: 0; background: transparent; border-radius: 7px; color: #94a3b8;
  cursor: pointer; font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.bulk-card__remove:hover { background: rgba(239,68,68,.08); color: #ef4444; }
.bulk-dup-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--danger); font-weight: 500; }
.btn-add-row {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px;
  width: 100%; height: 40px; padding: 10px 14px; border: 1px dashed rgba(15, 23, 42, .18);
  border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: all var(--fast);
}
.btn-add-row:hover { border-color: rgba(59, 130, 246, .45); color: var(--accent); background: rgba(59, 130, 246, .04); border-style: solid; }

/* ── Login ─────────────────────────────────────────────────────────────────── */
.login-wrap { min-height: 100vh; display: grid; place-items: center; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; width: 380px; box-shadow: 0 4px 20px rgba(0, 0, 0, .08); text-align: center; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.02em; }
.login-card form { margin: 20px 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.login-card label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.login-card .field-input { height: 40px; }

/* Skill CSV import dialog */
.import-hint { font-size: 12.5px; color: #64748b; line-height: 1.6; margin: 4px 0 0; }
.import-hint code { background: #f1f5f9; border-radius: 4px; padding: 1px 5px; font-size: 12px; color: #0f172a; }
.import-file { display: inline-block; margin-top: 6px; font-size: 12px; color: #16a34a; font-weight: 600; }
.import-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #94a3b8; }
.import-or::before, .import-or::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.csv-help { margin: 0 0 16px; padding: 12px 14px; background: #eff6ff; border-left: 3px solid #3b82f6; border-radius: 0 8px 8px 0; font-size: 12.5px; line-height: 1.55; color: #334155; }
.csv-help strong { color: #1e293b; font-weight: 700; }
.csv-textarea { font-family: 'JetBrains Mono', Consolas, ui-monospace, monospace; font-size: 12px; line-height: 1.5; resize: vertical; min-height: 360px; }
/* Widen the CSV import drawer so the paste box has room (matches the Angular dialog). */
.details-drawer.wide:has(.csv-help), .details-drawer:has(.csv-help) { width: min(640px, 94vw); }
.import-result { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; text-align: center; }
.import-result__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(22,163,74,.12); color: #16a34a; }
.import-result__title { font-size: 16px; font-weight: 700; color: #0f172a; }
.import-result__sub { font-size: 13px; color: #64748b; max-width: 40ch; }

/* Skill categories management drawer */
.cat-form { padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 12px; }
.cat-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cat-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .1s, border-color .1s; }
.cat-swatch:hover { transform: scale(1.1); }
.cat-swatch.sel { border-color: #0f172a; box-shadow: 0 0 0 2px #fff inset; }
.cat-form__actions { display: flex; gap: 8px; align-items: center; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; }
.cat-row:hover { background: #f8fafc; }
.cat-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.cat-row__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cat-row__name { font-size: 13.5px; font-weight: 600; color: #0f172a; }
.cat-row__desc { font-size: 12px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row__count { font-size: 11.5px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 9999px; padding: 2px 9px; white-space: nowrap; }
/* Competency Types drawer (QA 2026-10-06): live icon tile + icon picker. */
.ct-name-row { display: flex; align-items: center; gap: 10px; }
.ct-name-row .field-input { flex: 1; }
.ct-tile { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid transparent; }
.ct-tile svg, .ct-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-tile--sm { width: 32px; height: 32px; border-radius: 8px; }
.ct-tile--sm svg { width: 16px; height: 16px; }
.ct-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; margin: 8px 0 14px; }
.ct-icon { height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px; background: #fff; color: #475569; cursor: pointer; padding: 0; }
.ct-icon:hover { border-color: #93c5fd; color: #1d4ed8; }
.ct-icon.sel { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; box-shadow: 0 0 0 1px #2563eb; }
.ct-note { margin: 14px 2px 0; font-size: 12px; color: #94a3b8; line-height: 1.5; }

/* Skill-gap heatmap */
.hm-toolbar { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.hm-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { .hm-summary { grid-template-columns: repeat(2, 1fr); } }
.hm-rows { display: flex; flex-direction: column; }
.hm-row { display: grid; grid-template-columns: minmax(160px, 1.4fr) minmax(120px, 2fr) 64px 120px; align-items: center; gap: 14px; padding: 10px 4px; border-top: 1px solid var(--border-subtle); }
.hm-row:first-child { border-top: 0; }
.hm-row__label { display: flex; flex-direction: column; min-width: 0; }
.hm-row__name { font-size: 13.5px; font-weight: 600; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row__cat { font-size: 11.5px; color: #94a3b8; }
.hm-row__bar { display: flex; gap: 3px; }
.hm-seg { flex: 1; height: 20px; border-radius: 3px; background: #f1f5f9; position: relative; }
.hm-seg--filled { background: #94a3b8; }
.hm-seg--filled.hm-seg--exceeded, .hm-seg--filled.hm-seg--met { background: #16a34a; }
.hm-seg--filled.hm-seg--slight, .hm-seg--filled.hm-seg--behind { background: #d97706; }
.hm-seg--filled.hm-seg--far { background: #dc2626; }
.hm-seg--expected { box-shadow: inset 0 0 0 2px #0f172a; }
.hm-seg--expected::after { content: ""; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #0f172a; }
.hm-row__nums { font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; color: #64748b; }
.hm-row__actual { font-weight: 700; color: #0f172a; }
.hm-row__sep { margin: 0 2px; color: #cbd5e1; }
.hm-row__chip { justify-self: end; }

/* Employee Profile — tab bar + overview stats */
.ptab-bar { display: flex; gap: 2px; margin-top: 14px; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; }
.ptab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: #64748b; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .12s, border-color .12s; }
.ptab:hover { color: #0f172a; }
.ptab--active { color: #2563eb; border-bottom-color: #2563eb; }
.ptab__count { font-size: 11px; font-weight: 700; color: #64748b; background: #f1f5f9; border-radius: 9999px; padding: 1px 7px; min-width: 18px; text-align: center; }
.ptab--active .ptab__count { color: #2563eb; background: rgba(37,99,235,.1); }
.pf-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 860px) { .pf-stats { grid-template-columns: repeat(2, 1fr); } }

/* Profile — reviews / feedback tabs */
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.pf-review__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pf-review__cycle { font-size: 13.5px; font-weight: 700; color: #0f172a; }
.pf-review__rating { display: flex; align-items: baseline; gap: 3px; margin: 4px 0 8px; }
.pf-review__num { font-size: 26px; font-weight: 800; color: #2563eb; font-variant-numeric: tabular-nums; }
.pf-review__scale { font-size: 12px; color: #94a3b8; }
.pf-review__comment { font-size: 13px; color: #475569; line-height: 1.6; margin: 0 0 8px; }
.pf-review__meta { font-size: 11.5px; color: #94a3b8; }
.pf-fb-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-fb-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid #e2e8f0; border-radius: 9999px; font-size: 12.5px; color: #475569; }
.pf-fb-pill b { color: #0f172a; font-variant-numeric: tabular-nums; }
.pf-fb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Profile — direct-reports org tree */
.org-tree { list-style: none; margin: 0; padding: 0; }
.org-node__children .org-tree { margin-left: 26px; border-left: 1px solid #e2e8f0; padding-left: 6px; }
.org-node__row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; }
.org-node__row:hover { background: #f8fafc; }
.org-node__toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 0; background: transparent; color: #94a3b8; cursor: pointer; border-radius: 6px; flex-shrink: 0; }
.org-node__toggle:hover { background: #f1f5f9; color: #475569; }
.org-node__toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.org-node__toggle--open svg { transform: rotate(90deg); }
.org-node__spacer { width: 22px; flex-shrink: 0; }
.org-node__av { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #3b82f6; color: #fff; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.org-node__name { font-size: 13.5px; font-weight: 600; color: #0f172a; text-decoration: none; }
.org-node__name:hover { color: #2563eb; }
.org-node__role { font-size: 12px; color: #94a3b8; }
.org-node__stats { margin-left: auto; display: flex; gap: 6px; }
.org-node__stat { font-size: 11px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 9999px; padding: 2px 8px; white-space: nowrap; }

/* Profile — rich Overview dashboard */
.pf-ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .pf-ov-grid { grid-template-columns: 1fr; } }
.pf-snap { display: flex; align-items: center; gap: 20px; padding: 4px 2px; }
.pf-snap__main { flex: 1; min-width: 0; }
.pf-snap__label { font-size: 12.5px; font-weight: 600; color: #475569; }
.pf-snap__sub { font-size: 11.5px; color: #94a3b8; font-weight: 500; }
.pf-snap__val { font-size: 12px; color: #64748b; margin-top: 6px; }
.pf-bar { height: 10px; background: #f1f5f9; border-radius: 9999px; overflow: hidden; margin-top: 8px; }
.pf-bar__fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #2563eb); border-radius: 9999px; transition: width .3s; }
.pf-snap__ring { flex-shrink: 0; text-align: center; }
.pf-ring { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(#2563eb 0 70%, #f1f5f9 0); }
.pf-ring::before { content: ""; position: absolute; width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.pf-ring__num { position: relative; font-size: 22px; font-weight: 800; color: #2563eb; }
.pf-ring--empty { background: #f1f5f9; }
.pf-ring--empty .pf-ring__num { color: #94a3b8; }
.pf-attn__detail { font-size: 11.5px; font-weight: 600; color: #64748b; white-space: nowrap; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pf-ring { position: relative; }

/* Profile — manager-private notes tab */
.pf-notes-warn { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 14px; border: 1px solid #fde68a; background: #fffbeb; border-radius: 8px; font-size: 12.5px; color: #92400e; }
.pf-notes-warn svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: #d97706; stroke-width: 2; }
.pf-note-compose textarea, .pf-note textarea { width: 100%; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 13px; color: #0f172a; resize: vertical; }
.pf-note-compose textarea:focus, .pf-note textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.pf-note-compose__foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.pf-notes-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pf-note { padding: 12px 14px; }
.pf-note__text { font-size: 13px; color: #334155; line-height: 1.6; margin: 0 0 8px; white-space: pre-wrap; }
.pf-note__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-note__meta { font-size: 11.5px; color: #94a3b8; }
.okr-btn--sm { height: 26px; padding: 0 10px; font-size: 11.5px; }

/* Settings — sectioned page (sidebar + content) */
.set-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 24px 32px; align-items: start; }
@media (max-width: 820px) { .set-layout { grid-template-columns: 1fr; } }
.set-sidebar { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 12px; }
@media (max-width: 820px) { .set-sidebar { flex-direction: row; flex-wrap: wrap; position: static; } }
.set-navitem { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: transparent; border-radius: 8px; font: inherit; font-size: 13.5px; font-weight: 600; color: #475569; cursor: pointer; text-align: left; }
.set-navitem svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.set-navitem:hover { background: #f1f5f9; color: #0f172a; }
.set-navitem--active { background: #eff6ff; color: #2563eb; }
/* ── Settings › Profile (the only section on /settings) ───────────────────── */
/* Two equal-height columns across the full content width (identity card left,
   banner + details right) — no max-width gutter on the right and no void under a
   short left card (QA: "white empty spaces"). Stacks under 960px. */
.prof-page { padding: 20px 24px 40px; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.prof-page > #profile-form { display: contents; } /* the htmx swap wrapper: its children are the grid items */
.prof-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 0 22px 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; min-width: 0; }
.prof-hero__cover { align-self: stretch; height: 88px; margin: 0 -22px; flex-shrink: 0; background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 55%, #ede9fe 100%); border-bottom: 1px solid #e2e8f0; }
.prof-hero .prof-avatar { width: 88px; height: 88px; font-size: 30px; margin-top: -58px; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(15, 23, 42, .12); }
.prof-hero .prof-hero__body { flex: 0 0 auto; width: 100%; }
.prof-hero .prof-hero__tags { justify-content: center; }
/* Account facts as label / value rows under the identity. */
.prof-page .prof-hero__meta { flex-direction: column; gap: 0; width: 100%; padding: 4px 0 0; border-left: 0; border-top: 1px solid #f1f5f9; text-align: left; }
.prof-page .prof-hero__meta div { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #f1f5f9; }
.prof-page .prof-hero__meta div:last-child { border-bottom: 0; }
.prof-page .prof-hero__meta dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.prof-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.prof-main .prof-card { flex: 1 1 auto; display: flex; flex-direction: column; }
.prof-main .prof-facts { margin-bottom: 22px; }
.prof-main .prof-card__foot { margin-top: auto; }
@media (max-width: 960px) {
  .prof-page { grid-template-columns: 1fr; }
}
.prof-avatar { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: .02em; flex-shrink: 0; box-shadow: 0 0 0 4px #eff6ff; overflow: hidden; }
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-hero__body { flex: 1 1 auto; min-width: 0; }
.prof-hero__name { font-size: 19px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.prof-hero__email { font-size: 13px; color: #64748b; margin-top: 2px; }
.prof-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.prof-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 11.5px; font-weight: 600; }
.prof-tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prof-tag--role { background: #eff6ff; color: #1d4ed8; }
.prof-hero__meta { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 18px; border-left: 1px solid #e2e8f0; flex-shrink: 0; }
.prof-hero__meta div { display: flex; flex-direction: column; }
.prof-hero__meta dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.prof-hero__meta dd { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: #0f172a; }
.prof-banner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.prof-banner svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.prof-banner--ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.prof-banner--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.prof-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px; }
.prof-card__head { margin-bottom: 14px; }
.prof-card__head--sub { margin-top: 24px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.prof-card__head h2 { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0; }
.prof-card__head p { font-size: 12.5px; color: #64748b; margin: 3px 0 0; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.prof-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prof-field > span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.prof-field > span em { color: #dc2626; font-style: normal; }
.prof-field input { height: 40px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 9px; font: inherit; font-size: 13.5px; color: #0f172a; background: #fff; }
.prof-field input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); outline: none; }
.prof-field .cs__trigger { height: 40px; border-radius: 9px; }
.prof-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px 18px; margin: 0; }
.prof-facts div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 10px; min-width: 0; }
.prof-facts dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.prof-facts dd { margin: 0; font-size: 13px; font-weight: 600; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-card__foot { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
@media (max-width: 720px) {
  .prof-grid, .prof-facts { grid-template-columns: 1fr; }
}

.set-sec-head { margin-bottom: 16px; }
.set-sec-head h2 { font-size: 17px; font-weight: 700; color: #0f172a; margin: 0; }
.set-sec-head p { font-size: 13px; color: #64748b; margin: 4px 0 0; }
.set-info-banner { display: flex; align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 14px; max-width: 640px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 8px; font-size: 12.5px; color: #1e40af; }
.set-info-banner svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: #2563eb; stroke-width: 2; }
/* Integrations cards */
.set-int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; max-width: 720px; }
.set-int-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; background: #fff; }
.set-int-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.set-int-logo { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.set-int-logo svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.set-int-info { flex: 1; min-width: 0; }
.set-int-info h3 { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0; }
.set-int-info p { font-size: 12px; color: #94a3b8; margin: 2px 0 0; }
.set-int-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 9999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.set-int-badge--soon { background: #fffbeb; color: #92400e; }
.set-int-badge--off { background: #f1f5f9; color: #64748b; }
.set-int-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.set-int-note { font-size: 12.5px; color: #64748b; line-height: 1.55; margin: 0 0 12px; }
/* Feedback config rows + toggle */
.set-cfg-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
.set-cfg-row:first-child { padding-top: 4px; }
.set-cfg-info label { font-size: 13.5px; font-weight: 600; color: #0f172a; }
.set-cfg-info p { font-size: 12px; color: #94a3b8; margin: 3px 0 0; max-width: 340px; }
.set-cfg-actions { display: flex; justify-content: flex-end; padding-top: 16px; }
.set-toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.set-toggle input { opacity: 0; width: 0; height: 0; }
.set-toggle__slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 9999px; cursor: pointer; transition: background .15s; }
.set-toggle__slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.set-toggle input:checked + .set-toggle__slider { background: #2563eb; }
.set-toggle input:checked + .set-toggle__slider::before { transform: translateX(18px); }
.set-toggle input:disabled + .set-toggle__slider { opacity: .55; cursor: not-allowed; }

/* Meetings dashboard — stat-card status tabs + card "when" pill */
.mtg-stats { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 24px 0; }
.mtg-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 104px; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; transition: border-color .12s, box-shadow .12s; }
.mtg-stat:hover { border-color: #cbd5e1; }
.mtg-stat--active { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.14); }
.mtg-stat__count { font-size: 22px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mtg-stat__label { font-size: 12px; font-weight: 600; color: #64748b; }
.mtg-stat--upcoming .mtg-stat__count { color: #2563eb; }
.mtg-stat--overdue .mtg-stat__count { color: #dc2626; }
.mtg-stat--completed .mtg-stat__count { color: #16a34a; }
.mtg-stat--cancelled .mtg-stat__count { color: #94a3b8; }
.mtg-when { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 9999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mtg-when--overdue { background: #fef2f2; color: #dc2626; }
.mtg-when--today { background: #fffbeb; color: #b45309; }
.mtg-when--tomorrow { background: #eef2ff; color: #4f46e5; }
.mtg-when--future { background: #eff6ff; color: #2563eb; }

/* Team screen — Employees/Teams tabs + roster */
.team-tabs { display: flex; gap: 4px; }
.team-tab { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: #64748b; padding: 6px 4px; cursor: pointer; border-bottom: 2px solid transparent; }
.team-tab:hover { color: #0f172a; }
.team-tab--active { color: #2563eb; border-bottom-color: #2563eb; }
.team-tab__count { font-size: 11.5px; font-weight: 700; color: #64748b; background: #f1f5f9; border-radius: 9999px; padding: 1px 8px; }
.team-tab--active .team-tab__count { background: #eff6ff; color: #2563eb; }
/* Team page: each tab's list scrolls inside the .okr-main card (the card itself
   is overflow:hidden, so without this the roster/teams beyond the fold were cut off). */
.team-pane { flex: 1; min-height: 0; overflow-y: auto; }
.team-filterbar { display: flex; align-items: center; gap: 8px; }
.team-stats { display: flex; gap: 12px; flex-wrap: wrap; padding: 16px 24px 6px; }
.team-stats .ui-stat { flex: 1; min-width: 120px; }
.team-roster { width: 100%; border-collapse: collapse; margin: 8px 24px 24px; width: calc(100% - 48px); font-size: 13.5px; }
.team-roster thead th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #94a3b8; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; }
.team-roster tbody td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.team-roster tbody tr:hover { background: #f8fafc; }
.roster-name { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #0f172a; }
.roster-av { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #3b82f6; color: #fff; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.roster-email { color: #64748b; }
.roster-role { font-size: 12px; font-weight: 600; color: #475569; background: #f1f5f9; border-radius: 6px; padding: 2px 9px; }
.roster-status { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; border-radius: 9999px; padding: 2px 10px; }
.roster-status--on { background: #f0fdf4; color: #16a34a; }
.roster-status--off { background: #f8fafc; color: #94a3b8; }

/* Delete / remove buttons turn red on hover, app-wide (user request 2026-10-09) - with the
   standard outline bin. "Remove filter" chips and a plain "Cancel" (closes a form) are not
   destructive, so they keep their own hover. */
button[title^="Delete"]:hover:not(:disabled),
button[title^="Remove"]:not([title="Remove filter"]):hover:not(:disabled),
button[title="Cancel meeting"]:hover:not(:disabled),
button[title="Cancel Meeting"]:hover:not(:disabled) { color: #dc2626; }
