/* ============================================================
   statuses.css — the sheet's Statuses section and its picker
   ============================================================ */

/* ── The chips ── */
.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 10px;
  cursor: default;
  transition: border-color 0.12s;
}
.status-chip:hover { border-color: var(--accent); }

/* Worked out from the inventory, not picked — the header readout's colours, so
   the two read as the same fact. */
.status-chip.derived {
  color: var(--enc-warn);
  border-color: color-mix(in srgb, var(--enc-warn) 55%, var(--border2));
  background: color-mix(in srgb, var(--enc-warn) 10%, var(--panel));
}
.status-chip.derived[data-status="heavily-encumbered"] {
  color: var(--enc-heavy);
  border-color: color-mix(in srgb, var(--enc-heavy) 55%, var(--border2));
  background: color-mix(in srgb, var(--enc-heavy) 10%, var(--panel));
}

/* A stacking status's level (Exhaustion 3) — a small disc after the name. */
.status-chip-level {
  min-width: 15px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 8px;
}

.status-chip-remove {
  margin-right: -3px;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1;
  color: var(--text-dim);
  border-radius: 50%;
}
.status-chip-remove:hover { color: var(--danger); }

/* ── The picker ── */
#status-picker {
  position: fixed;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: 3px;
  box-shadow: var(--shadow-deep), inset 0 0 0 1px var(--emboss-hi);
}
#status-picker > .feature-note { padding: 7px 10px; }

.status-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px 7px;
  text-align: left;
  border-radius: 2px;
  transition: background 0.1s;
}
.status-option + .status-option { border-top: 1px solid var(--border); }
.status-option:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

.status-option-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.status-option-tick {
  width: 10px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.status-option-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.status-option.active .status-option-name { color: var(--accent); }

.status-option-level {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}
.status-option.active .status-option-level { color: var(--accent); }

/* A stacking status at its maximum — still listed, but another click does nothing. */
.status-option.maxed { cursor: default; }
.status-option.maxed:hover { background: none; }

/* The tooltip's Markdown rules (.tip-desc, tooltip.css) do the rest. Two
   classes deep because tooltip.css comes later in the cascade and sets its own
   margin on .tip-desc. */
.status-option .status-option-desc {
  display: block;
  margin: 0 0 0 16px;
}
