.hfpt { max-width: 640px; }
.hfpt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.hfpt-tab {
  padding: 8px 12px; font-size: 13px; font-weight: 700; border: 1px solid #d9e0d4; border-radius: 6px;
  background: #fff; cursor: pointer; color: #27331f;
}
.hfpt-tab-active { background: #19616a; border-color: #19616a; color: #fff; }
.hfpt-panel { display: flex; flex-direction: column; gap: 12px; }
.hfpt-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: #27331f; }
.hfpt-panel input, .hfpt-panel select, .hfpt-panel textarea {
  padding: 9px 11px; font-size: 14.5px; border: 1px solid #d9e0d4; border-radius: 6px; background: #fff; color: #27331f;
  font-family: inherit;
}
.hfpt-panel input:focus, .hfpt-panel select:focus, .hfpt-panel textarea:focus { outline: 2px solid #19616a; outline-offset: 1px; }
.hfpt-panel input[type="file"] { padding: 7px; font-size: 13px; }
.hfpt-row2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hfpt-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.hfpt-btn {
  align-self: flex-start; padding: 10px 18px; font-size: 14px; font-weight: 700; border-radius: 6px;
  border: 1px solid #19616a; background: #19616a; color: #fff; cursor: pointer;
}
.hfpt-btn:hover { background: #144d54; }
.hfpt-btn:disabled { background: #d9e0d4; border-color: #d9e0d4; color: #5b6b56; cursor: not-allowed; }

.hfpt-status { font-size: 13px; color: #5b6b56; min-height: 1.2em; }
.hfpt-status.hfpt-status-ok { color: #19616a; font-weight: 700; }
.hfpt-status.hfpt-status-err { color: #b3261e; font-weight: 700; }

.hfpt-download {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 10px 18px;
  font-size: 14px; font-weight: 700; border-radius: 6px; border: 1px solid #19616a; background: #fff;
  color: #19616a; text-decoration: none;
}
.hfpt-download:hover { background: #f3f4f8; }

.hfpt-note {
  margin-top: 16px; font-size: 13px; color: #5b6b56;
}
.hfpt-hint { font-size: 12.5px; color: #5b6b56; margin: 0; }
.hfpt-warn {
  font-size: 12.5px; color: #7a4a00; background: #fff6e6; border: 1px solid #f0d9a0; border-radius: 6px;
  padding: 8px 10px; margin: 0;
}

/* HUD Customizer: checkbox grid of vanilla icon groups */
.hfpt-check-group {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #f3f4f8; border: 1px solid #d9e0d4;
  border-radius: 6px;
}
.hfpt-check-group-title { font-size: 13px; font-weight: 700; color: #27331f; }
.hfpt-check-row {
  display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; font-weight: 400; color: #27331f;
}
.hfpt-check-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.hfpt-check-row .hfpt-check-path { display: block; font-size: 11.5px; color: #5b6b56; font-family: monospace; }

.hfpt-toggle-row { display: flex; align-items: center; gap: 10px; }
.hfpt-toggle-row label { flex-direction: row !important; align-items: center; gap: 6px; }

/* Font Pack Maker: repeatable provider list */
.hfpt-provider-list { display: flex; flex-direction: column; gap: 10px; }
.hfpt-provider-entry {
  display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #f3f4f8; border: 1px solid #d9e0d4;
  border-radius: 6px;
}
.hfpt-provider-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.hfpt-provider-head .hfpt-provider-title { font-size: 13px; font-weight: 700; color: #27331f; }
.hfpt-provider-remove {
  padding: 7px 10px; font-size: 12.5px; font-weight: 700; border-radius: 6px; border: 1px solid #d9e0d4;
  background: #fff; color: #b3261e; cursor: pointer;
}
.hfpt-add-provider {
  align-self: flex-start; padding: 8px 14px; font-size: 13px; font-weight: 700; border-radius: 6px;
  border: 1px dashed #19616a; background: #fff; color: #19616a; cursor: pointer;
}

.hfpt-pre {
  background: #27331f; color: #d9e0d4; padding: 14px; border-radius: 6px; font-size: 12.5px; line-height: 1.5;
  overflow-x: auto; white-space: pre; font-family: monospace; max-height: 420px;
}
.hfpt-copy-btn {
  align-self: flex-start; padding: 8px 14px; font-size: 13px; font-weight: 700; border-radius: 6px;
  border: 1px solid #19616a; background: #fff; color: #19616a; cursor: pointer;
}
.hfpt-copy-btn:hover { background: #f3f4f8; }

@media (max-width: 480px) {
  .hfpt-row2, .hfpt-row3 { grid-template-columns: 1fr; }
}
