/* ── Profile ───────────────────────────────────────────────────── */
#win-profile { width: 520px; height: 580px; top: 60px; left: 100px; }

.profile-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.profile-tab {
  padding: 8px 14px;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text3);
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.profile-tab:hover { color: var(--text2); }
.profile-tab.active-tab {
  color: var(--text);
  border-bottom-color: var(--green);
}

.profile-section {
  display: none;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  flex: 1;
}
.profile-section.visible { display: flex; }

.profile-header-card {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface3);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.profile-name-block { flex: 1; }
.profile-name {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.profile-headline {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.profile-completeness {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.completeness-bar {
  flex: 1;
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
}
.completeness-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--green);
  transition: width .4s;
}
.completeness-pct {
  font-size: 9px;
  color: var(--text3);
}

/* ── Profile fields ── */
.profile-field {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field-label {
  font-size: 9px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-honesty {
  display: none; /* honesty badges hidden — no pre-action feedback */
}

.field-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  width: 100%;
}
.field-input:focus      { border-color: var(--border2); }
/* field-input color variants and field-note removed — no pre-action feedback */
.field-note { display: none; }

/* ── Skills matrix ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px 16px;
}
.skill-chip {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.skill-chip:hover { border-color: var(--border2); }
.skill-chip.true-skill       { border-color: var(--green); background: var(--green-dim); }
.skill-chip.embellished-skill { border-color: var(--amber); background: var(--amber-dim); }
.skill-chip.false-skill      { border-color: var(--red);   background: var(--red-dim); }
.skill-name  { font-size: 10px; font-weight: 700; }
.skill-level { font-size: 9px; opacity: .7; }

/* ── Languages ── */
.langs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
}
.lang-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.lang-flag { font-size: 16px; }
.lang-info { flex: 1; }
.lang-name    { font-size: 11px; font-weight: 700; }
.lang-claimed { font-size: 9px; color: var(--text3); }
.lang-actions { display: flex; gap: 4px; }
.lang-lvl-btn {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: var(--surface3);
  color: var(--text3);
  transition: all .15s;
}
.lang-lvl-btn:hover { color: var(--text); }
.lang-lvl-btn.selected-lvl { font-weight: 700; }
.lang-lvl-btn.native-lvl.selected-lvl        { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.lang-lvl-btn.conversational-lvl.selected-lvl { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }
.lang-lvl-btn.basic-lvl.selected-lvl         { border-color: var(--text3); color: var(--text2); }

/* ── Risk panel ── */
.risk-panel {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.risk-item {
  padding: 8px 10px;
  border-radius: 7px;
  border-left: 3px solid var(--border2);
  font-size: 10px;
  line-height: 1.5;
  color: var(--text2);
  background: var(--surface2);
}
/* risk-item color variants removed — neutral display */

/* ── Save bar ── */
.profile-save-bar {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  background: var(--surface2);
}
.profile-save {
  flex: 1;
  padding: 8px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: var(--green2);
  border: none;
  color: #000;
}
.profile-save:hover { opacity: .85; }

.profile-score {
  display: flex;
  align-items: center;
  gap: 10px;
}
.score-label {
  font-size: 9px;
  color: var(--text3);
}
.score-val {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: var(--green);
}
