/* src/char-attr-tab.css
 * CHAR-ATTR-TAB-01 (#2810) — Attribute allocation tab content.
 * Mounts into #char-v2-tab-attributes (created by CHAR-V2-03 / char-panel-v2.js).
 */

/* ── AP counter ──────────────────────────────────────────────────────── */

.char-attr-ap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 6px;
  margin-bottom: 10px;
}

.char-attr-ap__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(200, 210, 220, 0.55);
}

.char-attr-ap__count {
  font-size: 18px;
  font-weight: 700;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.char-attr-ap--empty .char-attr-ap__count {
  color: rgba(200, 210, 220, 0.35);
}

/* ── Attribute rows ──────────────────────────────────────────────────── */

.char-attr-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.char-attr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(20, 20, 36, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
}

.char-attr-row__name {
  width: 82px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #c4ccd8;
  letter-spacing: 0.02em;
}

.char-attr-row__value {
  width: 32px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Cap bar */

.char-attr-row__cap-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.char-attr-row__cap-fill {
  height: 100%;
  background: #38bdf8;
  border-radius: 2px;
  transition: width 0.2s ease;
}

/* Derived stats hint */

.char-attr-row__derived {
  font-size: 10px;
  color: rgba(200, 210, 220, 0.45);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
  line-height: 1.3;
}

/* + button */

.char-attr-row__plus {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.30);
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.1s, opacity 0.1s;
}

.char-attr-row__plus:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.22);
}

.char-attr-row__plus:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.char-attr-row__plus:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

/* Field-mode lock notice */

.char-attr-field-lock {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 5px;
  font-size: 11px;
  color: #fbbf24;
  text-align: center;
}

/* Rejection inline error */

.char-attr-error {
  margin-top: 6px;
  font-size: 11px;
  color: #f87171;
  text-align: center;
  min-height: 14px;
}

/* Version mismatch (read-only) */

.char-attr-readonly-notice {
  padding: 8px 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 6px;
  font-size: 12px;
  color: #fbbf24;
  text-align: center;
}
